Skip to content

Delete Blog Post

DELETE
/api/v1/posts/{id}

Authorizations

SessionAuth

Session ID for authenticated requests

Type
API Key (header: X-Session-ID)

Parameters

Path Parameters

id*
Type
string
Required

Responses

Post deleted

Playground

Server
Authorization
Variables
Key
Value

Samples

Powered by VitePress OpenAPI

Delete a blog post.

Auth: session + owner/admin.

Parameters

NameInTypeRequiredDescription
idpathstringYesPost id

Request Body

None.

Response 200

json
{
	"data": { "id": "post_2", "deleted": true },
	"user_context": { "authenticated": true },
	"meta": {}
}

Response Errors

  • 401 missing session
  • 403 not owner/admin
  • 404 post not found

Notes

  • Use this for permanent removal or admin cleanup.
  • If soft delete is enabled, the underlying system may preserve the record.