Messages
Send Template
API POST /api/send
This endpoint allows you to send a message to a specified phone number.
Request Body
phone
(string, required): The phone number to which the message will be sent.message
(string, required): The content of the message to be sent.
Response
- Status: 404
- Content-Type: text/html
The response will be a 404 Not Found error if the requested resource is not available.
Example Response
{
"statusCode": 0,
"data": {
"success": true,
"data": {
"messaging_product": "",
"contacts": [
{
"input": "",
"wa_id": ""
}
],
"messages": [
{
"id": ""
}
],
"chat": {
"id": 0,
"uuid": "",
"organization_id": 0,
"wam_id": "",
"contact_id": 0,
"type": "",
"metadata": "",
"media_id": null,
"status": "",
"deleted_by": null,
"deleted_at": null,
"created_at": "",
"contact": {
"id": 0,
"uuid": "",
"organization_id": 0,
"first_name": null,
"last_name": null,
"phone": "",
"email": null,
"avatar": null,
"address": null,
"contact_group_id": null,
"is_favorite": 0,
"created_by": 0,
"created_at": null,
"updated_at": null,
"deleted_at": null,
"full_name": ""
},
"media": null
}
}
}
}
POST
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json · object
The body is of type object
.
Response
200 - application/json
The response is of type object
.