ChatofyDevelopersv1.0
API KeysWebhooks
Chatofy API
/
Getting Started
API Resources
API v1.0 Live
99.99%
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

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

Was this endpoint guide helpful?

Previous Endpoint
Update Contact
Next Endpoint
Send Interactive Message
© 2026 Chatofy Cloud Platform. All rights reserved.
Enterprise SLA•99.99% Guaranteed
curl -X POST "https://app.chatofy.in/api/v1/contact/+917838343515/send-message" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text":{"body":"Hello! How can we help?"}}'
200 OKapplication/json
{
  "success": true,
  "data": {
    "message_id": "wamid.HBgLMTIzNDU2...",
    "raw": {
      "messaging_product": "whatsapp",
      "contacts": [
        {
          "input": "+917838343515",
          "wa_id": "917838343515"
        }
      ],
      "messages": [
        {
          "id": "wamid.HBgLMTIzNDU2..."
        }
      ]
    }
  },
  "message": "Message sent successfully"
}