cURL
curl --request GET \
--url "https://omnimux.ai/api/social/v1/posts/<record-id>?provider=tiktok_direct&refresh=0" \
--header 'Authorization: Bearer <user-access-token>' \
--header 'New-Api-User: <user-id>'import requests
url = "https://omnimux.ai/api/social/v1/posts/{id}"
headers = {
"Authorization": "Bearer <token>",
"New-Api-User": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {Authorization: 'Bearer <token>', 'New-Api-User': '<api-key>'}
};
fetch('https://omnimux.ai/api/social/v1/posts/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://omnimux.ai/api/social/v1/posts/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("New-Api-User", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true,
"data": {
"id": 123,
"provider": "tiktok_direct",
"status": "submitted",
"provider_post_id": "<string>",
"content_preview": "<string>",
"created_at": 123,
"updated_at": 123,
"result": "<unknown>"
}
}{
"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,
"code": "post-provider-mismatch",
"message": "post-provider-mismatch"
}{
"success": false,
"message": "<string>",
"code": "<string>"
}{
"success": false,
"message": "<string>",
"code": "<string>"
}Posts
Get Post
Get Post — read by official source
GET
/
api
/
social
/
v1
/
posts
/
{id}
cURL
curl --request GET \
--url "https://omnimux.ai/api/social/v1/posts/<record-id>?provider=tiktok_direct&refresh=0" \
--header 'Authorization: Bearer <user-access-token>' \
--header 'New-Api-User: <user-id>'import requests
url = "https://omnimux.ai/api/social/v1/posts/{id}"
headers = {
"Authorization": "Bearer <token>",
"New-Api-User": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {Authorization: 'Bearer <token>', 'New-Api-User': '<api-key>'}
};
fetch('https://omnimux.ai/api/social/v1/posts/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://omnimux.ai/api/social/v1/posts/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("New-Api-User", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true,
"data": {
"id": 123,
"provider": "tiktok_direct",
"status": "submitted",
"provider_post_id": "<string>",
"content_preview": "<string>",
"created_at": 123,
"updated_at": 123,
"result": "<unknown>"
}
}{
"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,
"code": "post-provider-mismatch",
"message": "post-provider-mismatch"
}{
"success": false,
"message": "<string>",
"code": "<string>"
}{
"success": false,
"message": "<string>",
"code": "<string>"
}The stored source is verified even when
refresh=0. A cross-source post returns 409 without returning the record or refreshing upstream. status is the stored or refreshed state and does not guarantee that publishing succeeded.
For tiktok_direct, when refresh=1 queries TikTok upstream, result.status retains TikTok’s original status string and status is mapped as follows:
status | TikTok upstream result.status | Terminal | Meaning |
|---|---|---|---|
submitted | — | No | Initial state right after POST /api/social/v1/posts succeeds |
processing | PROCESSING_DOWNLOAD, PROCESSING_UPLOAD, PUBLISH_INITIATED | No | TikTok is still pulling or processing the media |
sent_to_inbox | SEND_TO_USER_INBOX | No | Draft delivered to the creator’s TikTok inbox, waiting for the creator to confirm and post inside TikTok. refresh=1 continues polling upstream and transitions to published or failed |
published | PUBLISH_COMPLETE | Yes | Publishing completed on TikTok |
failed | FAILED, FAIL | Yes | Upload or publishing failed (result.fail_reason holds upstream details when provided) |
deleted | — (webhook removal event) | Yes | Absorbing terminal state recorded on deployments with TikTok Content Posting webhooks enabled when no publicly available post_ids remain. Polling never regresses sent_to_inbox back to processing, never overwrites terminal states, and never clears webhook-recorded result.post_ids or result.unavailable_post_ids |
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 post-status <post-id> --provider tiktok_direct (pass --no-refresh for refresh=0). Passing a retired --provider value fails locally in the CLI 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.