API reference / posts
Delete post
DELETE
/v1/posts/{id}Permission posts:writeDeletes a post and its associated metrics records.
Headers
AuthorizationstringREQUIREDBearer followed by your API key.
Foxli-WorkspacestringTarget workspace ID. Required if account owns or admins more than one workspace.
Path parameters
idstringREQUIREDQuery parameters
workspace_idstringAlternative way to pass workspace ID.
Errors
400
validation_failedInvalid parameters or missing workspace context.401
invalid_api_keyMissing, invalid, or revoked API key.403
insufficient_scopeAPI key lacks required scope: posts:write429
rate_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
}