Skip to main content
POST
/
api
/
v1
/
chat
/
{thread_id}
/
messages
Create Chat Thread Message
curl --request POST \
  --url http://localhost:8000/api/v1/chat/{thread_id}/messages \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "role": "<string>",
  "content": "<string>"
}
'
[
  {
    "role": "<string>",
    "content": "<string>",
    "date_added": "2023-11-07T05:31:56Z",
    "date_updated": "2023-11-07T05:31:56Z",
    "frontend_actions": []
  }
]

Authorizations

Authorization
string
header
required

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

Path Parameters

thread_id
string
required

Body

application/json

The schema for creating an assistant's chat message.

role
string
required
content
string
required

Response

Successful Response

role
string
required
content
string
required
date_added
string<date-time>
required
date_updated
string<date-time>
required
frontend_actions
enum<string>[]

The Front-end actions.

Available options:
enable_submit_button,
disable_submit_button