u-social

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.
Post lifecycle
SCHEDULED ──► PROCESSING ──┬──► COMPLETED
     (now) ─────┘            ├──► PARTIALLY_COMPLETED
                             └──► FAILED

Status 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 externalPostId and, where possible, externalUrl.
FAILED
Publishing failed. The cause is in errorCode and errorMessage.
Publication lifecycle
PENDING ──► PROCESSING ──┬──► PUBLISHED
                         └──► FAILED

Publication 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 taskId when reporting the problem.
targets[] with an error
{
  "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, fetch GET /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 after scheduledAt, is enough.
  • Stop polling when the post status is COMPLETED, PARTIALLY_COMPLETED or FAILED.