Skip to Content
Notification APIDocs

Errors

The error format and every error code an API key can receive.

Errors use the RFC 9457 problem details format (Content-Type: application/problem+json):

{
  "type": "https://tools.ietf.org/html/rfc9110#section-15.5.21",
  "title": "Template variables are missing: firstName.",
  "status": 422,
  "instance": "POST /api/v1/companies/…/projects/…/messages",
  "code": "message.missing_variables",
  "traceId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
FieldMeaning
statusThe HTTP status code.
titleA human-readable message. It may change; do not parse it.
codeA stable error code. Branch on this in your code.
traceIdIdentifies the request in the platform logs. Include it when you contact support.
instanceThe method and path of the request.
errorsOnly for validation errors: messages per field.

Responses produced before your request reaches the API logic (401, 403, 413, unknown routes, unreadable JSON) are problem details without a code. Rely on the HTTP status for those.

Validation errors

400 with code: "validation.failed" lists the invalid fields in errors. Field names use the server's naming: for a send request they start with Message., and list parameters use their PascalCase name (PageSize, Sort).

{
  "title": "One or more validation errors occurred.",
  "status": 400,
  "code": "validation.failed",
  "errors": {
    "Message.Recipients[0].Value": ["'Value' is not a valid email address."],
    "Message.Content": ["'Content' is required when no template is given."]
  },
  "traceId": "0af7651916cd43dd8448eb211c80319c"
}

Status codes

StatusMeaningRetry?
200, 201, 202, 204Success. 202 means the message was accepted for delivery.—
400The request is invalid.No, fix the request.
401Missing, invalid, expired or revoked API key.No, fix the key.
403The key is not allowed to call this route (another project, or a missing permission).No.
404The project, message, template, attachment or channel does not exist.No.
413The request body is too large (attachment uploads: 10 MB; other requests: 30 MB).No.
422The request is valid but a business rule rejects it (see codes below).Only after fixing the cause.
429Rate limit exceeded.Yes, after Retry-After.
500, 502, 503, 504Server or infrastructure error.Yes, with backoff (use an idempotency key for sends).

Error codes

Common

CodeStatusMeaning
validation.failed400One or more fields are invalid; see errors.
project.not_found404The project does not exist or was deleted.
company.not_found404The company does not exist or was deleted.
rate_limit.exceeded429Too many requests; see Rate limits.

Messages

CodeStatusMeaning
message.not_found404No message with this id in the project.
message.channel_not_found404The channel code does not exist.
message.template_not_found404The template does not exist in the project or belongs to another channel.
attachment.not_found404An id in attachmentIds does not exist in the project.
message.company_inactive422The company is passive and cannot send.
message.project_inactive422The project is passive and cannot send.
message.no_active_provider422The project has no active provider in the chain of this channel.
message.push_requires_device_tokens422A push message has a recipient that is not a DeviceToken.
message.otp_not_supported422isOtp is set but no provider of the SMS chain supports OTP.
message.missing_variables422Template placeholders have no value; the title lists them.
message.attachments_not_supported422Attachments on a channel other than email.
message.attachments_too_large422More than 10 attachments or 20 MB in total, template attachments included.
message.not_cancellable422Cancel on a message that is no longer Pending.

Templates

CodeStatusMeaning
message_template.not_found404No template with this id in the project.

Attachments

CodeStatusMeaning
attachment.not_found404No attachment with this id in the project.
attachment.empty422The uploaded file is empty.
attachment.too_large422The file is larger than 10 MB.
attachment.type_not_allowed422The extension is not allowed, or the content does not match it.
attachment.rejected422The file was rejected by the content scan.
attachment.in_use422The attachment is used by a message or template and cannot be deleted.
project_storage_provider.not_found404The storage the file was written to no longer exists.
storage.no_default422The project has no default storage for uploads.
storage.inactive422The project's storage is passive.
storage.credentials_missing422The project's storage is not fully configured.
storage.request_failed422The storage service rejected the request.

The storage.* codes are fixed in the dashboard by a project administrator.

Troubleshooting

On this page