Developer Portal
Manage your API integrations and OAuth applications.
API Documentation
Integrate ds.click into your workflow or application using our fast, RESTful API.
Authentication
The Developer API has two tiers: the Personal API and the Enterprise API. All requests must include an authorization header:
Authorization: Bearer <TOKEN>
Personal API Keys
Use these for personal scripts and automation. They give access to your own servers and data.
- Free to use
- Rate limit: 60 req / min
OAuth2 Tokens
Use these for public applications. They allow your app to perform actions on behalf of other users.
- Requires Enterprise Team Subscription ($49.99/mo)
- Rate limit: 120 req / min
Endpoints
/api/v1/serversList all servers that the authenticated user owns or manages.
Response JSON
{
"success": true,
"data": [
{
"id": "123456789",
"name": "My Discord Server",
"memberCount": 150,
"isPremium": true
}
]
} /api/v1/servers/:guildId/statsGet detailed analytics for a specific server over the last 7 days (or 30 days if the server is Premium).
/api/v1/statsGet overall aggregate analytics across all links owned by the user.
/api/v1/linksCreate a new shortened link for a server. The user must have permission to manage the server.
Request Body (JSON)
{
"originalUrl": "https://discord.gg/yourinvite",
"guildId": "123456789",
"description": "Optional description",
"isNsfw": false
}Response JSON
{
"success": true,
"data": {
"id": "...",
"shortCode": "abcd",
"shortUrl": "https://ds.click/s/abcd",
"originalUrl": "https://discord.gg/yourinvite"
}
}