Retry failed post
Immediately retries publishing a failed post. Returns the updated post with its new status.
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.posts.retryPost({ path: { postId: 'post_abc123', },});console.log(data);{
"message": "Post published successfully",
"post": {
"_id": "65f1c0a9e2b5af0012ab34cd",
"content": "Check out our new product!",
"status": "published",
"publishedAt": "2024-11-01T10:00:05Z",
"platforms": [
{
"platform": "twitter",
"accountId": {
"_id": "64e1f0...",
"platform": "twitter",
"username": "@acme",
"displayName": "Acme Corp",
"isActive": true
},
"status": "published",
"platformPostId": "1234567890",
"platformPostUrl": "https://twitter.com/acme/status/1234567890"
}
]
}
}{
"error": "Unauthorized"
}{
"error": "Not found"
}{
"error": "string",
"details": {}
}Bulk upload from CSV POST
Create multiple posts by uploading a CSV file. Use dryRun=true to validate without creating posts.
Edit published post POST
Edit a published post on a social media platform. Currently only supported for X (Twitter). Requirements: - Connected X account must have an active X Premium subscription - Must be within 1 hour of original publish time - Maximum 5 edits per tweet (enforced by X) - Text-only edits (media changes are not supported) The post record in Zernio is updated with the new content and edit history.