Postifuse Docs

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

HTTPerrorMeaning
400invalid_requestA field is missing or malformed
401unauthorizedMissing or wrong key
403insufficient_scopeA read key tried to write
403profile_out_of_scopeThe key is limited to other profiles
403workspace_not_activeThe workspace for this key is not active yet
409idempotency_conflictSame key, different body
409profile_not_emptyA profile still holds accounts
422preflight_blockedNo target can be published, even after automatic fixes
422profile_mismatchThe accounts of one post belong to different profiles
423account_pausedThe account is paused
429quota_exceededThe network's daily cap for this account is reached

Every rule is listed with its source in GET /v1/rules.