Cloud Transcoding
ABR templates, builder tokens and transcoder tasks.
Group overview
Generated at build time from the public REST API definition: tag cloud-transcoding, 7 operations (out of 189). For authentication, envelope and pagination conventions see REST API overview.
| Method | Path | Summary |
|---|---|---|
GET | /v1/projects/{appId}/rtls/abr/config/codecs | Query the adaptive-bitrate templates |
POST | /v1/projects/{appId}/rtls/abr/config/codecs/{codecId} | Create or update an adaptive-bitrate template |
POST | /v1/projects/{appId}/rtsc/cloud-transcoder/builderTokens | Acquire a builder token |
POST | /v1/projects/{appId}/rtsc/cloud-transcoder/tasks | Create a cloud transcoding task |
GET | /v1/projects/{appId}/rtsc/cloud-transcoder/tasks/{taskId} | Query the status of a transcoding task |
PATCH | /v1/projects/{appId}/rtsc/cloud-transcoder/tasks/{taskId} | Update a transcoding task |
DELETE | /v1/projects/{appId}/rtsc/cloud-transcoder/tasks/{taskId} | Destroy a transcoding task |
Operation details
GET /v1/projects/{appId}/rtls/abr/config/codecs
Query the adaptive-bitrate templates
Authentication: project credentials (Base64 of customerId:customerSecret)
Parameters
| Name | Location | Required | Type | Description |
|---|---|---|---|---|
appId | path | is | string | pattern ^[a-f0-9]{32}$ |
Response
| Status codes | Description / schema |
|---|---|
200 | the templates — object{ status, data } |
400 | Invalid parameter — Error |
401 | Missing/invalid credentials — Error |
403 | Banned or service not enabled — Error |
404 | Resource not found — Error |
415 | Content-Type must be application/json — Error |
429 | Quota exceeded — Error |
Example call
curl -s -X GET "$NIMEET_API_BASE/v1/projects/appId/rtls/abr/config/codecs" \
-H "Authorization: Basic $NIMEET_CUSTOMER_BASIC"POST /v1/projects/{appId}/rtls/abr/config/codecs/{codecId}
Create or update an adaptive-bitrate template
Authentication: project credentials (Base64 of customerId:customerSecret)
Parameters
| Name | Location | Required | Type | Description |
|---|---|---|---|---|
appId | path | is | string | pattern ^[a-f0-9]{32}$ |
codecId | path | is | string | length 0..64 |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
enabled | boolean | is | |
video | object{ width, height, fps } | is |
{
"enabled": true,
"video": {
"width": 1,
"height": 1,
"fps": 1
}
}Response
| Status codes | Description / schema |
|---|---|
200 | the template was stored — object{ status } |
400 | Invalid parameter — Error |
401 | Missing/invalid credentials — Error |
403 | Banned or service not enabled — Error |
404 | Resource not found — Error |
415 | Content-Type must be application/json — Error |
429 | Quota exceeded — Error |
Example call
curl -s -X POST "$NIMEET_API_BASE/v1/projects/appId/rtls/abr/config/codecs/codecId" \
-H "Authorization: Basic $NIMEET_CUSTOMER_BASIC" \
-H "Content-Type: application/json" \
-d '{"enabled":true,"video":{"width":1,"height":1,"fps":1}}'POST /v1/projects/{appId}/rtsc/cloud-transcoder/builderTokens
Acquire a builder token
Mints a single-use builder token (5 minute validity) that the task endpoints require.
Authentication: project credentials (Base64 of customerId:customerSecret)
Parameters
| Name | Location | Required | Type | Description |
|---|---|---|---|---|
appId | path | is | string | pattern ^[a-f0-9]{32}$ |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
instanceId | string | is | length 0..64, pattern ^[A-Za-z0-9_-]+$ |
services | object{ cloudTranscoder } | is |
{
"instanceId": "string",
"services": {
"cloudTranscoder": {
"serviceType": "cloudTranscoderV2",
"config": {}
}
}
}Response
| Status codes | Description / schema |
|---|---|
200 | the builder token — object{ createTs, instanceId, tokenName } |
400 | Invalid parameter — Error |
401 | Missing/invalid credentials — Error |
403 | Banned or service not enabled — Error |
404 | Resource not found — Error |
415 | Content-Type must be application/json — Error |
429 | Quota exceeded — Error |
Example call
curl -s -X POST "$NIMEET_API_BASE/v1/projects/appId/rtsc/cloud-transcoder/builderTokens" \
-H "Authorization: Basic $NIMEET_CUSTOMER_BASIC" \
-H "Content-Type: application/json" \
-d '{"instanceId":"string","services":{"cloudTranscoder":{"serviceType":"cloudTranscoderV2","config":{}}}}'POST /v1/projects/{appId}/rtsc/cloud-transcoder/tasks
Create a cloud transcoding task
Authentication: project credentials (Base64 of customerId:customerSecret)
Parameters
| Name | Location | Required | Type | Description |
|---|---|---|---|---|
appId | path | is | string | pattern ^[a-f0-9]{32}$ |
builderToken | query | is | string |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
services | object{ cloudTranscoder } | is | |
instanceId | string | length 0..64 |
{
"services": {
"cloudTranscoder": {
"serviceType": "cloudTranscoderV2",
"config": {}
}
},
"instanceId": "string"
}Response
| Status codes | Description / schema |
|---|---|
200 | the transcoding task — object |
400 | Invalid parameter — Error |
401 | Missing/invalid credentials — Error |
403 | Banned or service not enabled — Error |
404 | Resource not found — Error |
415 | Content-Type must be application/json — Error |
429 | Quota exceeded — Error |
Example call
curl -s -X POST "$NIMEET_API_BASE/v1/projects/appId/rtsc/cloud-transcoder/tasks?builderToken=value" \
-H "Authorization: Basic $NIMEET_CUSTOMER_BASIC" \
-H "Content-Type: application/json" \
-d '{"services":{"cloudTranscoder":{"serviceType":"cloudTranscoderV2","config":{}}},"instanceId":"string"}'GET /v1/projects/{appId}/rtsc/cloud-transcoder/tasks/{taskId}
Query the status of a transcoding task
Authentication: project credentials (Base64 of customerId:customerSecret)
Parameters
| Name | Location | Required | Type | Description |
|---|---|---|---|---|
appId | path | is | string | pattern ^[a-f0-9]{32}$ |
taskId | path | is | string | length 0..128 |
builderToken | query | string |
Response
| Status codes | Description / schema |
|---|---|
200 | the transcoding task — object |
400 | Invalid parameter — Error |
401 | Missing/invalid credentials — Error |
403 | Banned or service not enabled — Error |
404 | Resource not found — Error |
415 | Content-Type must be application/json — Error |
429 | Quota exceeded — Error |
Example call
curl -s -X GET "$NIMEET_API_BASE/v1/projects/appId/rtsc/cloud-transcoder/tasks/taskId?builderToken=value" \
-H "Authorization: Basic $NIMEET_CUSTOMER_BASIC"PATCH /v1/projects/{appId}/rtsc/cloud-transcoder/tasks/{taskId}
Update a transcoding task
Adds or removes inputs, moves a layout region and updates the output audio/video options of a running task.
Authentication: project credentials (Base64 of customerId:customerSecret)
Parameters
| Name | Location | Required | Type | Description |
|---|---|---|---|---|
appId | path | is | string | pattern ^[a-f0-9]{32}$ |
taskId | path | is | string | length 0..128 |
builderToken | query | is | string |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
services | object{ cloudTranscoder } | is |
{
"services": {
"cloudTranscoder": {
"serviceType": "cloudTranscoderV2",
"config": {}
}
}
}Response
| Status codes | Description / schema |
|---|---|
200 | the request succeeded; the response body is empty |
400 | Invalid parameter — Error |
401 | Missing/invalid credentials — Error |
403 | Banned or service not enabled — Error |
404 | Resource not found — Error |
415 | Content-Type must be application/json — Error |
429 | Quota exceeded — Error |
Example call
curl -s -X PATCH "$NIMEET_API_BASE/v1/projects/appId/rtsc/cloud-transcoder/tasks/taskId?builderToken=value" \
-H "Authorization: Basic $NIMEET_CUSTOMER_BASIC" \
-H "Content-Type: application/json" \
-d '{"services":{"cloudTranscoder":{"serviceType":"cloudTranscoderV2","config":{}}}}'DELETE /v1/projects/{appId}/rtsc/cloud-transcoder/tasks/{taskId}
Destroy a transcoding task
Authentication: project credentials (Base64 of customerId:customerSecret)
Parameters
| Name | Location | Required | Type | Description |
|---|---|---|---|---|
appId | path | is | string | pattern ^[a-f0-9]{32}$ |
taskId | path | is | string | length 0..128 |
builderToken | query | string |
Response
| Status codes | Description / schema |
|---|---|
200 | the stopped transcoding task — object |
400 | Invalid parameter — Error |
401 | Missing/invalid credentials — Error |
403 | Banned or service not enabled — Error |
404 | Resource not found — Error |
415 | Content-Type must be application/json — Error |
429 | Quota exceeded — Error |
Example call
curl -s -X DELETE "$NIMEET_API_BASE/v1/projects/appId/rtsc/cloud-transcoder/tasks/taskId?builderToken=value" \
-H "Authorization: Basic $NIMEET_CUSTOMER_BASIC"Schemas used by this group
Error — object{ code, message, reason, sdkCode, details }
| Field | Type | Required | Description |
|---|---|---|---|
code | string | is | stable machine code, see errors.json |
message | string | is | |
reason | string | ||
sdkCode | integer | Agora-aligned client error number | |
details | object |