API reference
Delete a post; unpublished targets of drafts and scheduled posts are refunded.
https://api.betterpost.dev/v1/posts/{id}Drafts and scheduled posts are unscheduled and their unpublished, charged targets refunded. Published, partial and failed posts are removed from BetterPost only; content already on the networks is not deleted. See Delete a post.
| Name | Description |
|---|---|
id | The post id. |
curl -s -X DELETE https://api.betterpost.dev/v1/posts/post_8f3k2m9q1x7v4n6b0c5d2a1z \
-H "x-access-key: $BETTERPOST_API_KEY"200 OK
{ "success": true }| Status | Code | When |
|---|---|---|
200 | The post was deleted. | |
401 | unauthorized | Missing or unknown API key. |
404 | not_found | No such post in this project. |
409 | post_publishing | The post is pending or publishing. Try again when it finishes. |
429 | rate_limited | More than 120 requests per minute. |