Skip to main content
POST
/
conversations
/
{id}
/
messages
Send a message in a conversation
curl --request POST \
  --url https://app.leonar.app/api/v1/conversations/{id}/messages \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "content": "<string>"
}
'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "content": "<string>",
    "direction": "inbound",
    "channel": "<string>",
    "sent_at": "2023-11-07T05:31:56Z",
    "read_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

API key starting with leo_

Path Parameters

id
string<uuid>
required

Body

application/json
content
string
required

Response

Message sent

data
object