Skip to main content
POST
/
api
/
v3
/
threads
Create a conversation thread
curl --request POST \
  --url https://paradigm.lighton.ai/api/v3/threads \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "chat_setting_id": 123,
  "name": "<string>",
  "ml_model": "<string>",
  "is_ephemeral": false
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "status": "running",
  "ml_model": "<string>",
  "ml_model_name": "<string>",
  "chat_setting": 123,
  "creation_source": "api",
  "is_read": true,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "is_ephemeral": true,
  "is_archived": true,
  "object": "thread"
}

Authorizations

Authorization
string
header
required

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

Body

chat_setting_id
integer
required

ID of the chat setting to use

name
string
Maximum string length: 255
ml_model
string
is_ephemeral
boolean
default:false

Response

201 - application/json
id
string<uuid>
required
name
string
required
status
enum<string>
required
  • running - Running
  • completed - Completed
  • failed - Failed
  • cancelled - Cancelled
  • cancelling - Cancelling
Available options:
running,
completed,
failed,
cancelled,
cancelling
ml_model
string | null
required
ml_model_name
string | null
required
chat_setting
integer | null
required
creation_source
enum<string>
required

Indicates how the thread was created (API or UI).

  • api - API
  • web - WEB
Available options:
api,
web
is_read
boolean
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
is_ephemeral
boolean
required
is_archived
boolean
required
object
string
default:thread