List posts
const url = 'https://postflow.biz.id/api/v1/posts?status=scheduled';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://postflow.biz.id/api/v1/posts?status=scheduled' \ --header 'Authorization: Bearer <token>'By status (default scheduled, soonest first; other statuses newest first), or every post scheduled in [from, to) by time. Pages: when there are more, the response has an X-Next-Cursor header; send it as cursor.
MCP tool: list_posts.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”With to. ISO time with an offset.
Only posts that go to this account.
Default 50 (max 100) by status, 500 (max 500) by range.
The previous page’s X-Next-Cursor.
Responses
Section titled “Responses”OK
object
Derived from the targets.
pending = waiting for the owner’s approval.
Send as expectedVersion when updating to avoid overwriting someone else’s change.
object
Use in mediaIds.
App path of the file. With the API, download it from /media/{id}/file.
One account a post goes to.
object
Target id, for retrying one account.
As sent in the request.
object
object
Hex color
Example
[ { "status": "draft", "review": "none", "media": [ { "kind": "image", "mime": "image/jpeg" } ], "targets": [ { "platform": "facebook", "contentType": "fb_post", "status": "draft", "firstCommentStatus": "pending" } ] }]Headers
Section titled “Headers”Cursor for the next page; absent on the last page.
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" }}