Skip to main content
POST
cURL
Starts the platform’s official authorization flow. Only TikTok direct (Login Kit + Content Posting API) is available; other platforms are not offered yet and return 400 SOCIAL_PLATFORM_DENIED.
TikTok direct is live (approved on 2026-11-12). The current grant covers user.info.basic and video.upload: accounts can be connected and videos or photo carousels uploaded as drafts. Public direct posting needs a separate video.publish approval.
For tiktok_direct, auth_url is a short-lived, single-use same-origin launch URL (/api/social/v1/oauth/tiktok/start?ticket=..., valid for 3 minutes). Open it in the user’s system browser: the gateway consumes the ticket, issues an anti-CSRF browser cookie on the gateway origin, and responds with 302 Found to TikTok’s official authorization page. This keeps desktop, CLI, and web callbacks in the same browser context. provider is required and has one current value, tiktok_direct. A retired source identifier returns 410 provider-retired; missing or unknown values return 400 invalid-provider. CLI: omnimux social connect --provider tiktok_direct --platform tiktok. Passing a retired --provider value fails locally in the CLI with migration guidance before any network request. Use an OmniMux user access token and New-Api-User, not an sk- key. Inspect success as well as HTTP status; some upstream failures return HTTP 200 with success:false.

Authorizations

Authorization
string
header
required

OmniMux user access token, not an sk- API key.

New-Api-User
string
header
required

Current authenticated user ID.

Body

application/json
provider
enum<string>
required

Required source identifier; currently only tiktok_direct is accepted.

Available options:
tiktok_direct
platform
string
required

Currently only tiktok_direct with platform tiktok is accepted.

redirect_url
string

Allowed return URL; validated against gateway configuration.

Response

Check success before reading data. Generic upstream errors may use HTTP 200 with success:false.

success
enum<boolean>
required
Available options:
true
data
object
required