Lewati ke konten

Send Bot Message to Conversation

POST
/v1/conversations/{id}/messages
curl --request POST \
--url https://example.com/v1/conversations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "content": "example" }'

Sends a message as an external bot on any conversation channel (webchat, telegram, line, facebook, instagram, etc.). Content is automatically adapted to the target channel’s capabilities.

id
required
string format: uuid

Conversation UUID

Media type application/json
object
content
required

Rich message content (text, image, document, interactive, rich_card, carousel, etc.).

Example generated
{
"content": "example"
}

Message sent

Media type application/json
object
id
required
string format: uuid
seq
integer | null format: int64
status
required
string
Example generated
{
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"seq": 1,
"status": "example"
}

Bad Request - Invalid content or unsupported channel

Unauthorized - Invalid API Key

Not Found - Conversation not found in tenant