Skip to content

Post actions

All return {"post": {…}} (shape), except delete, which returns {"id": "…", "deleted": true}.

Action Body Who
POST /posts/{id}/approve {"publishNow"?: true, "scheduledFor"?: "…"} Signed-in person only
POST /posts/{id}/reject {"reason"?: "…"} Person, or the key that created the post
POST /posts/{id}/cancel none Person, or the key that created the post
DELETE /posts/{id} none Person, or the key that created the post
POST /posts/{id}/reschedule {"scheduledFor": "…"} Person, or the key that created the post
POST /posts/{id}/retry none Person, or the key that created the post
POST /posts/{id}/first-comment/retry none Key or person

Approves a needs_approval post. If it has a future scheduledFor it is scheduled for then; otherwise it publishes now. The response comes back straight away with status publishing, and the send to Zernio happens in the background: poll GET /posts/{id} until settled is true to see scheduled, published or failed. If the time has passed you get 409 schedule_passed with details.choices: send publishNow: true or a new scheduledFor. Keys get 403 approval_requires_human, and a key can never approve its own post (self_approval_forbidden).

Stops a waiting post for good. reason is shown to the author. A key may reject only a post it created; another key’s post, or one made in the app, returns 403 reject_not_own_post. A signed-in person may reject any waiting post.

Works while needs_approval or scheduled. Cancelling twice is fine. Otherwise 409 not_cancellable. A key may cancel only a post it created (403 cancel_not_own_post otherwise); a post whose key was revoked is left to a signed-in person, who may cancel any post.

Removes a post that never went out, for good: one that is needs_approval or rejected, or cancelled or failed with every network cancelled or failed. Its first comments, its pending emails and the media no other post uses are removed with it. If Zernio still holds a copy (a failed send), that is deleted there too. A published, partial, scheduled or publishing post gets 409 not_deletable and is kept; cancel a scheduled post first. A key can delete only the posts it created (403 delete_not_own_post); a signed-in person can delete any such post in the workspace. Deleting again returns 404 post_not_found.

New ISO 8601 time with offset. Waiting posts change locally; scheduled ones are moved at the provider. Otherwise 409 not_reschedulable. A key may reschedule only a post it created (403 reschedule_not_own_post otherwise); a signed-in person may reschedule any post.

Only when status is failed; otherwise 409 not_retryable. The post is sent again as it is, as a new attempt. A scheduledFor that has passed (or none) publishes now; a future one keeps its schedule. A signed-in person may retry any failed post. A key may retry only a post it created (403 retry_not_own_post otherwise). A key that posts on its own publishes again. An asks-first key sends the post back to needs_approval, and your human gets the usual approval email.

Only when firstComment.status is failed; it can’t post twice. Otherwise 409 first_comment_not_failed.

Status Code
403 approval_requires_human, self_approval_forbidden, reject_not_own_post, retry_not_own_post, cancel_not_own_post, delete_not_own_post, reschedule_not_own_post, session_required, cross_site_request
404 post_not_found
409 not_awaiting_approval, schedule_passed, not_cancellable, not_deletable, not_reschedulable, first_comment_not_failed, not_retryable

Common questions

Can my bot approve its own posts?
No. Approval needs a signed-in person, and a key can never approve a post it created.
Can a bot reject another bot's post?
No. A key may reject, retry, cancel, delete or reschedule only a post it created (403 reject_not_own_post, retry_not_own_post, cancel_not_own_post, delete_not_own_post or reschedule_not_own_post). A signed-in person can do any of these to any post.
Can a bot cancel a post?
Yes, a post that key created, while it is waiting or scheduled. Other posts are left to a signed-in person.
Can a bot delete a post?
Only one it created, and only if it never went out: waiting, rejected, cancelled, or failed on every network. A published post stays; remove it on the network itself.
What if the scheduled time passed while waiting for approval?
Nothing was posted. Approve with publishNow: true, or send a new scheduledFor.