cURL
curl --request POST \
--url "https://omnimux.ai/api/social/v1/connect" \
--header 'Authorization: Bearer <user-access-token>' \
--header 'New-Api-User: <user-id>' \
--header 'Content-Type: application/json' \
--data '{"provider":"zernio","platform":"tiktok"}'import requests
url = "https://omnimux.ai/api/social/v1/connect"
payload = {
"provider": "zernio",
"platform": "tiktok"
}
headers = {
"Authorization": "Bearer <token>",
"New-Api-User": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'New-Api-User': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({provider: 'zernio', platform: 'tiktok'})
};
fetch('https://omnimux.ai/api/social/v1/connect', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://omnimux.ai/api/social/v1/connect"
payload := strings.NewReader("{\n \"provider\": \"zernio\",\n \"platform\": \"tiktok\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("New-Api-User", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true,
"data": {
"auth_url": "<string>",
"platform": "<string>",
"provider": "zernio"
}
}{
"success": false,
"message": "<string>",
"code": "<string>"
}{
"success": false,
"message": "<string>",
"code": "<string>"
}{
"success": false,
"message": "<string>",
"code": "<string>"
}{
"success": false,
"message": "<string>",
"code": "<string>"
}{
"success": false,
"message": "<string>",
"code": "<string>"
}{
"success": false,
"message": "<string>",
"code": "<string>"
}Connecting Accounts
Start Connection
Start Connection — explicit account source
POST
/
api
/
social
/
v1
/
connect
cURL
curl --request POST \
--url "https://omnimux.ai/api/social/v1/connect" \
--header 'Authorization: Bearer <user-access-token>' \
--header 'New-Api-User: <user-id>' \
--header 'Content-Type: application/json' \
--data '{"provider":"zernio","platform":"tiktok"}'import requests
url = "https://omnimux.ai/api/social/v1/connect"
payload = {
"provider": "zernio",
"platform": "tiktok"
}
headers = {
"Authorization": "Bearer <token>",
"New-Api-User": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'New-Api-User': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({provider: 'zernio', platform: 'tiktok'})
};
fetch('https://omnimux.ai/api/social/v1/connect', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://omnimux.ai/api/social/v1/connect"
payload := strings.NewReader("{\n \"provider\": \"zernio\",\n \"platform\": \"tiktok\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("New-Api-User", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true,
"data": {
"auth_url": "<string>",
"platform": "<string>",
"provider": "zernio"
}
}{
"success": false,
"message": "<string>",
"code": "<string>"
}{
"success": false,
"message": "<string>",
"code": "<string>"
}{
"success": false,
"message": "<string>",
"code": "<string>"
}{
"success": false,
"message": "<string>",
"code": "<string>"
}{
"success": false,
"message": "<string>",
"code": "<string>"
}{
"success": false,
"message": "<string>",
"code": "<string>"
}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
OmniMux user access token, not an sk- API key.
Current authenticated user ID.
Body
application/json
Required expected source; never changes the stored account or post provider.
Available options:
tiktok_direct, zernio tiktok_direct only accepts TikTok. zernio follows the configured platform allowlist.
Allowed return URL; validated against gateway configuration.