Skip to main content
POST
/
v1
/
messages
/
send
curl -X POST https://api.livchat.ai/v1/messages/send \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "phone": "5511999999999",
    "body": "Hello from LivChat!",
    "from": "5585912345678"
  }'
{
  "success": true,
  "code": 200,
  "data": {
    "details": "Sent",
    "id": "3EB04A45DCA355D01DB68C",
    "timestamp": "2024-12-10T12:00:00-03:00"
  }
}
Send a text message to any WhatsApp number.

Request Body

phone
string
required
Recipient phone number in international format without + (e.g., 5511999999999)
body
string
required
Message text content. Supports emojis and basic formatting.
id
string
Optional message ID to reply to. Creates a quoted reply.
Enable link preview for URLs in the message. Default: false
from
string
Sender instance identifier for multi-instance organizations. Can be:
  • Phone number: WhatsApp number (e.g., 5585912345678)
  • Instance ID: UUID of the instance
If not specified, uses the most recently connected instance.
Required for organizations with multiple WhatsApp numbers to specify which number sends the message.

Text Formatting

WhatsApp supports basic text formatting:
FormatSyntaxResult
Bold*text*text
Italic_text_text
Strikethrough~text~text
Monospace`text`text
curl -X POST https://api.livchat.ai/v1/messages/send \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "phone": "5511999999999",
    "body": "Hello from LivChat!",
    "from": "5585912345678"
  }'
{
  "success": true,
  "code": 200,
  "data": {
    "details": "Sent",
    "id": "3EB04A45DCA355D01DB68C",
    "timestamp": "2024-12-10T12:00:00-03:00"
  }
}