Skip to main content
Dock developer API endpoints use API-key authentication.

API-key auth

Send your API key as a Bearer token.
API keys must stay server-side. Do not place them in frontend JavaScript, mobile apps, public Git repositories, Discord messages, screenshots, or logs.

Key safety rules

1

Use one key per integration scope

Do not create extra keys to bypass quotas, restrictions, suspensions, or access controls.
2

Rotate compromised keys

If a key is exposed, revoke it and create a replacement from the dashboard.
3

Restrict trusted hosts

Use IP allowlists or denylists when a key should only run from known infrastructure.
4

Log safely

Log request IDs and status codes, not full API keys or sensitive account data.

Common auth failures

401
The Bearer token is missing, invalid, expired, revoked, or disabled.
403
The endpoint or requested expansion requires a Premium key.
Auth error