Management API
The Management API is a REST API for what you otherwise do in the Vindral Portal: create and configure channels, channel groups, transcoding profiles and packagers, generate clips, and read live status and analytics. Send requests over HTTPS to https://api.cdn.vindral.com, with JSON bodies.
Each operation has its own page, grouped by resource in the sidebar, with code samples and a form to send the request with your API key. To create a key and set its permissions, see Management API.
Authentication
Send your API key as a bearer token in the Authorization header of every request. To create a key, see Create an API Key.
curl https://api.cdn.vindral.com/v1/channels \
-H "Authorization: Bearer $VINDRAL_API_KEY"
Requests and responses are JSON, except the clipping operations, which redirect to the clip. Send Content-Type: application/json with a request body.
Lists
List operations page their results with the query parameters skip (default 0) and take (default 100), and sort them with orderBy and order (asc or desc). The response holds the page in items and the number of matching records in total:
{
"items": [],
"total": 0
}
To read every record, raise skip by take until it reaches total.
Errors
Errors come with a 4xx or 5xx status and a JSON body that names the error in code and describes it in message. For a request that fails validation (400), issues lists what was wrong.
{
"code": "BAD_REQUEST",
"message": "Input validation failed",
"issues": []
}
| Status | code | Meaning |
|---|---|---|
| 400 | BAD_REQUEST | The request failed validation |
| 401 | UNAUTHORIZED | The API key is missing or not valid |
| 403 | FORBIDDEN | The key's permissions or scope do not allow the operation |
| 404 | NOT_FOUND | The resource does not exist |
| 500 | INTERNAL_SERVER_ERROR | The request failed on our side |
Packager Endpoints
The /v1/packagers endpoints additionally require the packager control plane to be enabled for your organization.
API Keys and Permissions
The API key used for authentication is tied to a user and shares the permissions of that user which is configured in the Vindral Portal. In addition to the user level permissions each API key has a scope of either read-only or read-write.
Read more in Permissions.