Download OpenAPI specification:
Retrieve all available language models usable by the client.
{- "message": "string",
- "status_code": 0,
- "timestamp": "string",
- "data": [
- {
- "llm_id": 0,
- "llm_type_id": 0,
- "name": "string",
- "deployment_name": "string",
- "slug": "string",
- "is_active": true,
- "is_frontend_visible": true,
- "cost_per_1k_input_token_usd": 0,
- "cost_per_1k_output_token_usd": 0,
- "max_input_tokens": 0,
- "max_output_tokens": 0,
- "is_thinking_model": true
}
]
}Execute an agent conversation thread.
This endpoint creates or continues a conversation thread with an AI agent. The agent will process the utterance and use available tools to provide a comprehensive response. If no thread_id is provided, a new thread is created.
thread_mode: 'agent' (default), 'workflow', or 'write' - selects the default internal agent agent_id: optional UUID to override with a specific interface agent
| utterance required | string (Utterance) The user's message or question to send to the agent |
| thread_mode | string (ThreadMode) Default: "agent" Enum: "agent" "workflow" "write" Thread mode: 'agent' (default), 'workflow', or 'write' |
| agent_id | string <uuid> (Agent Id) Agent ID to use (defaults to mode-appropriate internal agent) |
| model | string (Model) Model slug to use (defaults to 'auto-fast') |
| thread_id | string <uuid> (Thread Id) Existing thread ID to continue conversation, or null for new thread |
| system_instructions | string (System Instructions) Additional system instructions for the agent |
| allowed_tools | Array of strings (Allowed Tools) List of tool names the agent is allowed to use |
object (Tool Parameters) Parameters for specific tools (tool_name -> parameters). | |
| pre_run_tool | string (Pre Run Tool) Tool to execute before the agent processes the utterance |
| required_tool | string (Required Tool) Tool that must be executed during this run |
| upload_ids | Array of strings <uuid> (Upload Ids) [ items <uuid > ] IDs of uploaded files to include in context |
| folder_ids | Array of strings <uuid> (Folder Ids) [ items <uuid > ] IDs of folders to search for context |
{- "utterance": "string",
- "thread_mode": "agent",
- "agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978",
- "model": "string",
- "thread_id": "1de43264-67cb-48af-89f9-e865c375bb84",
- "system_instructions": "string",
- "allowed_tools": [
- "string"
], - "tool_parameters": {
- "file_search": {
- "num_results": 5,
- "query": "example query",
- "tags_contains_any": [
- "design"
]
}, - "internet_search": {
- "num_results": 3,
- "queries": [
- "example query"
]
}
}, - "pre_run_tool": "string",
- "required_tool": "string",
- "upload_ids": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "folder_ids": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}{- "message": "string",
- "status_code": 0,
- "timestamp": "string",
- "data": {
- "thread_run": {
- "run_id": "dded282c-8ebd-44cf-8ba5-9a234973d1ec",
- "thread_id": "1de43264-67cb-48af-89f9-e865c375bb84",
- "utterance_id": "0c682eb6-7e43-4c9b-9b55-314e09e4e36b",
- "utterance_content": "string",
- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
- "tool_call_id": "6786703c-7c59-49a0-b3ee-bc30b7ddc419",
- "thread_run_status_type_id": 0,
- "thread_mode": "agent",
- "created_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "error_message": "string",
- "agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978",
- "turn_index": 0,
- "llm_id": 0,
- "tool_ids": [
- 0
], - "folder_ids": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "upload_ids": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "pre_run_tool_id": 0,
- "required_tool_id": 0,
- "tool_parameters": {
- "property1": { },
- "property2": { }
}
}, - "utterance": {
- "utterance_id": "0c682eb6-7e43-4c9b-9b55-314e09e4e36b",
- "thread_id": "1de43264-67cb-48af-89f9-e865c375bb84",
- "content": "string",
- "prompt_id": "24783230-27c2-455c-9de9-95bbdbb78c3d",
- "created_at": "2019-08-24T14:15:22Z"
}, - "thread": {
- "thread_id": "1de43264-67cb-48af-89f9-e865c375bb84",
- "title": "string",
- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
- "created_at": "2019-08-24T14:15:22Z",
- "last_modified_at": "2019-08-24T14:15:22Z",
- "utterances": [
- {
- "utterance_id": "0c682eb6-7e43-4c9b-9b55-314e09e4e36b",
- "thread_id": "1de43264-67cb-48af-89f9-e865c375bb84",
- "content": "string",
- "prompt_id": "24783230-27c2-455c-9de9-95bbdbb78c3d",
- "created_at": "2019-08-24T14:15:22Z"
}
], - "agent_actions": [
- {
- "orchestrator_action_id": "b7227590-acba-4f70-b25a-ce4264bb5e26",
- "utterance_id": "0c682eb6-7e43-4c9b-9b55-314e09e4e36b",
- "orchestrator_action_type_id": 0,
- "llm_id": 0,
- "content": "string",
- "response_seconds": 0,
- "input_token_cost_usd": 0,
- "output_token_cost_usd": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978",
- "handoff_agent_id": "8787af99-f3a7-41fb-8d2b-86f824d50296",
- "turn_index": 0,
- "metadata": { },
- "workflow_step_run_id": "8731ce24-7f50-4903-9b9d-bd5598803a93"
}
], - "tool_data": {
- "property1": {
- "tool_call": {
- "tool_call_id": "6786703c-7c59-49a0-b3ee-bc30b7ddc419",
- "llm_tool_call_id": "string",
- "tool_id": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "arguments": "string",
- "is_approved": true,
- "metadata": { },
- "orchestrator_action_id": "b7227590-acba-4f70-b25a-ce4264bb5e26",
- "extraction_template_id": "498bf0f5-cc76-4083-8f98-58f922bfb700",
- "workflow_step_run_id": "8731ce24-7f50-4903-9b9d-bd5598803a93"
}, - "tool_result": {
- "tool_call_id": "6786703c-7c59-49a0-b3ee-bc30b7ddc419",
- "content": "string",
- "metadata": { },
- "total_cost_usd": 0,
- "num_llm_calls": 0,
- "runtime_seconds": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "parameters": [
- {
- "tool_parameter_id": 0,
- "parameter_value": null,
- "name": "string"
}
], - "blobs": [
- "string"
], - "tool_result_status_type_id": 0
}
}, - "property2": {
- "tool_call": {
- "tool_call_id": "6786703c-7c59-49a0-b3ee-bc30b7ddc419",
- "llm_tool_call_id": "string",
- "tool_id": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "arguments": "string",
- "is_approved": true,
- "metadata": { },
- "orchestrator_action_id": "b7227590-acba-4f70-b25a-ce4264bb5e26",
- "extraction_template_id": "498bf0f5-cc76-4083-8f98-58f922bfb700",
- "workflow_step_run_id": "8731ce24-7f50-4903-9b9d-bd5598803a93"
}, - "tool_result": {
- "tool_call_id": "6786703c-7c59-49a0-b3ee-bc30b7ddc419",
- "content": "string",
- "metadata": { },
- "total_cost_usd": 0,
- "num_llm_calls": 0,
- "runtime_seconds": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "parameters": [
- {
- "tool_parameter_id": 0,
- "parameter_value": null,
- "name": "string"
}
], - "blobs": [
- "string"
], - "tool_result_status_type_id": 0
}
}
}, - "workflow_runs": [
- {
- "workflow_run_id": "5e5ef678-2347-491b-a579-798b0d4ed952",
- "workflow_id": "03e70e31-d7a4-4401-a629-6a4b6096cdfe",
- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
- "thread_id": "1de43264-67cb-48af-89f9-e865c375bb84",
- "trigger_utterance_id": "fc76dfdb-3301-4107-87b2-e96e20086ffe",
- "inputs": { },
- "status": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "error_message": "string"
}
], - "workflow_step_runs": [
- {
- "step_run_id": "831438af-f0d7-4738-a0cc-a447f1b683c9",
- "workflow_run_id": "5e5ef678-2347-491b-a579-798b0d4ed952",
- "workflow_step_id": "ffdcef60-36ca-4907-b257-cd7776d5eef8",
- "step_type": "string",
- "status": 0,
- "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "parent_loop_step_run_id": "050fe789-f03a-4ef7-bbe2-3321373707fe",
- "iteration_index": 0,
- "text_output": "string",
- "metadata": { },
- "error_message": "string"
}
], - "timeline": [
- {
- "kind": "utterance",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
], - "last_thread_run": {
- "run_id": "dded282c-8ebd-44cf-8ba5-9a234973d1ec",
- "thread_id": "1de43264-67cb-48af-89f9-e865c375bb84",
- "utterance_id": "0c682eb6-7e43-4c9b-9b55-314e09e4e36b",
- "utterance_content": "string",
- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
- "tool_call_id": "6786703c-7c59-49a0-b3ee-bc30b7ddc419",
- "thread_run_status_type_id": 0,
- "thread_mode": "agent",
- "created_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "error_message": "string",
- "agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978",
- "turn_index": 0,
- "llm_id": 0,
- "tool_ids": [
- 0
], - "folder_ids": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "upload_ids": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "pre_run_tool_id": 0,
- "required_tool_id": 0,
- "tool_parameters": {
- "property1": { },
- "property2": { }
}
}
}
}
}| run_id required | string (Run Id) |
| decision required | string (Decision) Enum: "approve" "approve_with_edits" "reject" |
| upload_ids | Array of strings <uuid> (Upload Ids) [ items <uuid > ] |
| folder_ids | Array of strings <uuid> (Folder Ids) [ items <uuid > ] |
object (Tool Parameters) |
{- "decision": "approve",
- "upload_ids": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "folder_ids": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "tool_parameters": {
- "property1": { },
- "property2": { }
}
}{- "message": "string",
- "status_code": 0,
- "timestamp": "string",
- "data": {
- "tool_call": {
- "tool_call_id": "6786703c-7c59-49a0-b3ee-bc30b7ddc419",
- "llm_tool_call_id": "string",
- "tool_id": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "arguments": "string",
- "is_approved": true,
- "metadata": { },
- "orchestrator_action_id": "b7227590-acba-4f70-b25a-ce4264bb5e26",
- "extraction_template_id": "498bf0f5-cc76-4083-8f98-58f922bfb700",
- "workflow_step_run_id": "8731ce24-7f50-4903-9b9d-bd5598803a93"
}, - "tool_result": {
- "tool_call_id": "6786703c-7c59-49a0-b3ee-bc30b7ddc419",
- "content": "string",
- "metadata": { },
- "total_cost_usd": 0,
- "num_llm_calls": 0,
- "runtime_seconds": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "parameters": [
- {
- "tool_parameter_id": 0,
- "parameter_value": null,
- "name": "string"
}
], - "blobs": [
- "string"
], - "tool_result_status_type_id": 0
}, - "agent_action": {
- "orchestrator_action_id": "b7227590-acba-4f70-b25a-ce4264bb5e26",
- "utterance_id": "0c682eb6-7e43-4c9b-9b55-314e09e4e36b",
- "orchestrator_action_type_id": 0,
- "llm_id": 0,
- "content": "string",
- "response_seconds": 0,
- "input_token_cost_usd": 0,
- "output_token_cost_usd": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978",
- "handoff_agent_id": "8787af99-f3a7-41fb-8d2b-86f824d50296",
- "turn_index": 0,
- "metadata": { },
- "workflow_step_run_id": "8731ce24-7f50-4903-9b9d-bd5598803a93"
}
}
}Initiate a multipart file upload session.
This endpoint creates an upload session for files to be uploaded in multiple parts. Returns the upload_id, part_size, and number of parts needed for the upload.
| folder_id required | string <uuid> (Folder Id) The ID of the folder where the file will be uploaded |
| file_name required | string (File Name) The name of the file being uploaded including the extension |
| size required | integer (Size) The total size of the file in bytes (max 512MB) |
object (Metadata) Optional metadata dictionary associated with the file | |
| tags | Array of strings (Tags) Optional list of tags for categorizing the file |
| client_batch_id | string (Client Batch Id) Optional batch identifier for grouping multiple uploads |
| external_id | string (External Id) Client-provided external identifier (<=64 chars) |
{- "folder_id": "7695bac3-9397-4ec2-9335-45a2a16f1901",
- "file_name": "string",
- "size": 0,
- "metadata": { },
- "tags": [
- "string"
], - "client_batch_id": "string",
- "external_id": "string"
}{- "message": "string",
- "status_code": 0,
- "timestamp": "string",
- "data": {
- "upload_id": "f2ef591b-135b-46fa-a604-3d4fda5bfbfb",
- "part_size": 0,
- "num_parts": 0,
- "file_type_id": 0
}
}| upload_id required | string <uuid> (Upload Id) |
| file_name required | string (File Name) The updated name of the file including the extension |
| size required | integer (Size) The total size of the file in bytes (max 512MB) |
object (Metadata) Optional metadata associated with the updated file | |
| tags | Array of strings (Tags) Optional list of tags for the updated file |
| client_batch_id | string (Client Batch Id) Optional batch identifier for grouping uploads |
{- "file_name": "string",
- "size": 0,
- "metadata": { },
- "tags": [
- "string"
], - "client_batch_id": "string"
}{- "message": "string",
- "status_code": 0,
- "timestamp": "string",
- "data": {
- "upload_id": "f2ef591b-135b-46fa-a604-3d4fda5bfbfb",
- "part_size": 0,
- "num_parts": 0,
- "file_type_id": 0
}
}| upload_id required | string (Upload Id) |
| title | string (Title) |
| file_name | string (File Name) |
object (Metadata) | |
| tags | Array of strings (Tags) |
| folder_id | string <uuid> (Folder Id) |
| external_id | string (External Id) |
{- "title": "string",
- "file_name": "string",
- "metadata": { },
- "tags": [
- "string"
], - "folder_id": "7695bac3-9397-4ec2-9335-45a2a16f1901",
- "external_id": "string"
}{- "message": "string",
- "status_code": 0,
- "timestamp": "string",
- "data": null
}Upload a single part of a multipart file upload.
This endpoint accepts raw binary data for one part of a multipart upload. The part data should be sent as the request body.
| upload_id required | string (Upload Id) ID of the upload object |
| part_number required | integer (Part Number) The part number being uploaded (1-based indexing) |
{- "message": "string",
- "status_code": 0,
- "timestamp": "string",
- "data": {
- "upload_id": "f2ef591b-135b-46fa-a604-3d4fda5bfbfb",
- "part_number": 0,
- "received_bytes": 0
}
}Complete a multipart file upload and queue it for processing.
This endpoint finalizes the upload by combining all uploaded parts and queues the file for distillation (text extraction and ai processing).
| upload_id required | string (Upload Id) ID of the upload object |
{- "message": "string",
- "status_code": 0,
- "timestamp": "string",
- "data": {
- "upload_id": "f2ef591b-135b-46fa-a604-3d4fda5bfbfb",
- "status": "string"
}
}Stream real-time upload progress events via Server-Sent Events.
This endpoint provides a streaming connection that emits events about upload progress, including part uploads, completion, and errors. Use optional filters to listen for specific uploads or batches.
| upload_id | string <uuid> (Upload Id) Filter events to only this specific upload session |
| client_batch_id | string (Client Batch Id) Filter events to only uploads with this batch identifier |
{- "upload_id": "f2ef591b-135b-46fa-a604-3d4fda5bfbfb",
- "client_batch_id": "string"
}nullRetrieve the current state of an upload session.
Returns information about the upload session including progress, number of parts uploaded, and session status.
| upload_id required | string (Upload Id) ID of the upload object |
{- "message": "string",
- "status_code": 0,
- "timestamp": "string",
- "data": {
- "upload_id": "f2ef591b-135b-46fa-a604-3d4fda5bfbfb",
- "folder_id": "7695bac3-9397-4ec2-9335-45a2a16f1901",
- "file_name": "string",
- "blob_name": "string",
- "staging_blob_name": "string",
- "committed_blob_name": "string",
- "committed_blob_deleted": true,
- "status": "string",
- "part_size": 0,
- "num_parts": 0,
- "parts_received": 0,
- "size": 0,
- "client_batch_id": "string"
}
}Retrieve information about a completed file upload.
Returns metadata about the uploaded file including its status, location, and processing information.
| upload_id required | string (Upload Id) ID of the upload object |
{- "message": "string",
- "status_code": 0,
- "timestamp": "string",
- "data": {
- "upload_id": "f2ef591b-135b-46fa-a604-3d4fda5bfbfb",
- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
- "title": "string",
- "folder_id": "7695bac3-9397-4ec2-9335-45a2a16f1901",
- "file_name": "string",
- "metadata": { },
- "created_at": "2019-08-24T14:15:22Z",
- "last_modified_at": "2019-08-24T14:15:22Z",
- "delete_at": "2019-08-24T14:15:22Z",
- "is_deleted": false,
- "last_modified_by_user_id": "ee1a2e7e-88a3-4b95-8ec0-7ebb834a0317",
- "upload_status_type_id": 0,
- "file_type_id": 0,
- "has_tables": false,
- "tags": [
- "string"
], - "blob_name": "string"
}
}