All API requests require authentication via an API key.
API Keys
API keys are scoped to your Ansix account. Include them in
every request via the x-ansdev-key header:
curl -H "x-ansdev-key: ak_live_YOUR_KEY" \
https://api.ansdev.cloud/v1/video
Key Format
| Type | Prefix | Length | Example |
|---|---|---|---|
| Production | ak_live_ | 40 chars | ak_live_8f3a9b2c... |
| Testing | ak_test_ | 40 chars | ak_test_1a2b3c4d... |
Playback Tokens
Playback tokens are short-lived JWTs generated via the API. They grant 5-minute access to a specific video's HLS manifest.
Important: Never expose your API key in client-side code. Generate playback tokens on your server and pass them to the frontend Player SDK.