For content suppliers and AI platforms. Series are matched by your own id, so importing again updates rather than duplicates.
1. Get a client
In Settings → API clients, create a client. The secret is shown once; store it in your secret manager.
2. Get a token
curl -u $CLIENT_ID:$CLIENT_SECRET \
-d grant_type=client_credentials \
https://api.your-site.example/v1/oauth/token
Tokens last one hour (OAuth 2.1 client credentials).
3. Import
| Call | What it does |
|---|---|
POST /v1/import/jobs | Starts an import job. |
POST /v1/import/uploads | Returns where to upload a video or image. |
PUT /v1/import/jobs/{id}/series | Creates or updates a series by external_id and starts transcoding. |
POST /v1/import/series/{id}/submit | Records the rights declaration and sends the series to review. |
GET /v1/import/jobs/{id} | Reports the status of each series and episode. |
4. Review results by webhook
Set a webhook URL on the client to receive review.decided events. Each request is signed: Webhook-Signature: t=<unix>,v1=<HMAC-SHA256 of "t.body">. Anything but 2xx is retried for about a day.
Prefer an AI assistant to do this? See the MCP tools.