Skip to content
Acme API Docs
On this page Endpoint
POST

Send text

Sends a plain text message. Supports mentions and replies to earlier messages.

Endpoint

POST /chat/send/text

Parameters

NameTypeRequiredDescription
tostringYesRecipient JID
textstringYesMessage content

Examples

curl -X POST https://api.example.com/chat/send/text \
  -H "x-api-key: YOUR_API_KEY" \
  -H "x-instance: my-session" \
  -d '{"to":"[email protected]","text":"Hello"}'

Errors

  1. Check the status

    The session must be connected.

  2. Try again

    Wait a few seconds.