Create a Mini Drama
Creates an empty mini drama and returns its album_id. Add the mini drama's metadata and episodes with Update a Mini Drama.
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
Send an empty JSON object. TikTok identifies the owning mini app from the client access token.
Request example
curl --location 'https://open.tiktokapis.com/v2/sg/shortdrama/album/create/' \
--header 'Authorization: Bearer CLIENT_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data '{}'Replace CLIENT_ACCESS_TOKEN with your mini app's client access token.
Response
Response body
Field | Type | Description |
| The new mini drama. | |
| The error object. |
CreateAlbumData
Field | Type | Description | Example |
|
| The ID of the new mini drama. Preserve 64-bit precision when you parse it. |
|
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": {
"album_id": 7300000000000000001
},
"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 request is invalid. | Provide a valid client key and retry. |