Skip to main content
POST
/
sessions
/
{session_id}
/
messages
Send a message
curl --request POST \
  --url https://whatsrb.com/api/v1/sessions/{session_id}/messages \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "message": {
    "to": "+33612345678",
    "message_type": "text",
    "content": "<string>"
  }
}
'
{
  "data": {
    "id": "<string>",
    "direction": "outbound",
    "to": "<string>",
    "message_type": "<string>",
    "content": "<string>",
    "status": "queued",
    "whatsapp_message_id": "<string>",
    "sent_at": "2023-11-07T05:31:56Z",
    "delivered_at": "2023-11-07T05:31:56Z",
    "read_at": "2023-11-07T05:31:56Z",
    "created_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

API key from the WhatsRB dashboard. Format: Bearer wrb_live_xxx

Path Parameters

session_id
string
required

Body

application/json
message
object
required

Response

Sent

data
object