Skip to main content
All API responses follow a consistent structure, giving you predictable parsing across every endpoint.

Success

  • message.text — a human-readable summary.
  • message.token — a stable machine-readable key. Branch on this rather than on message.text, which may change wording or be localised.
  • content.data — the resource(s) returned by the endpoint.
  • content.metadata — context such as the date and date-time formats used in data.

Errors

Errors use the same envelope. The token identifies the error, and tokenArguments carries any parameters needed to render a message.
Always key your handling off message.token. It is stable across releases and localisations, whereas message.text is presentation only.

HTTP status codes