ChatofyDevelopers
REST APIMCP Server (AI)New
API KeysWebhooks
Chatofy API
/
Getting Started
API Resources
API v1.0 Live
Developer APIMessagesSend Text Message

Send Text Message

Sends a free-form text message. Requires an active 24-hour customer service window. For out-of-window sends, use Template Messages.

POST/api/v1/contact/{phone}/send-message

Recommendation

Alternatively, send via the body-only variant: POST /api/v1/contact/send-message with "to" (phone) or "recipient" (BSUID) in the body.

Request Body Schema

application/json
text.bodystringrequired

Message text content (max 4096 chars)

Example:Hello! How can we help?
preview_urlbooleanoptional

Auto-expand URLs into link previews

Example:false

Response Payload

200 OKapplication/json
successbooleanrequired

Whether request succeeded

data.message_idstringrequired

Platform message ID (wamid)

Example:wamid.HBgLMTIzNDU2...
data.raw.messaging_productstringrequired

Always "whatsapp"

data.raw.contacts[].inputstringrequired

Original recipient input

data.raw.contacts[].wa_idstringrequired

WhatsApp ID of recipient

data.raw.messages[].idstringrequired

Meta message ID

Code Snippets & Examples

1curl -X POST "https://app.chatofy.in/api/v1/contact/+919000000000/send-message" \
2 -H "Authorization: Bearer YOUR_API_KEY" \
3 -H "Content-Type: application/json" \
4 -d '{"text":{"body":"Hello! How can we help?"}}'

Was this endpoint guide helpful?

Previous Endpoint
Log Follow-Up Check-in
Next Endpoint
Send Interactive Message
© 2026 Chatofy Cloud Platform. All rights reserved.
1curl -X POST "https://app.chatofy.in/api/v1/contact/+919000000000/send-message" \
2 -H "Authorization: Bearer YOUR_API_KEY" \
3 -H "Content-Type: application/json" \
4 -d '{"text":{"body":"Hello! How can we help?"}}'
200 OKapplication/json
1{
2 "success": true,
3 "data": {
4 "message_id": "wamid.HBgLMTIzNDU2...",
5 "raw": {
6 "messaging_product": "whatsapp",
7 "contacts": [
8 {
9 "input": "+919000000000",
10 "wa_id": "919000000000"
11 }
12 ],
13 "messages": [
14 {
15 "id": "wamid.HBgLMTIzNDU2..."
16 }
17 ]
18 }
19 },
20 "message": "Message sent successfully"
21}