TikTok for Developers

Developer Docs

Last updated December 3, 2026

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

https://open.tiktokapis.com/v2/sg/shortdrama/album/authorize/

HTTP method

POST

Scopes

None

Content type

application/json

Request

Headers

Field

Type

Description

Required

Example

Authorization

string

The client access token of the mini app that owns the mini drama, 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

album_id

int64

The ID of the mini drama.

Yes

7300000000000000001

operate_type

int32

The operation. One of:
• 1: Add authorization.
• 2: Remove authorization.

Yes

1

target_client_key_list

list<string>

The client keys of the mini apps to authorize or deauthorize.

Yes

["mnexample00001", "mnexample00002"]

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

data

AuthorizeAlbumData

The result for each target mini app.

error

ErrorStruct

The error object.

AuthorizeAlbumData

Field

Type

Description

client_key_result

list<ClientKeyResult>

The result for each target client key.

ClientKeyResult

Field

Type

Description

Example

client_key

string

The client key of the target mini app.

mnexample00001

auth_status

int32

The authorization status. One of:
• 1: Authorized.
• 2: Removed.

1

error_code

int32

The error code. Returned only when processing this target fails.

2122001

error_message

string

The error description. Returned only when processing this target fails.

authorization already exists

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": {
    "client_key_result": [
      {
        "client_key": "mnexample00001",
        "auth_status": 1
      }
    ]
  },
  "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.

2121003

The owner client key doesn't belong to a mini drama app.

Check the request parameters and mini drama ownership, then retry.

2121007

The request is invalid.

Check the owner, album_id, operate_type, and target client keys.

2121108

The mini drama wasn't found.

Verify the album_id.

2122001

The authorization already exists.

Don't add it again.

2122002

The authorization was already removed.

Query the authorization status.

2122003

The target client key doesn't belong to a mini drama app.

Check the target client key.

2122004

Your organization isn't approved for cross-organization authorization.

Request approval first.

2122005

The organizations aren't in the same corporate group.

Choose an eligible target mini app.

2123206

Your client key doesn't own this mini drama.

Use the owner's client key and retry.

2321501

Organization information is unavailable.

Verify the client keys and retry. If the error persists, contact support.

TikTok for Developers