Query Mini Drama Authorizations
Retrieves the mini apps that have been granted access to a mini drama and their authorization status. Call this endpoint with the client access token of the mini app that owns the mini drama.
Endpoint
HTTP URL |
|
HTTP method |
|
Scopes |
|
Request
Headers
Field | Type | Description | Required | Example |
|
| The client access token of the mini app that owns the mini drama, prefixed with | Yes |
|
Query parameters
Field | Type | Description | Required | Example |
|
| The ID of the mini drama. Must be greater than | Yes |
|
Request example
curl --location 'https://open.tiktokapis.com/v2/sg/shortdrama/album/authorize/query/?album_id=7300000000000000001' \
--header 'Authorization: Bearer CLIENT_ACCESS_TOKEN'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 authorization records. | |
| The error object. |
AuthorizationData
Field | Type | Description |
| The authorization status of each target mini app. Omitted or empty when no authorization record exists. |
ClientKeyResult
Field | Type | Description | Example |
|
| The client key of the target mini app. Partially masked. |
|
|
| The authorization status. One of: |
|
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": "mnexample0****",
"auth_status": 1
},
{
"client_key": "mnexample1****",
"auth_status": 2
}
]
},
"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 |
| A field is missing or invalid. For example, | Provide your client key and an |
| The mini drama wasn't found. | Verify the |
| Your client key doesn't own this mini drama. | Query with the client access token of the mini app that owns the mini drama. |