Skip to content

Conventions

Successful requests return 200 OK or 204 No Content.

Responses that include data always have a data property. Single-resource endpoints return the object directly:

{
  "data": {
    "id": 123,
    "name": "My campaign"
  }
}

Collection endpoints return an array in data, and may include a meta property with pagination information.

  • Collection endpoints return an empty data array when no items match — not a 404.
  • Single-resource endpoints return 404 Not Found when the requested ID does not exist.

Error responses return an appropriate HTTP status code (401, 404, 422, etc.) with an error property in the response body explaining the issue.

The API accepts and returns application/json for most requests. Binary uploads use application/octet-stream or text/plain — see the file upload guide for details.