Skip to main content
POST
/
v1
/
threads
Create Message Thread
curl --request POST \
  --url https://{api_endpoint}/api/v1/threads \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "assistant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "title": "Untitled",
  "context": {}
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Body

application/json
assistant_id
string<uuid> | null
agent_id
string<uuid> | null
title
string
default:Untitled

title of the thread

context
Context · object

Response

Successful Response