WATI uses conventional HTTP response codes to indicate the success or failure of an API request. In general: Codes in the 2xx range indicate success. Codes in the 4xx range indicate an error that failed given the information provided (e.g., a required parameter was omitted, a charge failed, etc.). Codes in the 5xx range indicate an error with WATI servers (these are rare).

HTTP CodeDescription
200Everything worked as expected.
401No valid API key provided.
403The API key doesn't have permissions to perform the request.
404The requested resource doesn't exist.
405Please see if you are using the correct request method POST vs GET. Many of our APIs are POST requests.
500Something went wrong on WATI's end. (These are rare.)

If you call certain endpoints too frequently, you may run into the rate limit or see the error 429. Below are some rate limits that you may face, depending on your use case.

EndpointRateNote
/addContact 10 / 10secYou don't have to add contacts before sending your first message to the contact, WATI will add the contact to your account automatically if it's a new contact.
/getMessages 10 / 10secWe recommend using the webhook to receive incoming messages instead of retrieving via this endpoint
/sendTemplateMessage 50 / 10secIf you are sending the same template to multiple contact at once, we recommend using /sendTemplateMessages instead. You can add up to 1000 contacts in 1 call.