Calls
Send a voice_call interactive message button
Sends a ‘Call on WhatsApp’ button. Only works during an open CSW (24h window). Requires WhatsApp 2.24.1+.
POST
/
v1
/
calls
/
voice-call-button
Send a voice_call interactive message button
curl --request POST \
--url https://api.wazapin.com/v1/calls/voice-call-button \
--header 'Content-Type: application/json' \
--data '
{
"body_text": "<string>",
"channel_id": "<string>",
"to": "<string>",
"conversation_id": "<string>",
"display_text": "<string>",
"payload": "<string>",
"ttl_minutes": 21600
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
body_text: '<string>',
channel_id: '<string>',
to: '<string>',
conversation_id: '<string>',
display_text: '<string>',
payload: '<string>',
ttl_minutes: 21600
})
};
fetch('https://api.wazapin.com/v1/calls/voice-call-button', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/calls/voice-call-button"
payload = {
"body_text": "<string>",
"channel_id": "<string>",
"to": "<string>",
"conversation_id": "<string>",
"display_text": "<string>",
"payload": "<string>",
"ttl_minutes": 21600
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"status": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}Body
application/json
Message body text
Minimum string length:
1Channel ID
Minimum string length:
1Recipient phone number
Minimum string length:
1Inbox conversation ID — when set, message is stored in transcript
Button display text (max 20 chars, default 'Call Now')
Maximum string length:
20Tracking payload (max 512 chars, echoed as cta_payload)
Maximum string length:
512Button TTL in minutes (1-43200, default 10080 = 7 days)
Required range:
1 <= x <= 43200Response
OK
⌘I
Send a voice_call interactive message button
curl --request POST \
--url https://api.wazapin.com/v1/calls/voice-call-button \
--header 'Content-Type: application/json' \
--data '
{
"body_text": "<string>",
"channel_id": "<string>",
"to": "<string>",
"conversation_id": "<string>",
"display_text": "<string>",
"payload": "<string>",
"ttl_minutes": 21600
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
body_text: '<string>',
channel_id: '<string>',
to: '<string>',
conversation_id: '<string>',
display_text: '<string>',
payload: '<string>',
ttl_minutes: 21600
})
};
fetch('https://api.wazapin.com/v1/calls/voice-call-button', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/calls/voice-call-button"
payload = {
"body_text": "<string>",
"channel_id": "<string>",
"to": "<string>",
"conversation_id": "<string>",
"display_text": "<string>",
"payload": "<string>",
"ttl_minutes": 21600
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"status": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}