API conventions for new endpoints

Overview

These conventions apply to new API endpoints developed from Q3 2026. Previous endpoints remain unchanged. Each section describes one convention and, where relevant, how it differs from previous endpoints.

HTTP status codes

New endpoints return a status code that describes the outcome of the request. Previous endpoints often used 403 Forbidden as a catch-all for errors. The table lists each status code that new endpoints return and the code in previous endpoints it replaces, if any.

Status code Description
200 OK The request succeeded and the response includes a body.
201 Created The request succeeded and created a resource. Returned for POST requests.
204 No Content The request succeeded and returned an empty response body. Returned for PUT, DELETE, and POST requests, such as calls to /activate.
Replaces 200 OK, used in previous endpoints.
400 Bad Request The request payload is malformed or a field value is invalid.
Replaces 403 Forbidden, used in previous endpoints.
401 Unauthorized The credentials are missing or invalid.
403 Forbidden The user is authenticated and the resource exists, but the user lacks permission to access it.
404 Not Found The resource ID doesn’t exist, or the resource must remain hidden from the user.
Replaces 403 Forbidden, used in previous endpoints.
422 Unprocessable Entity The request body is well formed, but semantic validation failed.
429 Too Many Requests The rate limit is reached.
500 Internal Server Error The server encountered an unexpected error.

Update a resource

New endpoints identify the resource in the URL path: PUT /resources/{id}. Previous endpoints sent updates to PUT /resources and passed the resource ID in the request body.
During the transition period, both methods are supported, but the body-based method is obsolete.

Date and time format

New endpoints use ISO 8601 values that include a UTC offset. Use one of these forms:

  • UTC, with a Z suffix: 2026-05-19T13:13:53Z
  • Local time with an offset from UTC: 2026-05-19T15:13:53+02:00

Previous endpoints used the format yyyy-MM-ddTHH:mm:ss in the local time zone of the customer network. Because each value states its own offset, the API no longer needs to know the customer's time zone in new endpoints.

Settable fields

In new endpoints, POST and PUT request payloads include only settable fields. Read-only fields, such as createdAt and updatedAt, do not appear in these payloads. This change clarifies the API contract and doesn’t change API behavior.