Send message to contact
Sends a message to a specific contact using a template. The message can be sent via SMS or WhatsApp depending on the contact's capabilities. Optionally specify a webhook URL to receive delivery status updates. The customer ID is extracted from the authentication token.
application/json- body
Request to send a message to a specific contact using a template
contactId*stringThe unique identifier of the contact to send the message to
uuid1 <= lengthtemplateId*stringThe unique identifier of the template to use for the message
uuid1 <= lengthtemplateVariables?|Optional key-value pairs of template variables to replace in the template body. For example, if your template contains "Hello {{name}}", you would provide { "name": "John Doe" }
No Content
curl -X POST 'https://api.sent.dm/v2/messages/contact' \ -H 'Content-Type: application/json' \ -d '{ "contactId": "6ba7b810-9dad-11d1-80b4-00c04fd430c8", "templateId": "7ba7b820-9dad-11d1-80b4-00c04fd430c8", "templateVariables": { "name": "John Doe", "order_id": "12345" }}'Glossary
Definitions of key terms for the legacy Sent API v2, covering authentication credentials, contacts, channels, message templates, and delivery statuses.
Send message to phone number POST
Sends a message to a phone number using a template. The phone number doesn't need to be a pre-existing contact. The message can be sent via SMS or WhatsApp. Optionally specify a webhook URL to receive delivery status updates. The customer ID is extracted from the authentication token.