Publishing · Posts
Retries a failed post.
Request
Send your API key as Authorization: Bearer pz_live_.... Read-only keys cannot call it. Keys with the publishing resource group disabled get 403 resource_group_disabled. Authentication
Path parameters
| Name | Type | Notes |
|---|---|---|
postIdrequired | string |
Example
curl -X POST "https://api.pozy.ai/v1/posts/6108a2cc742cb4e991051e0c/retry" \
-H "Authorization: Bearer $POZY_API_KEY"const res = await fetch("https://api.pozy.ai/v1/posts/6108a2cc742cb4e991051e0c/retry", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.POZY_API_KEY}` },
});
const data = await res.json();
if (!res.ok) throw new Error(data?.error ?? `Request failed with status ${res.status}`);
console.log(data);import os
import requests
resp = requests.post(
"https://api.pozy.ai/v1/posts/6108a2cc742cb4e991051e0c/retry",
headers={"Authorization": f"Bearer {os.environ['POZY_API_KEY']}"},
timeout=30,
)
resp.raise_for_status()
print(resp.json())Response
200 on success
messagestringpostobject20 child fields
_idstringuserIdstring or objectOne of:
string
User (6 fields)
_idstringemailstringnamestringrolestringdisabledResourceGroupsarray of stringcreatedAtstring (date-time)
titlestringcontentstringmediaItemsarray of object13 child fields
typestringOne of
image,video,gif,document.urlstring (URL)fileIdstringaccountIdstringtitlestringaltTextstringfilenamestringsizeintegermimeTypestringthumbnailstring (URL)instagramThumbnailstring (URL)subtitlesarray of objectUp to 20 items.
2 child fields
urlstring (URL)requiredlanguagestringrequired
tiktokProcessedboolean
platformsarray of object19 child fields
platformstringaccountIdstring or objectOne of:
string
Social Account (19 fields)
_idstringrequiredplatformstringrequiredOne of
tiktok,instagram,facebook,youtube,linkedin,twitter,threads,pinterest,reddit,bluesky,googlebusiness,telegram,snapchat,discord,slack,whatsapp,shopify,wordpress,wix,linkedinads,metaads,pinterestads,tiktokads,xadsand 15 more.profileIdstring or objectrequiredOne of:
string
Profile (11 fields)
_idstringuserIdstringnamestringdescriptionstringcolorstringtimezonestringCan be null.
externalIdstringCan be null.
isDefaultbooleanisOverLimitbooleanaccountCountintegercreatedAtstring (date-time)
usernamestringdisplayNamestringplatformUserIdstringscopeAreasarray of stringCan be null.
oauthAppIdstringCan be null.
tiktokAccountTypestringOne of
business,personal,unknown.profilePicturestringCan be null.
profileUrlstringisActivebooleanrequiredneedsReconnectionbooleanfollowersCountnumberfollowersLastUpdatedstring (date-time)parentAccountIdstringCan be null.
enabledbooleanrateLimitedUntilstring (date-time)Can be null.
metadataobject
customContentstringcustomMediaarray of object13 child fields
typestringOne of
image,video,gif,document.urlstring (URL)fileIdstringaccountIdstringtitlestringaltTextstringfilenamestringsizeintegermimeTypestringthumbnailstring (URL)instagramThumbnailstring (URL)subtitlesarray of objectUp to 20 items.
2 child fields
urlstring (URL)requiredlanguagestringrequired
tiktokProcessedboolean
scheduledForstring (date-time)platformSpecificDataobjectstatusstringplatformPostIdstringplatformPostUrlstringCan be null.
publishedAtstring (date-time)removedFromPlatformAtstring (date-time)Can be null.
isTrialReelbooleantrialGraduationStrategystringOne of
MANUAL,SS_PERFORMANCE.publishAttemptsintegerpublishRetriesintegererrorMessagestringerrorCategorystringOne of
auth_expired,user_content,user_abuse,account_issue,platform_rejected,platform_error,platform_rate_limit,quota_exhausted,system_error,unknown.errorSourcestringOne of
user,platform,system.platformErrorobject3 child fields
codeintegersubcodeintegermessagestringrequired
scheduledForstring (date-time)timezonestringstatusstringOne of
draft,pending_approval,scheduled,publishing,published,partial,failed,cancelled.tagsarray of stringhashtagsarray of stringmentionsarray of stringvisibilitystringOne of
public,private,unlisted.metadataobjectrecyclingobject11 child fields
enabledbooleangapintegergapFreqstringOne of
week,month.startDatestring (date-time)expireCountintegerexpireDatestring (date-time)contentVariationsarray of stringcontentVariationIndexintegerrecycleCountintegernextRecycleAtstring (date-time)lastRecycledAtstring (date-time)
recycledFromPostIdstringqueuedFromProfilestringqueueIdstringcreatedAtstring (date-time)updatedAtstring (date-time)
{
"message": "Hello from Pozy",
"post": {
"_id": "635d87e261ae344ef27fd1df",
"userId": "6da95b9455a22c1e061837af",
"title": "Launch day",
"content": "Hello from Pozy",
"mediaItems": [
{
"type": "image",
"url": "https://pozy.ai/media/example-1.jpg",
"fileId": "6035bf6bd3aac3067c336c50",
"accountId": "696e0b682d0a31188e7a2ba9",
"title": "Launch day",
"altText": "Hello from Pozy",
"filename": "photo.jpg",
"size": 482133,
"mimeType": "image/jpeg",
"thumbnail": "https://pozy.ai/media/example-1.jpg",
"instagramThumbnail": "https://pozy.ai/media/example-1.jpg",
"subtitles": [
{
"url": "https://pozy.ai/media/example-1.jpg",
"language": "en"
}
],
"tiktokProcessed": true
}
],
"platforms": [
{
"platform": "instagram",
"accountId": "696e0b682d0a31188e7a2ba9",
"customContent": "Hello from Pozy",
"customMedia": [
{
"type": "image",
"url": "https://pozy.ai/media/example-1.jpg",
"fileId": "6035bf6bd3aac3067c336c50",
"accountId": "696e0b682d0a31188e7a2ba9",
"title": "Launch day",
"altText": "Hello from Pozy",
"filename": "photo.jpg",
"size": 482133,
"mimeType": "image/jpeg",
"thumbnail": "https://pozy.ai/media/example-1.jpg",
"instagramThumbnail": "https://pozy.ai/media/example-1.jpg",
"subtitles": [
{
"url": "https://pozy.ai/media/example-1.jpg",
"language": "en"
}
],
"tiktokProcessed": true
}
],
"scheduledFor": "2026-10-02T09:00:00.000Z",
"platformSpecificData": {},
"status": "active",
"platformPostId": "637f799b3039e6602e83fa4f",
"platformPostUrl": "https://pozy.ai/media/example-1.jpg",
"publishedAt": "2026-10-02T09:00:00.000Z",
"removedFromPlatformAt": "2026-10-02T09:00:00.000Z",
"isTrialReel": true,
"trialGraduationStrategy": "MANUAL",
"publishAttempts": 1,
"publishRetries": 1,
"errorMessage": "Hello from Pozy",
"errorCategory": "auth_expired",
"errorSource": "user",
"platformError": {
"code": 1,
"subcode": 1,
"message": "Hello from Pozy"
}
}
],
"scheduledFor": "2026-10-02T09:00:00.000Z",
"timezone": "America/New_York",
"status": "draft",
"tags": [
"string"
],
"hashtags": [
"string"
],
"mentions": [
"string"
],
"visibility": "public",
"metadata": {},
"recycling": {
"enabled": true,
"gap": 1,
"gapFreq": "week",
"startDate": "2026-10-02T09:00:00.000Z",
"expireCount": 42,
"expireDate": "2026-10-02T09:00:00.000Z",
"contentVariations": [
"Hello from Pozy"
],
"contentVariationIndex": 1,
"recycleCount": 42,
"nextRecycleAt": "2026-10-02T09:00:00.000Z",
"lastRecycledAt": "2026-10-02T09:00:00.000Z"
},
"recycledFromPostId": "6786dd4f9a1815d922da3579",
"queuedFromProfile": "string",
"queueId": "6a5f84bc69bcee401578bb47",
"createdAt": "2026-10-02T09:00:00.000Z",
"updatedAt": "2026-10-02T09:00:00.000Z"
}
}Errors
Errors use one shape: { error, type, code, param?, details? }. The ones you are most likely to see here:
| 400 | invalid_request_error | A parameter or body field is missing or invalid. param names it. |
| 401 | authentication_error | The API key is missing, revoked or expired. |
| 403 | permission_error | The key is read-only, scoped to other profiles, or has this resource group disabled. |
| 404 | not_found | Nothing with that id exists in your workspace. |
| 429 | rate_limit_error | Too many requests this minute. Wait for Retry-After seconds. |
Every code is listed in Errors.