Error Codes
Errors come back in one shape, with an HTTP status and a machine-readable code:
{
"error": {
"code": "VALIDATION_ERROR",
"message": "channel must be one of: email, whatsapp, drive, upload, api"
}
}
| Status | Code | Meaning |
|---|---|---|
| 400 | VALIDATION_ERROR | A field or query parameter is missing or has the wrong value; the message names it |
| 400 | INVALID_JSON | The body isn't valid JSON |
| 400 | BAD_REQUEST | The body isn't the expected kind (for example, an upload that isn't multipart/form-data) |
| 401 | UNAUTHORIZED | Missing, wrong or expired API credentials |
| 403 | FORBIDDEN | The key lacks the permission for this action |
| 404 | NOT_FOUND | No document with this id in the key's organization |
| 500 | INTERNAL_ERROR | Something failed on our side |