Inline Share
Inline Share Keys let you attach a key to a URL that anyone can open — no Authorization header, no play session handshake. Each request validates the key, signs a short-lived CDN URL for the key’s variant, and returns a 302 redirect to the audio file.
High usage
Share links are public. Anyone with the URL can stream until the key expires or is deleted. Each request counts toward play usage and billing. Set an expiry date when possible and delete keys you no longer need.
Creating a Share Key
Create an Inline Share Key from Settings → API Keys in the AudioDN dashboard, or via POST /v1/api_key with api_key_type_id: “share” (see API Keys). You must select exactly one variant. Optionally limit the key to a collection or track. Share keys never expire by time.
/v1/stream/:track_id/:api_key Validates an Inline Share Key and redirects to a signed CDN URL for the key's variant
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
track_id | uuid | Required | ID of the track to stream (path parameter) |
api_key | string | Required | Inline Share Key including org prefix (path parameter) |
Response
HTTP/1.1 302 Found
Location: https://{org_domain}/{file_path}?verify={hmac_token}
Cache-Control: no-store No JSON body is returned. The client follows the redirect to stream audio from your organization’s CDN domain. The signed URL is valid for one hour; request the share URL again to mint a fresh token.
Key Scope
- Org-wide — any track in your organization (default)
- Collection — only tracks in the specified collection
- Track — only the specified track (when collection is also set)
The key’s single variant is always enforced. Requests for tracks outside the key’s scope return 404.