Skip to main content

Shape

message is a string for single errors and an array when several fields failed. Handle both.

Why a wrong id gives 404, not 403

An object that exists but belongs to another organisation returns 404, the same as one that does not exist at all. That is deliberate: the API never confirms that someone else’s id is real.

Validation is the one to plan for

Most integration failures are 400 from POST /posts, and nearly always a platform that needs settings the caller did not send. Two ways to avoid discovering that in production:
  1. Create as draft — validation is skipped — then call GET /posts/{id}/missing to be told exactly what is outstanding.
  2. Read channel settings for the platforms you support.