Get started
Errors
Every error has the same shape, written so an agent can fix the call without a human.
{
"error": "preflight_blocked",
"message": "X counts this text as 312 of 280.",
"rule": "x.text.max_weighted_length",
"fix": "Shorten by 32 or set overrides.x.thread = true",
"docs": "https://postifuse.com/docs/api/preflight/"
}
Codes
| HTTP | error | Meaning |
|---|---|---|
| 400 | invalid_request | A field is missing or malformed |
| 401 | unauthorized | Missing or wrong key |
| 403 | insufficient_scope | A read key tried to write |
| 403 | profile_out_of_scope | The key is limited to other profiles |
| 403 | workspace_not_active | The workspace for this key is not active yet |
| 409 | idempotency_conflict | Same key, different body |
| 409 | profile_not_empty | A profile still holds accounts |
| 422 | preflight_blocked | No target can be published, even after automatic fixes |
| 422 | profile_mismatch | The accounts of one post belong to different profiles |
| 423 | account_paused | The account is paused |
| 429 | quota_exceeded | The network's daily cap for this account is reached |
Every rule is listed with its source in GET /v1/rules.