Skip to main content
DELETE
/
post
cURL
curl --request DELETE \
  --url https://our-secret-api-url.com/post \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <x-api-key>' \
  --data '{
  "id": 123
}'
{
  "id": 123,
  "parentId": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-API-KEY
string
required

API key required for authentication

Body

application/json

ID of the post to delete

id
integer
required

ID of the post to delete

Response

object | null

Post deleted successfully

id
integer

ID of the deleted post

parentId
integer | null

ID of the parent post, if applicable