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 '
{
  "name": "<string>",
  "agent_id": 123,
  "chat_setting_id": 123,
  "is_ephemeral": false
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "status": "<string>",
  "ml_model": "<string>",
  "ml_model_name": "<string>",
  "agent_id": 123,
  "agent_name": "<string>",
  "creation_source": "<string>",
  "is_read": true,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "is_ephemeral": true,
  "is_archived": true,
  "legacy": true,
  "object": "thread"
}

Authorizations

Authorization
string
header
required

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

Body

name
string
Maximum string length: 255
agent_id
integer

ID of the agent to use. If not provided, uses the default agent for the company.

chat_setting_id
integer

DEPRECATED: Use 'agent_id' instead. ID of the chat setting to use. If not provided, uses the default agent for the company.

is_ephemeral
boolean
default:false

Response

201 - application/json
id
string<uuid>
required
name
string
required
status
string
required
ml_model
string | null
required
ml_model_name
string | null
required
agent_id
integer
required
agent_name
string | null
required
creation_source
string
required
is_read
boolean
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
is_ephemeral
boolean
required
is_archived
boolean
required
legacy
boolean
required
object
string
default:thread