Authentication
Authentication
AntCDN APIs are authenticated using API keys.
API Keys
Include the key in the X-Api-Key header:
curl "https://api.antcdn.net/v1/videos" \ -H "X-Api-Key: YOUR_API_KEY"Where to create keys
Create keys in the dashboard under Settings → API Keys.
Caution
API keys are only shown once at creation time. Store them securely.
Key safety
- Never ship API keys in browser/mobile apps.
- Keep keys in a secret manager or environment variables.
- Rotate keys if you suspect compromise.
Private Playback (High Level)
Private videos require an authenticated URL/token for playback.
Typical flow:
https://worker.antcdn.net/v1/{edgeKey}/master.m3u8?jwt=...See /docs/authentication/overview for the full security overview and /docs/video-playback-controls/private-videos for implementation patterns.