Foxli
Log inStart free
API reference / posts

Delete post

DELETE/v1/posts/{id}Permission posts:write

Deletes a post and its associated metrics records.

Headers
AuthorizationstringREQUIRED

Bearer followed by your API key.

Foxli-Workspacestring

Target workspace ID. Required if account owns or admins more than one workspace.

Path parameters
idstringREQUIRED
Query parameters
workspace_idstring

Alternative way to pass workspace ID.

Errors
400validation_failedInvalid parameters or missing workspace context.
401invalid_api_keyMissing, invalid, or revoked API key.
403insufficient_scopeAPI key lacks required scope: posts:write
429rate_limitedToo many requests. Check Retry-After seconds.
curl -X DELETE https://api.foxli.app/v1/posts/pst_89fa12b \
  -H "Authorization: Bearer $FOXLI_API_KEY" \
  -H "Foxli-Workspace: ws_brand_primary"
Response204 OK
{
  "success": true
}

Build on Foxli.

Publish posts, sync social channels, stream analytics, and get instant webhooks.

No card for month one · Cancel anytime