Posts
Publish now
POST
https://postifuse.com/v1/posts/{id}/publishPublishes a draft now, or brings a scheduled post forward. It is also the retry: accounts already delivered are skipped, so a retry never posts twice.
When a network does not confirm in time, the account is unconfirmed: Postifuse looks for the post on that account before any retry, and if it cannot tell, it stops and says so rather than risk a duplicate. Refused while an approval is pending.
curl --request POST \ --url 'https://postifuse.com/v1/posts/id_1/publish' \ --header 'Authorization: Bearer pf_live_…' \ --header 'Idempotency-Key: publish-post-1'
const res = await fetch("https://postifuse.com/v1/posts/id_1/publish", {
method: "POST",
headers: {
"Authorization": "Bearer pf_live_…",
"Idempotency-Key": "publish-post-1"
},
});
const data = await res.json();
import requests
res = requests.post(
"https://postifuse.com/v1/posts/id_1/publish",
headers={"Authorization": "Bearer pf_live_…", "Idempotency-Key": "publish-post-1"},
)
print(res.json())
{
"id": "pst_42",
"status": "publishing",
"targets": [
{
"account": "acc_ig",
"status": "delivered",
"url": "https://www.instagram.com/reel/…"
},
{
"account": "acc_tt",
"status": "unconfirmed"
}
]
}
{
"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 target per account
403Workspace not active