WatificationDocs

Examples

Pick a message to send or a webhook to receive and copy a ready example.

Pick a message to see a ready request with curl, JavaScript, and Python, and the 202 answer it returns. Pick a webhook event to see its payload and the signature header that comes with it.

Send a message

curl --fail-with-body --request POST \  'https://api.watification.com/api/v1/messages' \  --header "Authorization: Bearer $WATIFICATION_API_KEY" \  --header 'Content-Type: application/json' \  --header 'Idempotency-Key: request-example-1042' \  --data '{  "phone": "+15555550123",  "channelConnectionId": "22222222-2222-4222-8222-222222222222",  "message": {    "type": "text",    "text": "Your order has shipped."  }}'

Response

{  "messageId": "eeeeeeee-eeee-4eee-8eee-eeeeeeeeeeee",  "conversationId": "bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb",  "contactId": "dddddddd-dddd-4ddd-8ddd-dddddddddddd",  "status": "queued"}

Receive a webhook

An OTP message or a message sent with the send route (POST /messages) first reaches sent, delivered, read, or played.

Payload

{  "id": "44444444-4444-4444-8444-444444444444",  "type": "message.sent",  "createdAt": "2026-10-09T10:00:00.000Z",  "data": {    "messageId": "22222222-2222-4222-8222-222222222222",    "reference": "login-example-002",    "to": "+15555550123",    "senderId": "11111111-1111-4111-8111-111111111111",    "status": "sent",    "occurredAt": "2026-10-09T10:05:00.000Z",    "failure": null  }}

Signature header

t=1791540000,v1=0000000000000000000000000000000000000000000000000000000000000000

The zero digest illustrates syntax only. Verify the signature before you trust the event.

Button taps

When a customer taps a reply button, Watification sends message.received. The tap is at data.message.interactiveReply, an object with id and title. The id is the value you set in the button, so use it to route the tap. The tap links to your original send through data.message.replyToMessageId, which matches the messageId from the 202 answer. The same event can arrive more than once, so save the event id and skip repeats. The tap also shows in the Inbox on that conversation.

Try it with the quick reply template and the message.received event.

On this page