Send message to phone number
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.
x-sender-id<token>
In: header
Header Parameters
x-sender-idstring
Format
guid
x-api-keystring
phoneNumber?string
templateId?string
Format
guid
templateVariables?object | null
Empty Object
Response Body
curl -X POST "https://api.sent.dm/v1/messages/phone" \ -H "x-sender-id: string" \ -H "x-api-key: string" \ -H "Content-Type: application/json" \ -d '{ "phoneNumber": "+1234567890", "templateId": "7ba7b820-9dad-11d1-80b4-00c04fd430c8", "templateVariables": { "name": "John Doe", "order_id": "12345" } }'
Empty
Empty
Empty