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 returns404, 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 are400 from POST /posts, and nearly always a
platform that needs settings the caller did not send. Two ways to avoid
discovering that in production:
- Create as
draft— validation is skipped — then callGET /posts/{id}/missingto be told exactly what is outstanding. - Read channel settings for the platforms you support.