Query a Mini Drama CDN Preload Task
Retrieves the status of a CDN preload task and the result for each resource and domain. Results are paginated, but Status and Summary cover the whole task.
Endpoint
HTTP URL |
|
HTTP method |
|
Scopes |
|
Content type |
|
Request
Headers
Field | Type | Description | Required | Example |
|
| The client access token of your mini app, prefixed with | Yes |
|
|
| The media type of the request body. | Yes |
|
Request body
Field | Type | Description | Required | Example |
|
| The client key of your mini app. | Yes |
|
|
| The ID of the BytePlus account, as a non-empty decimal string. | Yes |
|
|
| The name of the BytePlus space. | Yes |
|
|
| The ID of the preload task. | Yes |
|
|
| The page to return, starting from | No |
|
|
| The number of resources per page. Minimum: | No |
|
Request example
curl --location --request POST 'https://open.tiktokapis.com/v2/sg/shortdrama/cdn/preload/tasks/describe/' \
--header 'Authorization: Bearer CLIENT_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
"client_key": "CLIENT_KEY",
"AccountID": "BYTEPLUS_ACCOUNT_ID",
"SpaceName": "SPACE_NAME",
"TaskID": "31c6a06d-e686-42ef-9887-e4b7c39df3fa",
"PageNum": 1,
"PageSize": 20
}'Replace the following:
CLIENT_ACCESS_TOKEN: your mini app's client access token.CLIENT_KEY: your mini app's client key.BYTEPLUS_ACCOUNT_ID: the ID of the BytePlus account bound to your mini app.SPACE_NAME: the name of your BytePlus space.
Response
Response body
Field | Type | Description |
| The business data. | |
| The error object. |
PreloadQueryData
Field | Type | Description |
| The response metadata. | |
| The task status. Returned only on success. |
ResponseMetadata
Field | Type | Description | Example |
|
| The ID of the downstream request. |
|
|
| The downstream error, with | N/A |
PreloadQueryResult
Field | Type | Description | Example |
|
| The ID of the BytePlus account. |
|
|
| The name of the BytePlus space. |
|
|
| The ID of the preload task. |
|
|
| The status of the whole task. One of: |
|
| The counts of targets across the whole task. | See Summary. | |
|
| The number of top-level storage URIs after deduplication, excluding derived files. |
|
|
| The current page. |
|
|
| The number of resources per page. |
|
| The resources on this page. Doesn't include | See PreloadItem. |
Summary
A target is one resource on one domain. A resource preloaded to three domains counts as three targets.
Field | Type | Description | Example |
|
| The total number of targets. |
|
|
| The number of targets that succeeded. |
|
|
| The number of targets that failed. |
|
|
| The number of targets in progress. |
|
PreloadItem
Field | Type | Description | Example |
|
| The storage URI, including the bucket prefix. This differs from the short URI you submitted. |
|
|
| The combined status of the resource's targets and derived resources. One of: |
|
| The result on each domain. | See PreloadTarget. | |
|
| Derived resources, such as HLS TS segments. Empty for regular files. Child items have no |
|
PreloadTarget
Field | Type | Description | Example |
|
| The CDN domain. |
|
|
| The status on this domain. One of: |
|
|
| The signed preload URL. Omitted when BytePlus doesn't return it. |
|
|
| The preload region. Omitted when BytePlus doesn't return it. | N/A |
|
| The failure details, with | N/A |
ErrorStruct
Field | Type | Description |
|
| The error code. Omitted on success. |
|
| A human-readable description of the error. |
|
| The unique identifier for the request. Include this value when contacting support. |
Response example
{
"data": {
"ResponseMetadata": {
"RequestId": "202508010000000000000000000000000"
},
"Result": {
"AccountID": "3000000000",
"SpaceName": "shortdrama-sg",
"TaskID": "31c6a06d-e686-42ef-9887-e4b7c39df3fa",
"Status": "Succeed",
"Summary": {
"Failed": 0,
"Running": 0,
"Succeeded": 3,
"Total": 3
},
"Total": 1,
"PageNum": 1,
"PageSize": 20,
"Items": [
{
"StoreUri": "tos-vod-example/example0000.mp4",
"Status": "Succeed",
"Children": [],
"Targets": [
{
"Domain": "3000000000-shortdrama-sg.minis.byteplusvod.com",
"Status": "Succeed",
"Url": "https://3000000000-shortdrama-sg.minis.byteplusvod.com/vod/example0000.mp4"
},
{
"Domain": "3000000000-shortdrama-sg.tiktok-minis-vod.eu",
"Status": "Succeed",
"Url": "https://3000000000-shortdrama-sg.tiktok-minis-vod.eu/vod/example0000.mp4"
},
{
"Domain": "3000000000-shortdrama-sg.tiktok-minis-vod.us",
"Status": "Succeed",
"Url": "https://3000000000-shortdrama-sg.tiktok-minis-vod.us/vod/example0000.mp4"
}
]
}
]
}
},
"error": {
"log_id": "202508010000000000000000000000000"
}
}Error codes
Error code | Description | Resolution |
| The service is temporarily unavailable. | Retry later. If the error persists, contact support with the |
| The query is invalid. | Provide all required fields. |
| The BytePlus account is unavailable for CDN preload queries. | Check the domain binding for your client key, the BytePlus account connection, and the account authorization. |
| BytePlus rejected the query. | Check the |
| A CDN preload target failed. | If the target is retryable, retry the resource. Otherwise, fix the origin, domain, or resource configuration. |