Skip to main content
POST
Send Bot Chat Message

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

chat_id
string<uuid>
required
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$

Body

application/json
text
string
default:""
Maximum string length: 8000
attachments
object[]
Maximum array length: 10
idempotency_key
string

A key of your choosing that names this request. Repeating the request with the same key, for example after a timeout, sends nothing again: it answers with the same chat, message and cursor as the first. A start without a message sends nothing either way, and its cursor always follows your newest message.

Required string length: 1 - 200

Response

The message was posted.

chat_id
string
required
title
string
required
message_id
integer | null
required

The message just sent. Null when a chat was opened without one.

Required range: -9007199254740991 <= x <= 9007199254740991
cursor
string
required

Pass to GET /bots/chats/{chat_id}/messages.

bots
object[]
required
url
string
required