Delete Post
DELETE
/api/v1/dashboard/content/posts/{post_id}Overview
Permanently deletes a blog post. This action cannot be undone. The post is removed regardless of its current status (draft, published, archived).
Authentication
info
Bearer authentication required - Pass your credentials as Authorization: Bearer <client_id>:<api_key>:<api_secret>.
Headers
| Header | Type | Required | Description |
|---|---|---|---|
Authorization | string | Yes | Bearer <client_id>:<api_key>:<api_secret> |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
post_id | string (UUID) | Yes | The unique identifier of the post to delete |
Response
successbooleanAlways true on successful deletion
Example Request
- cURL
- Python
- JavaScript
curl -X DELETE "https://spideriq.ai/api/v1/dashboard/content/posts/a1b2c3d4-e5f6-7890-abcd-ef1234567890" \
-H "Authorization: Bearer $CLIENT_TOKEN"
import requests
post_id = "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
resp = requests.delete(
f"https://spideriq.ai/api/v1/dashboard/content/posts/{post_id}",
headers={"Authorization": f"Bearer {CLIENT_TOKEN}"},
)
result = resp.json()
print(f"Deleted: {result['success']}")
const postId = "a1b2c3d4-e5f6-7890-abcd-ef1234567890";
const resp = await fetch(
`https://spideriq.ai/api/v1/dashboard/content/posts/${postId}`,
{
method: "DELETE",
headers: { "Authorization": `Bearer ${CLIENT_TOKEN}` },
}
);
const result = await resp.json();
console.log(`Deleted: ${result.success}`);
Example Response
{
"success": true
}
Status Codes
| Status Code | Meaning | Description |
|---|---|---|
| 200 | OK | Post deleted successfully |
| 401 | Unauthorized | Invalid or missing Bearer token |
| 404 | Not Found | Post not found or belongs to another client |