Skip to main content
POST
Create thread message

Authorizations

Authorization
string
header
required

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

Path Parameters

channel_id
string
required
thread_id
string
required

Body

application/json
content
string
required
Maximum string length: 20000
file_ids
string[] | null

Response

201 - application/json

Created message

object
enum<string>
required
Available options:
channel.message
id
string
required
channel_id
string
required
thread_id
string | null
required
role
enum<string>
required
Available options:
user,
agent
agent_id
string
required
content
object[]
required

Text content for a message.

reply_count
integer
required
reactions
object[]
required

Reactions grouped by emoji, ordered by first reaction time.

created_at
string<date-time>
required
credits
object | null
required
citations
object[] | null
required

Array of citations that provide sources for factual statements in the response. Each citation includes the referenced text and its sources.