API Documentation
Integrate DingDns into your workflow with our REST API.
Quick Start
- Get your API key from the Dashboard
- Check server health:
GET /health - List your zones:
GET /api/zoneswithX-API-Keyheader
Authentication
All API requests require an X-API-Key header.
curl -H "X-API-Key: dk_your_key_here" \
https://your-server.com/api/zones
Keys are stored hashed and shown in full only once, at creation — copy yours right away. Requests are rate-limited to 120 per minute per IP.
Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /health | Health check |
| GET | /api/zones | List all zones |
| POST | /api/zones | Create zone |
| GET | /api/records/zone/:id | List records |
| POST | /api/records/zone/:id | Create record |
| PUT | /api/records/:id | Update record |
| DEL | /api/records/:id | Delete record |
| GET | /api/subdomains | List your subdomains |
| POST | /api/subdomains | Allocate a subdomain under a base domain |
| POST | /api/subdomains/:id/records | Create record under a subdomain |
| GET | /api/base-domains | List offered base domains |
| GET | /ddns/ip | Echo your public IP (no auth) |
| GET | /ddns/update | DDNS update (token auth, not under /api) |
For the complete API reference, see the full documentation on GitHub.