Skip to main content
POST
Send Chat Message

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

id
string
required
Pattern: ^([0-9]{1,19}|[0-9]{1,19}-[0-9]{1,19}|g[0-9]{1,19})$

Body

application/json

At least one of encoded_message_create_event, content is required.

encoded_message_create_event
string
required

Base64-encoded Thrift MessageCreateEvent containing encrypted message contents. Omit when sending content.

message_id
string
required

Unique identifier for this message.

content
object

Plaintext message or reaction, sent unencrypted. Set exactly one of message, reaction_add, or reaction_remove. Omit when sending encoded_message_create_event.

conversation_token
string

Optional conversation token.

encoded_message_event_signature
string

Base64-encoded Thrift MessageEventSignature for message verification.

xdk_version
string

Version of the Chat XDK that produced the payload.

Response

The request has succeeded.

data
object
errors
object[]