Send text
Sends a plain text message. Supports mentions and replies to earlier messages.
Endpoint
POST /chat/send/text
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
to | string | Yes | Recipient JID |
text | string | Yes | Message 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":"5511999990000@s.whatsapp.net","text":"Hello"}'await acme.sessions.get("my-session").sendText(to, "Hello");Tip
Use one API key per environment.
Errors
Check the status
The session must be connected.
Try again
Wait a few seconds.