Delete Post
Cancel and remove a scheduled or pending post. Cannot delete already published posts. Same as update_post with status "cancelled".
delete_post
Cancel and remove a scheduled or pending post. Cannot delete already published posts. Same as update_post with status "cancelled".
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
postId | string | yes | The post ID to cancel. |
workspaceId | string | no | Workspace ID. Required if your API key accesses multiple workspaces. |
When to use
Soft-delete a post from Postato. Works on any non-terminal state (draft, scheduled, queued, pending_approval). Published posts cannot be deleted via Postato — they live on the social network and must be removed there directly.
Soft-delete means:
- The post disappears from
list_postsand the dashboard. - If it was scheduled, the pending job is cancelled.
- If it was awaiting approval, reviewers can no longer act on it.
- The underlying record is retained for audit and compliance — it is never hard-deleted.
Example
{
"workspaceId": "wks_01H...",
"postId": "pst_01H..."
}Response: { "success": true } (or 404 if the post doesn't exist in this workspace).
Gotchas
- This is NOT how you delete a published post from X / Instagram / LinkedIn. Use the platform's native tooling or API for that.
- Once deleted, the post cannot be restored via the API. Contact support if a mistaken deletion needs recovering.
- Deleting a scheduled post with an assigned
idempotencyKeydoes NOT free that key — subsequentpublish_postcalls with the same key will still hit the idempotency record. Use a fresh key to republish.
Update Post
Change a post's status. Two actions: - "publish": publishes a draft post (enqueues it for delivery). Only works on posts with status "draft". - "cancelled": can
List Posts
Returns all posts for the authenticated tenant. Filter by status, platform, or postType. Results are ordered by creation date (newest first).