API Keys

Create new API keys server-to-server using an existing API Access key. This lets you provision Client-Side Player, Client-Side Upload, and Inline Share keys on demand — for example, minting a scoped player key per customer.

URL Signing keys are dashboard-only

URL Signing keys (see Signing Keys) cannot be created or managed through the API. Create them from Settings → API Keys in the AudioDN dashboard, because they provision edge configuration (signing rules) that the API does not manage. API Access keys are also dashboard-only.

API Access keys are created in the dashboard

You must first create an API Access key from Settings → API Keys in the AudioDN dashboard. That key authenticates this endpoint. API Access keys themselves cannot be created via the API.

Creatable Key Types

  • player — Client-Side Player key for playback (and for creating play sessions from a custom client)
  • uploader — Client-Side Upload key for uploads (and for creating upload sessions from a custom client)
  • share — Inline Share key for public GET /v1/stream/{track_id}/{share_key} redirects (exactly one variant required; expires_at is ignored)

The api (API Access) and URL Signing types cannot be created here — they are managed only from the dashboard Settings → API Keys page.

Expiry & Scope

Via the API, expires_at is optional for player and uploader — omit it to create a key that never expires by time. Share keys never expire by time (expires_at is ignored). You can optionally limit a key to a specific collection_id (and further to a track_id). If your API Access key is itself scoped to a collection, the new key cannot be scoped outside it.

Downloads: a player key can optionally permit downloads. This is set from the dashboard when creating the key (the Allow downloads toggle) and is not configurable through this API endpoint. The key’s download permission is authoritative: the player downloadable attribute only requests downloads, and a play session is downloadable only when the key allows it and the request opts in.

POST /v1/api_key

Creates a new player, uploader, or share API key

Parameters

Name Type Required Description
title string Required Name of the API key
api_key_type_id string Required One of 'player', 'uploader', or 'share'.
collection_id uuid Optional Limit the key to a specific collection
track_id uuid Optional Limit the key to a specific track (requires collection_id)
creator_id uuid Optional Limit the key to a specific creator
variants array of strings Optional Optional for player keys. Required (exactly one) for share keys.
expires_at string Optional ISO 8601 expiration date/time for player/uploader. Ignored for share keys. Omit for a key that never expires by time.

Example Request

curl -X POST "https://api.audiodelivery.net/v1/api_key" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "title": "Customer Player Key",
  "api_key_type_id": "player",
  "collection_id": "COLLECTION_ID"
}'

Response

{
"ok": true,
"api_request_id": "uuid",
"api_key": "string"
}

Shown once

The full api_key is returned only in this response and is never stored in plaintext. Save it securely — it cannot be retrieved again.