Skip to main content
POST
/
messages
Send a message
curl --request POST \
  --url https://api.example.com/messages \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "text",
  "to": "<string>",
  "text": "<string>"
}
'
{
  "data": {
    "message": {
      "id": "68505cb92a11ea971d9df894",
      "providerId": "wamid.HBgLMTIzNDU2Nzg5FQIAERgSMzQ1Q0Y5QkE=",
      "contact": "68505cb92a11ea971d9df894",
      "content": "Hello! How can I help?",
      "role": "assistant",
      "status": "unsent",
      "error": "Rate limit exceeded"
    }
  }
}

Authorizations

Authorization
string
header
required

Use Authorization: Bearer <api_key>.

Body

application/json
type
enum<string>
required
Available options:
text
to
string
required

Conversation/contact ID.

Minimum string length: 1
text
string
required

Message text.

Minimum string length: 1

Response

Message sent

data
object
required