curl --request POST \
--url https://api.wotnot.io/v1/conversations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"channel": "WHATSAPP",
"from": "1123123123",
"to": {
"phone": "11231231230",
"name": "John Doe",
"email": "example@domain.com"
},
"message": {
"type": "template",
"data": {
"template": "test_template",
"parameters": {
"header": [
"John"
],
"body": [
"Doe",
"Doe2"
],
"buttons": {
"copy_code": "123456",
"otp": "123456",
"url": "any"
}
},
"variables": {
"name": "John Doe"
}
}
},
"assignee": "agent_email@domain.com"
}
'
{
"ok": true,
"conversation": {
"id": "12wfegrgt4t",
"message_id": "sdvgret4353b",
"created_at": "",
"assignee": {
"id": 123,
"to": "agent_email@domain.com"
}
},
"contact": {
"id": "11111111",
"name": "John Doe",
"phone": "1234567890",
"email": "example@domain.com"
}
}
Conversation
Create conversation
Starts a new conversation with a contact and sends the first message. What you send in the body depends on the channel: WhatsApp or SMS.
POST
/
v1
/
conversations
curl --request POST \
--url https://api.wotnot.io/v1/conversations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"channel": "WHATSAPP",
"from": "1123123123",
"to": {
"phone": "11231231230",
"name": "John Doe",
"email": "example@domain.com"
},
"message": {
"type": "template",
"data": {
"template": "test_template",
"parameters": {
"header": [
"John"
],
"body": [
"Doe",
"Doe2"
],
"buttons": {
"copy_code": "123456",
"otp": "123456",
"url": "any"
}
},
"variables": {
"name": "John Doe"
}
}
},
"assignee": "agent_email@domain.com"
}
'
{
"ok": true,
"conversation": {
"id": "12wfegrgt4t",
"message_id": "sdvgret4353b",
"created_at": "",
"assignee": {
"id": 123,
"to": "agent_email@domain.com"
}
},
"contact": {
"id": "11111111",
"name": "John Doe",
"phone": "1234567890",
"email": "example@domain.com"
}
}
Authorizations
Body
application/json
The message to send. Its shape depends on the channel, so pick WhatsApp or SMS.
- WhatsApp
- SMS
Start a conversation on WhatsApp by sending a template message.
Response
Returns ok set to true, the new conversation, and the contact it's with.
Last modified on October 23, 2026
Was this page helpful?