Waboxapp API v1 PDF
Waboxapp API v1 PDF
Basic concepts
URL https://www.waboxapp.com/api
Requests GET / POST
Standard HTTP format (application/x-www-form-urlencoded)
Responses JSON format
HTTP 200 code and “success” field when action is successfully done
HTTP 403 code and “error” field on authentication failure
HTTP 400 code and “error” field on parameters validation failure
Send WhatsApp text message (chat)
URL https://www.waboxapp.com/api/send/chat
Method GET / POST
Mandatory parameters
token Your waboxapp API token or Your
enabled APP token
uid Your WhatsApp account phone Ex. 34666123456
number with international code
to Recipient WhatsApp account phone Ex. 34666789123
number with international code
custom_uid Your custom unique ID for the new Will be sent back to you on
message to be send ACK events
text Text to be send Hello dude!
Example
POST
https://www.waboxapp.com/api/send/chat?token=my_token&uid=34666123456&to=346
66789123&custom_uid=msg0001&text=Hello+dude
{
"success": true,
"custom_uid": msg0001
}
Example
POST https://requestb.in/xh9tvh
{
"event": "message",
"token": "abcd1234",
"contact[uid]": "34666123456",
"contact[name]": "Peter",
"contact[type]": "user",
"message[dtm]": 1487082303,
"message[uid]": "62397B58E3E0B",
"message[cuid]": "",
"message[dir]": "i",
"message[type]": "chat",
"message[body][text]": "Hey! How are you doing?",
"message[ack]": 3
}
Event: Message acknowledge (ACK)
URL waboxapp will call your URL
Method POST
Example
POST https://requestb.in/xh9tvh
{
"event": "ack",
"token": "abcd1234",
"uid": "74397B58E3ELZ",
"cuid": "your-cutom-id",
"ack": 3
}
Appendix: Messages types
Type Body structure
chat text – Message text
image caption – Media caption
mimetype – Media mime type
size – Media size in bytes
thumb – Media thumb preview in base64
url – Media URL (30-day retention)
video caption – Media caption
mimetype – Media mime type
size – Media size in bytes
duration – Media duration in seconds
thumb – Media thumb preview in base64
url – Media URL (30-day retention)
audio caption – Media caption
mimetype – Media mime type
size – Media size in bytes
duration – Media duration in seconds
url – Media URL (30-day retention)
document caption – Media caption
mimetype – Media mime type
size – Media size in bytes
thumb – Media thumb preview in base64
url – Media URL (30-day retention)
vcard contact – Contact name
vcard – vCard content
location name – Place name
lng – Longitude coordinate
lat – Latitude coordinate
thumb – Place map preview in base64
url – Place URL