Posts
Unpublish a post
POST
https://postifuse.com/v1/posts/{id}/unpublishTakes the post down from the networks that allow it. Irreversible: an agent should ask first.
curl --request POST \ --url 'https://postifuse.com/v1/posts/id_1/unpublish' \ --header 'Authorization: Bearer pf_live_…' \ --header 'Idempotency-Key: unpublish-post-1'
const res = await fetch("https://postifuse.com/v1/posts/id_1/unpublish", {
method: "POST",
headers: {
"Authorization": "Bearer pf_live_…",
"Idempotency-Key": "unpublish-post-1"
},
});
const data = await res.json();
import requests
res = requests.post(
"https://postifuse.com/v1/posts/id_1/unpublish",
headers={"Authorization": "Bearer pf_live_…", "Idempotency-Key": "unpublish-post-1"},
)
print(res.json())
[
{
"account": "acc_x",
"status": "unpublished"
},
{
"account": "acc_ig",
"status": "not_supported",
"fix": "Remove it in the Instagram app: https://www.instagram.com/reel/…"
}
]
{
"error": "workspace_not_active",
"message": "The workspace for this key is not active yet.",
"docs": "https://postifuse.com/docs/errors/"
}
Headers
AuthorizationstringrequiredBearer followed by a workspace key, a profile key or an OAuth token. See authentication.
Example Bearer pf_live_…
Idempotency-KeystringrequiredAny unique string. The same key within 24 h returns the same result and posts nothing twice.
Path parameters
idstringrequiredThe post id.
Response
200One result per account
403Workspace not active
Networks
| Network | Unpublish through the API |
|---|---|
| X, Threads, Bluesky, LinkedIn, Facebook, YouTube, Pinterest | Yes |
| Instagram, TikTok | No: the receipt gives the link to remove it in the app |