Skip to content

pmilano1/synology-dsm-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

25 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Synology DSM API Documentation

API Coverage DSM APIs ActiveBackup APIs License

Complete, unofficial API documentation for Synology DiskStation Manager (DSM) Comprehensive coverage of DSM Core APIs, FileStation, DownloadStation, ActiveBackup, and more.

πŸ“š Overview

This repository contains comprehensive documentation for Synology DSM APIs, including core system management, file operations, backup services, and application-specific APIs. Documentation is derived from official API definitions, systematic testing, and community contributions.

What's Documented

DSM Core APIs:

  • βœ… Authentication - Login, logout, session management (3 methods)
  • βœ… System Info - Hardware, network, services, utilization (25+ methods)
  • βœ… FileStation - File management, upload, download, sharing (46 methods)
  • βœ… DownloadStation - Download tasks, RSS, BT search (24 methods)
  • βœ… Users - User management, password policies (8 methods)
  • βœ… Groups - Group management, membership (8 methods)
  • βœ… Packages - Package installation, control (10 methods)
  • βœ… Shares - Shared folder management, permissions (8 methods)
  • βœ… Certificates - SSL certificate management (8 methods)

Application APIs:

  • βœ… ActiveBackup for Business - 35 APIs, 215 methods (100% coverage)
  • βœ… Docker - Container, image, network, volume management (30+ methods)
  • βœ… Photos - Photo library, albums, folders, sharing (20+ methods)
  • βœ… Surveillance Station - Camera management, PTZ control, recording, events (50+ methods)
  • βœ… AudioStation - Music library, playlists, remote player control (10+ methods)
  • βœ… VPN Server - VPN settings, connections, logs, protocols (10+ methods)
  • βœ… Snapshot Replication - Volume snapshots, LUN snapshots, replication plans (10+ methods)
  • βœ… Virtual Machine Manager - VM lifecycle, power control, images, tasks (20+ methods)
  • βœ… System Services - DHCP server, Log Center, Security Advisor, Universal Search, Note Station, USB Copy (25+ methods)
  • βœ… Task Scheduler - Script tasks, service control, scheduled automation (15+ methods)
  • βœ… Cloud Sync - Cloud connections, sync tasks, Google Drive, OneDrive, Dropbox, S3 (20+ methods)
  • βœ… Directory Server - LDAP/AD management, users, groups, domain sync (15+ methods)
  • βœ… Synology Drive - File collaboration, connections, logs, monitoring (15+ methods)
  • βœ… Hyper Backup - Backup tasks, repositories, integrity checks, vault (20+ methods)

Total Coverage:

  • βœ… 110+ API categories documented
  • βœ… 750+ methods with examples and parameters
  • βœ… Authentication flows and error handling
  • βœ… Clean, concise UDM-style documentation format

πŸš€ Quick Start

1. Authentication

curl "http://YOUR_NAS_IP:5000/webapi/auth.cgi" \
  -d "api=SYNO.API.Auth" \
  -d "version=6" \
  -d "method=login" \
  -d "account=YOUR_USERNAME" \
  -d "passwd=YOUR_PASSWORD" \
  -d "session=ActiveBackup" \
  -d "format=sid"

Response:

{
  "data": {
    "sid": "YOUR_SESSION_ID"
  },
  "success": true
}

2. Make Your First API Call

FileStation - List Files:

curl "http://YOUR_NAS_IP:5000/webapi/entry.cgi" \
  -d "api=SYNO.FileStation.List" \
  -d "version=2" \
  -d "method=list" \
  -d "folder_path=/home" \
  -d "_sid=YOUR_SESSION_ID"

ActiveBackup - Get Overview:

curl "http://YOUR_NAS_IP:5000/webapi/entry.cgi" \
  -d "api=SYNO.ActiveBackup.Overview" \
  -d "version=1" \
  -d "method=get" \
  -d "_sid=YOUR_SESSION_ID"

πŸ‘‰ Full Quick Start Guide

πŸ“– Documentation

Getting Started

API Reference

πŸ—οΈ Architecture

API Categories

