Messages

Send Message

Send any type of message through a single endpoint. The message type is inferred from the optional fields provided.

Home/Docs/Send Message

Endpoint

Send any type of message through a single endpoint. The message type is inferred from the optional fields provided.

Request
POST /send

Authentication

Every request must include a Bearer token in the Authorization header. Missing or invalid API keys return 401 Unauthorized.

Header
Authorization: Bearer YOUR_API_KEY

Request Body

FieldTypeRequiredDescription
sessionstringYesSession ID
tostringYesRecipient phone number
textstringNoText content or caption
imageUrlstringNoURL of image to send
videoUrlstringNoURL of video to send
documentUrlstringNoURL of document to send
audioUrlstringNoURL of audio to send
mimetypestringNoMIME type of the media
filenamestringNoFilename for the attachment
previewRecord<string,string>NoCustom link preview key-value pairs

Response

FieldTypeDescription
idstringUnique message identifier
tostringRecipient phone number or group JID
contentstringMessage content, media reference, or caption
typestringMessage type: text, image, video, document, or ptt
timestampstringISO 8601 timestamp of when the message was sent
statusstringDelivery status such as sent, delivered, or read
fromMebooleanTrue when sent by the current session
senderstringSender phone number
recipientstringRecipient identifier

Examples

cURL
curl -X POST "https://api.example.com/send" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "session": "SESSION_ID",
    "to": "+1234567890",
    "text": "Hello from ChatSend"
  }'
Response
{
  "id": "msg_123",
  "to": "+1234567890",
  "content": "Hello from ChatSend",
  "type": "text",
  "timestamp": "2026-04-15T10:00:00.000Z",
  "status": "sent",
  "fromMe": true,
  "sender": "+1234567890",
  "recipient": "+1234567890"
}

Notes

  • If only text is provided, the server sends a text message.
  • Maximum media file size is 16 MB.
  • Maximum text length is 4096 characters.