The envelope
- Item
- List
- Error
A resource always comes inside
data:Always read the resource from
response.data, never from the root of the body. The envelope may
gain new fields in the future.Sending data
application/json
The default for creating and editing. Use it on every
POST and PUT that does not involve a
file.multipart/form-data
Required when the request carries a file, such as message media, a product image, a CRM note
attachment or a campaign spreadsheet. The text fields go in the same form.
Status codes
Order of checks
Before it reaches the endpoint, every request goes through five checks, in this order. You get the error from the first one that fails, which helps you find the problem faster.Token
The token exists, is valid, has not been revoked or expired, and the origin of the call is in
the IP allowlist. If it fails, the response is
401.Company active
The company that owns the token is active and within its validity period. If it fails, the
response is
403.API enabled on the plan
The contracted plan includes the public API. If it fails, the response is
403 ERR_API_NOT_ENABLED.This check does not apply to on-premise installations.Rate limit
The company is within its limit of requests per minute. If it fails, the response is
429.Token permission
The token has permission for that method on that module. If it fails, the response is
403 ERR_API_FORBIDDEN_SCOPE.Identifiers and scope
Every resource has a numeric id, and each id only applies within the token’s company. If you ask for an id that belongs to another company, you get404, as if the record did not exist.

