Skip to content
Ten Digit

Reference

Errors

Error format and what each code means.

Errors use a normal HTTP status code and a JSON body with a machine-readable code and a human-readable message.

Error response · json
{
  "code": "SESSION_EXPIRED",
  "message": "24-hour conversation window is closed. Send a template message instead.",
  "details": null
}

Error codes

400 VALIDATIONA required parameter is missing, such as Contact or Message.
400 SESSION_EXPIREDThe 24-hour window is closed. Send a template instead.
400 WHATSAPP_NOT_CONNECTEDNo active WhatsApp number is connected to this license.
401 API_AUTH_REQUIREDLicenseNumber or APIKey was not sent.
401 API_AUTH_INVALIDThe license number or API key is wrong.
403 ACCOUNT_INACTIVEThe account is suspended, expired, or not active for sending.
404 TEMPLATE_NOT_FOUNDNo template with that name exists in your account.
429 RATE_LIMITEDToo many requests. Wait and try again.
500 INTERNAL_ERRORSomething went wrong on our side. Try again shortly.

Troubleshooting

  • Phone number: use country code and digits only, for example 919876543210
  • Template not found: the name is case-sensitive and the template must be approved
  • Nothing arrives: check the message status in your inbox; WhatsApp can reject a message after we accept it
  • Special characters: URL-encode values (spaces, &, #). The code samples do this for you