Publication statuses
A post has an overall status, and each chosen platform has its own publication status. The post status follows from the platform statuses.
status
SCHEDULED- The post is waiting for the time in
scheduledAt. PROCESSING- Publishing is in progress on at least one platform.
COMPLETED- Published on all chosen platforms.
PARTIALLY_COMPLETED- Some platforms published the post, others rejected it.
FAILED- No platform published the post.
SCHEDULED ──► PROCESSING ──┬──► COMPLETED
(now) ─────┘ ├──► PARTIALLY_COMPLETED
└──► FAILEDStatus on a platform
PUBLISHED and FAILED are final. A failed publication is not retried automatically. To try again, create a new post.
targets[].status
PENDING- Publishing has not started yet (the post is scheduled or waiting in the queue).
PROCESSING- We are sending the post to the platform or the platform is processing it.
PUBLISHED- The post is on the platform. We fill in
externalPostIdand, where possible,externalUrl. FAILED- Publishing failed. The cause is in
errorCodeanderrorMessage.
PENDING ──► PROCESSING ──┬──► PUBLISHED
└──► FAILEDPublication error codes
errorMessage is a description in English. It may come from the platform, so show it to users only as a detail and use errorCode in your logic.
targets[].errorCode
PLATFORM_NOT_CONNECTED- The platform account is not connected to the project or access was revoked.
PLATFORM_NOT_SUPPORTED- Publishing to this platform is not supported yet.
DISPATCH_FAILED- The post could not be sent for publishing. Create the post again.
INTERNAL_ERROR- Unexpected error on our side. Include the
taskIdwhen reporting the problem.
{
"platform": "TIKTOK",
"status": "FAILED",
"errorCode": "PLATFORM_NOT_CONNECTED",
"errorMessage": "TikTok publishing is not configured yet"
}How to check the status
- While the post is
PROCESSING, fetchGET /projects/{projectId}/posts/{postId}every 5 seconds. A TikTok video may take a few minutes to process. - While the post is
SCHEDULED, checking every few minutes, or only afterscheduledAt, is enough. - Stop polling when the post status is
COMPLETED,PARTIALLY_COMPLETEDorFAILED.