Skip to main content
POST
xurl

Authorizations

Authorization
string
header
required

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

Scopes

tweet.read

View all posts you can see, including those from protected accounts.

dm.write

Send and manage your Direct Messages.

users.read

View any account you can see, including protected accounts.

Path Parameters

id
string
required

A conversation's id from Get Chat Conversations, or the recipient's user ID for a 1:1 chat.

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

Default. The end-to-end encrypted message: a base64 Thrift MessageCreateEvent from the Chat XDK.

message_id
string
required

Unique identifier for this message.

content
object

Unencrypted fallback: use only when the recipient's receives_your_chat is unencrypted.

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[]