Skip to main content

Webhooks

This method pertains to setting up and configuring webhooks to receive various conversation events. These events include new messages from users and updates on the status of outbound messages.

When a webhook trigger occurs, a POST request containing a JSON payload will be sent to the configured webhook URL.

Make sure that your application responds to webhooks with a 200 response to ensure proper functionality

This table lists all possible options for the type of an event message.

TypeDescription
MESSAGE_CREATEDNew message received by our platform
MESSAGE_DELIVERYDelivery status updates of one message
USER_EVENTUser related events like subscription
TEMPLATE_STATUS_UPDATETemplate status updates
TEMPLATE_CATEGORY_UPDATETemplate category updates

Message Delivery status

The Conversations API platform generates event notifications with the type MESSAGE_DELIVERY to provide status updates on previously sent messages.

Message Delivery status codes are detailed below ('status' parameter).

CodeDescription
DELIVEREDthe message was delivered to the user
READ.the message was read by the user
SENTthe message was sent to the provider
REJECTEDthe message was rejected by our platform
FAILEDthe message failed to be sent
EXPIREDthe message was not delivered in time
UNKNOWNthe message status is unknown

In case of unsuccessful message deliveries, the platform will provide specific error codes ('errorCode' parameter) to indicate the cause of the failure.

CodeDescription
1Unknown
2User Not Subscribed
3Price or Cost config Not Found
4An error with your media. Could be an unsupported file format, etc
5Free Test Quota Exceeded For Messages
6Channel server unreachable
7Monthly minimum fee not found
8Template error
9Quick Reply invalid item count, should be between 2 and 5
10Channel integration configuration not found
11Overloaded
12Your balance is not sufficient for this transaction
13Route configuration not found
14The business is not eligible or the template ID is not allowed for the business
15Not found registered device for the phone number or message undeliverable due user preferences / legal reason
16carrier network retry exceed
17API Request rejected
100User Not Found
300Country not allowed
301SMS request not success
302App Route configuration not found
303Channel is not activated

User events

Our platform will push an event with type USER_EVENT each time an end-user changed their subscription preference.

This table lists all possible options for the type of an event message.

TypeDescription
SUBSCRIBEDThe user has subscribed
UNSUBSCRIBEDThe user has unsubscribed
TAG_ASSIGNUser tag assignment has been updated

Errors

In the event of an unsuccessful webhook request, the system will attempt up to 3 additional retries within a 15-minute timeframe.

The interval between each retry will increase exponentially if the target does not respond with a success code (2XX) or an unresolvable error.

Furthermore, if no response is received within 20 seconds, the system will consider it a failure and initiate a retry.