TikTok for Developers

Developer Docs

Last updated November 24, 2026

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

https://open.tiktokapis.com/v2/sg/shortdrama/cdn/preload/tasks/describe/

HTTP method

POST

Scopes

None

Content type

application/json

Request

Headers

Field

Type

Description

Required

Example

Authorization

string

The client access token of your mini app, prefixed with Bearer.

Yes

Bearer clt.example12345Example12345Example

Content-Type

string

The media type of the request body.

Yes

application/json

Request body

Field

Type

Description

Required

Example

client_key

string

The client key of your mini app.

Yes

mnexample12345

AccountID

string

The ID of the BytePlus account, as a non-empty decimal string.

Yes

3000000000

SpaceName

string

The name of the BytePlus space.

Yes

shortdrama-sg

TaskID

string

The ID of the preload task.

Yes

31c6a06d-e686-42ef-9887-e4b7c39df3fa

PageNum

int32

The page to return, starting from 1. Default: 1.

No

1

PageSize

int32

The number of resources per page. Minimum: 1. Maximum: 100. Default: 20.

No

20

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

data

PreloadQueryData

The business data.

error

ErrorStruct

The error object.

PreloadQueryData

Field

Type

Description

ResponseMetadata

ResponseMetadata

The response metadata.

Result

PreloadQueryResult

The task status. Returned only on success.

ResponseMetadata

Field

Type

Description

Example

RequestId

string

The ID of the downstream request.

202508010000000000000000000000000

Error

object

The downstream error, with Code and Message fields. Returned only on failure.

N/A

PreloadQueryResult

Field

Type

Description

Example

AccountID

string

The ID of the BytePlus account.

3000000000

SpaceName

string

The name of the BytePlus space.

shortdrama-sg

TaskID

string

The ID of the preload task.

31c6a06d-e686-42ef-9887-e4b7c39df3fa

Status

string

The status of the whole task. One of: Running, PartialSucceeded, Succeed, or Failed.

Succeed

Summary

Summary

The counts of targets across the whole task.

See Summary.

Total

int32

The number of top-level storage URIs after deduplication, excluding derived files.

3

PageNum

int32

The current page.

1

PageSize

int32

The number of resources per page.

20

Items

list<PreloadItem>

The resources on this page. Doesn't include Vid.

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

Total

int32

The total number of targets.

9

Succeeded

int32

The number of targets that succeeded.

9

Failed

int32

The number of targets that failed.

0

Running

int32

The number of targets in progress.

0

PreloadItem

Field

Type

Description

Example

StoreUri

string

The storage URI, including the bucket prefix. This differs from the short URI you submitted.

tos-vod-example/example0000.mp4

Status

string

The combined status of the resource's targets and derived resources. One of: Running, PartialSucceeded, Succeed, or Failed.

Succeed

Targets

list<PreloadTarget>

The result on each domain.

See PreloadTarget.

Children

list<PreloadItem>

Derived resources, such as HLS TS segments. Empty for regular files. Child items have no Children field.

[]

PreloadTarget

Field

Type

Description

Example

Domain

string

The CDN domain.

3000000000-shortdrama-sg.minis.byteplusvod.com

Status

string

The status on this domain. One of: Running, Succeed, or Failed.

Succeed

Url

string

The signed preload URL. Omitted when BytePlus doesn't return it.

https://3000000000-shortdrama-sg.minis.byteplusvod.com/vod/example0000.mp4

Region

string

The preload region. Omitted when BytePlus doesn't return it.

N/A

Error

object

The failure details, with Code and Message fields. Omitted when the target succeeded.

N/A

ErrorStruct

Field

Type

Description

code

string

The error code. Omitted on success.

message

string

A human-readable description of the error.

log_id

string

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

5001

The service is temporarily unavailable.

Retry later. If the error persists, contact support with the log_id.

1121014

The query is invalid.

Provide all required fields. PageNum must be 1 or greater, and PageSize must be between 1 and 100.

1121409

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.

1221509

BytePlus rejected the query.

Check the TaskID and BytePlus configuration, then retry. If the error persists, contact support with the RequestId and TaskID.

1221510

A CDN preload target failed.

If the target is retryable, retry the resource. Otherwise, fix the origin, domain, or resource configuration.

TikTok for Developers