Deploy standard outbound WhatsApp text messages to any valid phone number utilizing a simple JSON schema.
POST /v1/messages
| Header | Value | Required |
|---|---|---|
Authorization | Bearer YOUR_API_KEY | Yes |
Content-Type | application/json | Yes |
| Parameter | Type | Required | Description |
|---|---|---|---|
to | string | Yes | Destination mobile number, formatted with active country code (e.g. 918856879188, no spaces or +). |
type | string | Yes | Must be set to text. |
text | object | Yes | Text details block. |
text.body | string | Yes | The actual message content. Can include emoji and formatting parameters (e.g., *bold*, _italics_). |
200 OK)Upon successful message dispatch to Meta's engines, a unique, system-tracked identifier is returned:
{
"success": true,
"message_id": "msg_90a82b7194689c1",
"status": "queued",
"recipient": "918856879188"
}
# Send custom text message
curl -X POST "https://api.aisoule.com/v1/messages" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"to": "918856879188",
"type": "text",
"text": {
"body": "Hello, thank you for choosing AISoule! 🚀"
}
}'