API Reference
Components
Documents
- POSTUpload and process a document
- GETGet all documents
- GETGet a signed upload URL for a document
- PUTUpdate document file content
- GETGet all tags
- GETGet a document by ID
- DELDelete a document
- PUTUpdate a document
- GETGet document visual components
- GETGet document text blocks
- GETGet document collaborators
- PUTAdd collaborators to a document
- PUTUpdate document file content
- POSTAdd a tag to a document
- GETGet tags for a document
- DELRemove a tag from a document
- POSTSearch for documents
- GETGet a document search by ID
- POSTAdd a retention policy to a document
- GETGet retention policies for a document
- DELRemove a retention policy from a document
Job Status
Questions & Answers
Threads
Get a thread by ID
Returns a specific thread by ID with its full list of questions if it belongs to the authenticated user.
GET
/
api
/
v0
/
threads
/
{thread_id}
Copy
{
"thread_id": 123,
"name": "string",
"created_at": "string",
"updated_at": "string",
"questions": [
{
"id": 123,
"user_id": 123,
"question_text": "string",
"documents": [
{
"id": 123,
"name": "string",
"folder_id": {},
"file_path": {},
"file_type": "string",
"file_url": {},
"summary": "string",
"visibility": "string",
"version": 123,
"owner_id": 123,
"created_at": "string",
"updated_at": "string"
}
],
"plan": {},
"evidences": [
{
"id": 123,
"question_id": 123,
"evidence": "string",
"reasoning": "string",
"sequence_number": 123,
"document_id": 123,
"page_number": {},
"bboxes": {},
"created_at": "string",
"updated_at": "string"
}
],
"final_answer": {},
"answer_mode": "string",
"llm_provider": "string",
"chunk_type": "string",
"num_chunks": 123,
"num_chunks_processed": 123,
"current_state": "string",
"created_at": "string",
"updated_at": "string"
}
],
"question_positions": [
123
]
}
Get a thread by ID
Returns a specific thread by ID with its full list of questions if it belongs to the authenticated user.
Path Parameters
integer
required
No description provided
Response
The response data for this endpoint.
Copy
{
"thread_id": 123,
"name": "string",
"created_at": "string",
"updated_at": "string",
"questions": [
{
"id": 123,
"user_id": 123,
"question_text": "string",
"documents": [
{
"id": 123,
"name": "string",
"folder_id": {},
"file_path": {},
"file_type": "string",
"file_url": {},
"summary": "string",
"visibility": "string",
"version": 123,
"owner_id": 123,
"created_at": "string",
"updated_at": "string"
}
],
"plan": {},
"evidences": [
{
"id": 123,
"question_id": 123,
"evidence": "string",
"reasoning": "string",
"sequence_number": 123,
"document_id": 123,
"page_number": {},
"bboxes": {},
"created_at": "string",
"updated_at": "string"
}
],
"final_answer": {},
"answer_mode": "string",
"llm_provider": "string",
"chunk_type": "string",
"num_chunks": 123,
"num_chunks_processed": 123,
"current_state": "string",
"created_at": "string",
"updated_at": "string"
}
],
"question_positions": [
123
]
}
Copy
{
"thread_id": 123,
"name": "string",
"created_at": "string",
"updated_at": "string",
"questions": [
{
"id": 123,
"user_id": 123,
"question_text": "string",
"documents": [
{
"id": 123,
"name": "string",
"folder_id": {},
"file_path": {},
"file_type": "string",
"file_url": {},
"summary": "string",
"visibility": "string",
"version": 123,
"owner_id": 123,
"created_at": "string",
"updated_at": "string"
}
],
"plan": {},
"evidences": [
{
"id": 123,
"question_id": 123,
"evidence": "string",
"reasoning": "string",
"sequence_number": 123,
"document_id": 123,
"page_number": {},
"bboxes": {},
"created_at": "string",
"updated_at": "string"
}
],
"final_answer": {},
"answer_mode": "string",
"llm_provider": "string",
"chunk_type": "string",
"num_chunks": 123,
"num_chunks_processed": 123,
"current_state": "string",
"created_at": "string",
"updated_at": "string"
}
],
"question_positions": [
123
]
}
Assistant
Responses are generated using AI and may contain mistakes.