Authorize Mini Apps to Play a Mini Drama
Grants or removes other mini apps' access to a mini drama your mini app owns. An authorized mini app can play the mini drama's episodes without uploading them or submitting them for review again. Existing review, publishing, and playback rules still apply.
Use this endpoint only to share a mini drama between mini apps. You can authorize the following mini apps:
- Mini apps owned by the same developer entity.
- Mini apps owned by a different developer entity in the same corporate group, after TikTok approves cross-organization authorization. To request approval, submit a support ticket or contact your TikTok account manager.
This is a batch endpoint. Check each item in client_key_result.
Note: Takes effect on the playback side within 30 minutes.
Endpoint
HTTP URL |
|
HTTP method |
|
Scopes |
|
Content type |
|
Request
Headers
Field | Type | Description | Required | Example |
|
| The client access token of the mini app that owns the mini drama, prefixed with | Yes |
|
|
| The media type of the request body. | Yes |
|
Request body
Field | Type | Description | Required | Example |
|
| The ID of the mini drama. | Yes |
|
|
| The operation. One of: | Yes |
|
|
| The client keys of the mini apps to authorize or deauthorize. | Yes |
|
Request example
curl --location 'https://open.tiktokapis.com/v2/sg/shortdrama/album/authorize/' \
--header 'Authorization: Bearer CLIENT_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"album_id": 7300000000000000001,
"operate_type": 1,
"target_client_key_list": ["mnexample00001", "mnexample00002"]
}'Replace CLIENT_ACCESS_TOKEN with the client access token of the mini app that owns the mini drama.
Response
Response body
Field | Type | Description |
| The result for each target mini app. | |
| The error object. |
AuthorizeAlbumData
Field | Type | Description |
| The result for each target client key. |
ClientKeyResult
Field | Type | Description | Example |
|
| The client key of the target mini app. |
|
|
| The authorization status. One of: |
|
|
| The error code. Returned only when processing this target fails. |
|
|
| The error description. Returned only when processing this target fails. |
|
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": {
"client_key_result": [
{
"client_key": "mnexample00001",
"auth_status": 1
}
]
},
"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 owner client key doesn't belong to a mini drama app. | Check the request parameters and mini drama ownership, then retry. |
| The request is invalid. | Check the owner, |
| The mini drama wasn't found. | Verify the |
| The authorization already exists. | Don't add it again. |
| The authorization was already removed. | Query the authorization status. |
| The target client key doesn't belong to a mini drama app. | Check the target client key. |
| Your organization isn't approved for cross-organization authorization. | Request approval first. |
| The organizations aren't in the same corporate group. | Choose an eligible target mini app. |
| Your client key doesn't own this mini drama. | Use the owner's client key and retry. |
| Organization information is unavailable. | Verify the client keys and retry. If the error persists, contact support. |