Skip to content

List chat threads

GET
/api/canvas/{deal_id}/chat/threads
curl --request GET \
--url 'https://example.com/api/canvas/example/chat/threads?limit=15&offset=0' \
--header 'Authorization: Bearer <token>'

List chat threads for a deal (newest first), with pagination.

deal_id
required
Deal Id
string
limit
Limit
integer
default: 15 >= 1 <= 100
offset
Offset
integer
0

Successful Response

Media type application/json
ThreadListResponse

Response body for listing threads.

object
threads
required
Threads
Array<object>
ThreadMetaResponse

Metadata for a single chat thread.

object
thread_id
required
Thread Id
string
title
required
Title
string
status
required
Status
string
message_count
required
Message Count
integer
token_estimate
required
Token Estimate
integer
created_at
required
Created At
string
last_active
required
Last Active
string
summary
Any of:
string
discussed_sections
Discussed Sections
Array<string>
default:
deal_id
required
Deal Id
string
total_count
Total Count
integer
0
Example
{
"threads": [
{
"discussed_sections": []
}
],
"total_count": 0
}

Validation Error

Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}