Skip to main content
POST
/
transactional_messages
/
send_whatsapp
Send a WhatsApp Templated Message
curl --request POST \
  --url https://api.v3.tatango.com/transactional_messages/send_whatsapp \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "phoneNumber": "5551234567",
  "webhookUrl": "https://yourpostbackaddress.com",
  "whatsAppTemplateName": "my_template",
  "smsFailover": {
    "content": "Hello world, this is my SMS fallback."
  }
}
'
{
  "message": "Whatsapp template sent successfully",
  "transactionId": "019687e1-1b54-70f4-a68a-60af7fa776f4"
}

Authorizations

x-api-key
string
header
required

Your Tatango API key. This is required for all requests to the API. You can find your API key in the Tatango App under My Account -> API -> Create API Key.

Body

application/json

The WhatsApp Template message request with SMS fallback.

phoneNumber
string
required

The destination phone number. Can be provided in any format (e.g., +1 555-123-4567, (555) 123-4567, 5551234567) but must be a valid U.S. or Canadian phone number.

webhookUrl
string
required

URL where webhooks will be sent. Must be a valid HTTPS URL.

Maximum string length: 255
whatsAppTemplateName
string
required

Name of your registered WhatsApp template. This must match exactly.

smsFailover
object
required

The SMS fallback message to use if WhatsApp delivery fails.

Response

WhatsApp template message accepted

message
string
required

Success message indicating the request was accepted.

transactionId
string
required

Unique transaction identifier for tracking the message.