DELETE
/api/public/v1/blog-posts/{postId}Delete a blog post
Removes the post. There is no restore — unpublish instead if you might want it back.
Required scope
The access token must carry this scope. A token missing it gets 403 Forbidden. Grant them to an API client under Settings → Company → API, and to a teammate under Employee → Permissions.
blog:write
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
postId | string | Required | Post ID. |
DELETEExample request
curl
curl -X DELETE "https://www.pxb.app/api/public/v1/blog-posts/{postId}" \
-H "Authorization: Bearer your_access_token"200Example response
json
{
"message": "Blog post deleted successfully!",
"content": {
"postId": "bpt_7001"
}
}In the console
The same thing done by hand, for anyone comparing the API against the screen they already use.
Website → Blog
/website/blog