API Documentation

API Reference

Interactive endpoint explorer

v1.0
API Reference
POST/api/messages

Send Message

Send a single WhatsApp message to a contact

Request Body
to*
string

Recipient phone number with country code

type*
string

Message type: text, template, image, document

content*
object

Message content based on type

Code Examples
curl -X POST "https://api.synchat.io/v1/messages" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "to": "+919876543210",
    "type": "text",
    "content": {
      "body": "Hello from SynChat!"
    }
  }'
Response
200 OK
{
  "id": "msg_abc123",
  "status": "sent",
  "timestamp": "2025-01-13T10:30:00Z"
}
Try It Out
Test this endpoint with your API key

Command Palette

Search for a command to run...