Skip to main content

Request and response formats

Set these headers on every request:
  • Content-Type: format of the request body.
  • Accept: format you want in the response.

Common content types

Content-TypeDescription
application/jsonJSON-encoded request/response.
text/plainPlain text.
text/xmlXML document.

Why it matters

Even when only one format is currently supported, the API uses these headers to allow future expansion without breaking clients.

Language selection

Some endpoints accept Accept-Language to localize human-readable strings.