Validate a post
const url = 'https://postflow.biz.id/api/v1/posts/validate';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"caption":"","mediaIds":[],"targets":[],"tagIds":["example"],"repeatDays":1,"scheduledAt":"2026-04-15T12:00:00Z","action":"draft","useNextSlot":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://postflow.biz.id/api/v1/posts/validate \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "caption": "", "mediaIds": [], "targets": [], "tagIds": [ "example" ], "repeatDays": 1, "scheduledAt": "2026-04-15T12:00:00Z", "action": "draft", "useNextSlot": true }'Runs pre-flight on a post body (as if scheduling it) without saving anything. action is optional. Allowed for read-only keys.
MCP tool: validate_post.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
object
object
object
object
object
object
Responses
Section titled “Responses”OK
object
True when no account has an error. Warnings don’t block.
object
object
E.g. caption_length, media_aspect. See the errors guide.
The file the issue is about.
Example
{ "targets": [ { "contentType": "fb_post", "issues": [ { "severity": "error" } ] } ]}Validation failed. details lists what to fix.
object
object
A sentence you can show to a person.
Field errors ({ field: [messages] }), or preflight: per-account rule violations with an issue code.
Example
{ "error": { "code": "UNAUTHENTICATED" }}Missing, invalid, expired or deleted key or token.
object
object
A sentence you can show to a person.
Field errors ({ field: [messages] }), or preflight: per-account rule violations with an issue code.
Example
{ "error": { "code": "UNAUTHENTICATED" }}More than 120 requests in a minute with this key.
object
object
A sentence you can show to a person.
Field errors ({ field: [messages] }), or preflight: per-account rule violations with an issue code.
Example
{ "error": { "code": "UNAUTHENTICATED" }}