AnsdevDocs
PlaygroundGitHubDashboard

Authentication

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

TypePrefixLengthExample
Productionak_live_40 charsak_live_8f3a9b2c...
Testingak_test_40 charsak_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.