Category APIs Methods Description
DSM Core 9 80+ Authentication, system info, users, groups, packages, shares, certificates
FileStation 15 46 File management, upload, download, sharing, compression, favorites
DownloadStation 6 24 Download tasks, RSS feeds, BT search, statistics
Docker 4 30+ Container, image, network, volume management
Photos 4 20+ Photo library, albums, folders, sharing
Surveillance Station 10+ 50+ Camera management, PTZ control, recording, events, live view
AudioStation 3 10+ Music library, playlists, remote player control
VPN Server 5 10+ VPN settings, connections, logs, PPTP, OpenVPN, L2TP
Snapshot Replication 3 10+ Volume snapshots, LUN snapshots, replication plans
Virtual Machine Manager 3 20+ VM lifecycle, power control, images, tasks
System Services 6 25+ DHCP server, Log Center, Security Advisor, Universal Search, Note Station, USB Copy
Task Scheduler 3 15+ Script tasks, service control, scheduled automation
Cloud Sync 4 20+ Cloud connections, sync tasks, filters, Google Drive, OneDrive, Dropbox, S3
Directory Server 3 15+ LDAP/AD management, users, groups, domain sync
Synology Drive 3 15+ File collaboration, connections, logs, monitoring
Hyper Backup 4 20+ Backup tasks, repositories, integrity checks, vault
ActiveBackup 35 215 Device backup, restore, versioning, AEM, VM backup

Authentication Flow

sequenceDiagram
    participant Client
    participant Auth as auth.cgi
    participant API as entry.cgi
    
    Client->>Auth: POST login credentials
    Auth-->>Client: Return session ID (sid)
    Client->>API: API call with _sid parameter
    API-->>Client: API response
Loading

πŸ“Š API Coverage

DSM APIs:

  • Total API Categories: 95+
  • Total Methods: 650+
  • Fully Documented: 650+ methods
  • With Response Examples: 650+ methods

ActiveBackup APIs:

  • Total APIs: 35
  • Total Methods: 215
  • Coverage: 100%

πŸ”‘ Key Features

Complete Coverage

Comprehensive documentation for 650+ API methods across DSM Core, FileStation, DownloadStation, Docker, Photos, Surveillance Station, AudioStation, VPN Server, Snapshot Replication, Virtual Machine Manager, System Services, Task Scheduler, Cloud Sync, and ActiveBackup.

Clean UDM-Style Format

All documentation follows the clean, concise format used in UniFi Dream Machine API documentation - easy to read and navigate.

Systematic Discovery

Documentation generated through systematic analysis of official Synology API libraries and testing against live NAS systems.

Real API Responses

All methods include actual JSON response examples with detailed field descriptions.

πŸ› οΈ Use Cases

  • File Management Automation - Automate file operations, uploads, downloads, sharing
  • Backup Automation - Automate backup tasks and monitoring with ActiveBackup
  • Download Management - Programmatically manage downloads, torrents, RSS feeds
  • Container Management - Manage Docker containers, images, networks, volumes
  • Photo Library Management - Organize and share photos programmatically
  • Surveillance Automation - Control cameras, PTZ, recording, event monitoring
  • Music Library Management - Manage playlists, control remote players
  • VPN Management - Monitor VPN connections, manage settings
  • Snapshot Management - Automate volume and LUN snapshots, replication
  • VM Automation - Manage virtual machines, power control, image creation
  • Network Services - Monitor DHCP, logs, security scans
  • Task Automation - Schedule scripts, service control, system tasks
  • Cloud Integration - Sync with Google Drive, OneDrive, Dropbox, S3
  • System Monitoring - Build custom monitoring dashboards for DSM
  • User & Permission Management - Automate user and group administration
  • Integration - Integrate Synology NAS with other systems and platforms

⚠️ Disclaimer

This is unofficial documentation created through reverse-engineering. It is not endorsed by or affiliated with Synology Inc. Use at your own risk. Always backup your data before making changes via API.

πŸ“„ License

MIT License - See LICENSE file for details

🀝 Contributing

Contributions welcome! Please see CONTRIBUTING.md for guidelines.

πŸ“ž Support


Made with ❀️ by the community

About

Complete API documentation for Synology ActiveBackup for Business

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors