Skip to main content
POST
cURL
Choose the source explicitly. tiktok_direct only authorizes TikTok and fails when official configuration is unavailable; it never falls back. zernio remains Zernio even when official TikTok is enabled. Calling this endpoint starts an authorization flow. provider is required: tiktok_direct or zernio. It constrains the operation and never rewrites the stored source. Missing or unknown values return 400 invalid-provider. 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 expected source; never changes the stored account or post provider.

Available options:
tiktok_direct,
zernio
platform
string
required

tiktok_direct only accepts TikTok. zernio follows the configured platform allowlist.

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