Reference
Models
The data structures used in requests, responses and webhook payloads.
Contact
inputstringrequired- Phone number provided in the request.
wa_idstringrequired- WhatsApp ID of the recipient.
Message
idstringrequired- Unique WhatsApp message identifier.
Meta
api_statusstringrequiredversionstringrequired
ApiError
codeintegerrequiredtitlestringrequireddetailsstringrequired
TemplateParams
Values supplied for the variables defined in the approved WhatsApp template.
Include only the components used by the template.
headerarray of string- Header variables or media URL.
bodyarray of string- Body variables in template order.
buttonsarray of string- Dynamic URL values for CTA buttons.
quick_reply_buttonsarray of string- Payload values for quick reply buttons.
SendTemplateMessageRequest
templateNamestringrequired- Name of the approved WhatsApp template including the language code. Example:
welcome_message (en) paramsTemplateParams- Values supplied for the variables defined in the approved WhatsApp template. Include only the components used by the template.
params.headerarray of string- Header variables or media URL.
params.bodyarray of string- Body variables in template order.
params.buttonsarray of string- Dynamic URL values for CTA buttons.
params.quick_reply_buttonsarray of string- Payload values for quick reply buttons.
phonestringrequired- Recipient phone number in international format.
SendMessageSuccessResponse
codestring (SUCCESS)requireddataobjectrequireddata.contactsarray of Contactrequireddata.contacts[].inputstringrequired- Phone number provided in the request.
data.contacts[].wa_idstringrequired- WhatsApp ID of the recipient.
data.messagesarray of Messagerequireddata.messages[].idstringrequired- Unique WhatsApp message identifier.
data.metaMetarequireddata.meta.api_statusstringrequireddata.meta.versionstringrequired
SendMessageFailureResponse
When code is FAILURE
codestring (FAILURE)requirederrorstringrequired
When code is FAILURE
codestring (FAILURE)requireddatastringrequired
When code is FAILURE
codestring (FAILURE)requireddataobjectrequireddata.errorsarray of ApiErrordata.errors[].codeintegerrequireddata.errors[].titlestringrequireddata.errors[].detailsstringrequireddata.metaMetadata.meta.api_statusstringrequireddata.meta.versionstringrequired
IncomingMessageWebhook
messaging_productstringrequiredmetadataobjectrequiredmetadata.display_phone_numberstringcontactsarray of objectrequiredcontacts[].profileobjectcontacts[].profile.namestringcontacts[].wa_idstringcontacts[].user_idstringmessagesarray of IncomingMessagerequiredmessages[].fromstringmessages[].from_user_idstringmessages[].idstringmessages[].timestampstringmessages[].typestringmessages[].textobjectmessages[].text.bodystring
MessageStatusWebhook
messaging_productstringrequiredmetadataobjectrequiredmetadata.display_phone_numberstringcontactsarray of objectrequiredcontacts[].profileobjectcontacts[].profile.namestringcontacts[].wa_idstringcontacts[].user_idstringstatusesarray of MessageStatusrequiredstatuses[].idstringstatuses[].statusstring (sent | delivered | read | failed)statuses[].timestampstringstatuses[].recipient_idstringstatuses[].recipient_user_idstringstatuses[].conversationobjectstatuses[].conversation.idstringstatuses[].conversation.expiration_timestampstringstatuses[].conversation.originobjectstatuses[].conversation.origin.typestring
IncomingMessage
fromstringfrom_user_idstringidstringtimestampstringtypestringtextobjecttext.bodystring
MessageStatus
idstringstatusstring (sent | delivered | read | failed)timestampstringrecipient_idstringrecipient_user_idstringconversationobjectconversation.idstringconversation.expiration_timestampstringconversation.originobjectconversation.origin.typestring
WebhookBase
messaging_productstringrequiredmetadataobjectrequiredmetadata.display_phone_numberstringcontactsarray of objectrequiredcontacts[].profileobjectcontacts[].profile.namestringcontacts[].wa_idstringcontacts[].user_idstring