Skip to main content

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.

bash
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:

json
{
"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.

json
{
"code": "BAD_REQUEST",
"message": "Input validation failed",
"issues": []
}
StatuscodeMeaning
400BAD_REQUESTThe request failed validation
401UNAUTHORIZEDThe API key is missing or not valid
403FORBIDDENThe key's permissions or scope do not allow the operation
404NOT_FOUNDThe resource does not exist
500INTERNAL_SERVER_ERRORThe 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.