Publishing
Get a post
One post and how it went on each network.
https://api.sangtao.ai/v2/publishing/posts/{id}Authorization
X-Api-Keystring · headerrequiredYour API key, from the API keys page of your account.
Path parameters
idstringrequiredThe ID in the path.
Response
idstring (guid)requiredThe post's ID
teamIdstring (guid)requiredThe group it was published from
teamNamestringrequiredThat group's name
webJobIdstring | nullThe sangtao.ai job posted, when it was published with jobId
titlestring | nullDisplay title: the YouTube title, else the first platform's caption
thumbnailUrlstring | nullCover image
statusstringrequiredThe post as a whole. Final: Published, PartiallyPublished, Failed, Cancelled
Available options:
PendingProcessingDraftUploadingScheduledPublishingPublishedPartiallyPublishedFailedCancelledstatusMessagestring | nullA short note on the status
scheduledAtstring | nullThe scheduled time (UTC), if scheduled
createdAtstringrequiredWhen the post was created (ISO 8601, UTC)
platformsobject[]requiredOne per network
Show child attributesHide child attributes
idstringrequiredThis network's entry in the post, pp_…. An opaque string
platformstringrequiredThe network
Available options:
TikTokYouTubeInstagramFacebookThreadsTwitterpostTypestring | nullThe type you sent; null when the default was used
Available options:
POSTREELSTORYSHORTVIDEOIMAGEstatusstringrequiredThis network's status
Available options:
DraftUploadingScheduledPublishingPublishedFailedCancelledRetryingcaptionstring | nullPost text sent
titlestring | nullTitle sent (YouTube)
descriptionstring | nullDescription sent (YouTube)
externalUrlstring | nullLink to the live post, once published
errorstring | nullWhy it failed, when Failed
publishedAtstring | nullWhen it went live (ISO 8601, UTC)
webhookobjectOnly when the request had webhookUrl: how its latest delivery went. Never inside the webhook’s own data
Show child attributesHide child attributes
urlstringrequiredThe webhookUrl
statusstringrequiredwaiting: not finished yet, nothing sent. pending: failed, will retry
Available options:
waitingpendingsucceededfailedattemptCountnumberrequiredAttempts so far
lastHttpStatusnumber | nullWhat the URL answered last
lastErrorstring | nullWhy the last attempt failed
deliveryIdstring | nulldlv_… — open it with GET /webhooks/deliveries/{deliveryId}
Errors
| Status | errorCode | When |
|---|---|---|
| 404 | POST_NOT_FOUND | No post of yours with this id |
/publishing/posts/{id}curl "https://api.sangtao.ai/v2/publishing/posts/7c9e6679-7425-40de-944b-e07fc1f90ae7" \
-H "X-Api-Key: YOUR_API_KEY"{
"success": true,
"data": {
"id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"teamId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"teamName": "Main channels",
"webJobId": null,
"title": "How to make iced coffee at home",
"thumbnailUrl": "https://cdn.example.com/cover.jpg",
"status": "PartiallyPublished",
"statusMessage": null,
"scheduledAt": null,
"createdAt": "2026-11-08T02:00:00Z",
"platforms": [
{
"id": "pp_3kT9qPz0B",
"platform": "TikTok",
"postType": null,
"status": "Published",
"caption": "Iced coffee in 3 steps #coffee",
"title": null,
"description": null,
"externalUrl": "https://www.tiktok.com/@yourchannel/video/1234567890",
"error": null,
"publishedAt": "2026-11-08T02:03:00Z"
},
{
"id": "pp_9pW4nKt1H",
"platform": "YouTube",
"postType": "SHORT",
"status": "Failed",
"caption": null,
"title": "How to make iced coffee at home",
"description": "A three-step recipe.",
"externalUrl": null,
"error": "The video is too long for Shorts",
"publishedAt": null
}
],
"webhook": {
"url": "https://example.com/webhooks/sangtao",
"status": "succeeded",
"attemptCount": 1,
"lastHttpStatus": 200,
"lastError": null,
"deliveryId": "dlv_7Fz2kWq4N"
}
}
}/publishing/posts/{id}curl "https://api.sangtao.ai/v2/publishing/posts/7c9e6679-7425-40de-944b-e07fc1f90ae7" \
-H "X-Api-Key: YOUR_API_KEY"{
"success": true,
"data": {
"id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"teamId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"teamName": "Main channels",
"webJobId": null,
"title": "How to make iced coffee at home",
"thumbnailUrl": "https://cdn.example.com/cover.jpg",
"status": "PartiallyPublished",
"statusMessage": null,
"scheduledAt": null,
"createdAt": "2026-11-08T02:00:00Z",
"platforms": [
{
"id": "pp_3kT9qPz0B",
"platform": "TikTok",
"postType": null,
"status": "Published",
"caption": "Iced coffee in 3 steps #coffee",
"title": null,
"description": null,
"externalUrl": "https://www.tiktok.com/@yourchannel/video/1234567890",
"error": null,
"publishedAt": "2026-11-08T02:03:00Z"
},
{
"id": "pp_9pW4nKt1H",
"platform": "YouTube",
"postType": "SHORT",
"status": "Failed",
"caption": null,
"title": "How to make iced coffee at home",
"description": "A three-step recipe.",
"externalUrl": null,
"error": "The video is too long for Shorts",
"publishedAt": null
}
],
"webhook": {
"url": "https://example.com/webhooks/sangtao",
"status": "succeeded",
"attemptCount": 1,
"lastHttpStatus": 200,
"lastError": null,
"deliveryId": "dlv_7Fz2kWq4N"
}
}
}