Skip to main content

OAuth Init

GET 

/api/tiktok-shop/oauth/init

Generates a state value, caches it for 15 minutes, and returns the TikTok authorization URL the user should be redirected to. Optionally accepts an integration_instance_id to re-authorize an existing instance (the instance's own environment is used).

Not yet available to API tokens

This endpoint currently requires session authentication; Personal Access Token scope support is in progress.

Returns 422 when the selected environment's app key or app secret is not configured on this server, instead of returning an authorization URL that TikTok would reject. Check available_environments on Get Config first.

Requires Bearer token.

Request​

Responses​

OK

Response Headers
    Content-Type