POST

Send Text

https://your-domain.com/api/v1/[instanceId]/send/text

Headers

AuthorizationBearer YOUR_API_TOKEN
Content-Typeapplication/json

JSON Payload

chatIdstring | numberRequired

The recipient's phone number, username (with @), or chat ID.

textstringRequired

The message text to send.

replyToMsgIdnumber

The ID of a message to reply to.

Test it now
cURL Example
curl -X POST "https://your-domain.com/api/v1/YOUR_INSTANCE_ID/send/text" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "chatId": "@username",
  "text": "Hello world!"
}'
Node.js / Fetch Example
const response = await fetch("https://your-domain.com/api/v1/YOUR_INSTANCE_ID/send/text", {
  method: "POST",
  headers: {
    "Authorization": "Bearer YOUR_API_TOKEN",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
      "chatId": "@username",
      "text": "Hello world!"
  })
});

const data = await response.json();
console.log(data);