API reference
Delete a post (or cancel a scheduled one)
Hard-deletes one of your posts. Deleting a scheduled post before it goes live cancels it.
View as MarkdownUpdated Aug 19, 2026
DELETE
/api/external/posts/{id}Hard-deletes one of your posts. Deleting a scheduled post before it goes live cancels it.
Returns {"ok":true} — note this family uses ok where the vault endpoints use success.
Authentication
Send the creator's API key as a bearer token: Authorization: Bearer dpfn_…. See Authentication & API keys.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Required | The post id. |
Responses
200Deleted.
| Name | Type | Description |
|---|---|---|
ok | boolean | Always true. (This endpoint family returns {ok} where the vault family returns {success} — historical, kept for compatibility.) |
Example response
{
"ok": true
}Errors
| Status | Body | When |
|---|---|---|
| 401 | {"error":"Unauthorized","code":"unauthorized"} | Missing or invalid API key. |
| 404 | {"error":"Post not found"} | No such post on your account (another creator’s post also 404s). |
Rate limiting
Every response carries the X-RateLimit-Tier header and, on limited tiers, the per-minute and per-day trios — read X-RateLimit-Remaining and X-RateLimit-Reset instead of hardcoding limits. Details in Rate limits.
Code samples
curl -X DELETE "https://www.dropfans.io/api/external/posts/$POST_ID" \
-H "Authorization: Bearer $DROPFANS_API_KEY"const postId = '…'; // from an earlier response
const res = await fetch(`https://www.dropfans.io/api/external/posts/${postId}`, {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.DROPFANS_API_KEY}`,
},
});
console.log(await res.json());import os
import requests
post_id = "…" # from an earlier response
res = requests.delete(
f"https://www.dropfans.io/api/external/posts/{post_id}",
headers={"Authorization": f"Bearer {os.environ['DROPFANS_API_KEY']}"},
)
print(res.json())Questions? [email protected]
