Download OpenAPI specification:
{- "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.
| utterance required | string (Utterance) The user's message or question to send to the agent |
Agent (string) or Agent (null) (Agent) Agent slug to use (defaults to 'orchestrator') | |
Model (string) or Model (null) (Model) Model slug to use (defaults to 'auto-fast') | |
Thread Id (string) or Thread Id (null) (Thread Id) Existing thread ID to continue conversation, or null for new thread | |
System Instructions (string) or System Instructions (null) (System Instructions) Additional system instructions for the agent | |
Array of Allowed Tools (strings) or Allowed Tools (null) (Allowed Tools) List of tool names the agent is allowed to use | |
Tool Parameters (object) or Tool Parameters (null) (Tool Parameters) Parameters for specific tools (tool_name -> parameters). These are optional. If not provided, the ai agent will generate its own parameters or use defaults.
| |
Pre Run Tool (string) or Pre Run Tool (null) (Pre Run Tool) Tool to execute before the agent processes the utterance | |
Required Tool (string) or Required Tool (null) (Required Tool) Tool that must be executed during this run | |
Array of Upload Ids (strings) or Upload Ids (null) (Upload Ids) IDs of uploaded files to include in context | |
Array of Folder Ids (strings) or Folder Ids (null) (Folder Ids) IDs of folders to search for context |
{- "utterance": "string",
- "agent": "string",
- "model": "string",
- "thread_id": "1de43264-67cb-48af-89f9-e865c375bb84",
- "system_instructions": "string",
- "allowed_tools": [
- "string"
], - "tool_parameters": {
- "property1": { },
- "property2": { }
}, - "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,
- "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": { }
}
}, - "message": {
- "message_id": "d7d9d9fd-478f-40e6-b651-49b7f19878a2",
- "message_type": 0,
- "content": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "agent_slug": "string",
- "handoff_agent_slug": "string",
- "metadata": { },
- "total_cost_usd": 0,
- "response_seconds": 0
}, - "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",
- "messages": [
- {
- "message_id": "d7d9d9fd-478f-40e6-b651-49b7f19878a2",
- "message_type": 0,
- "content": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "agent_slug": "string",
- "handoff_agent_slug": "string",
- "metadata": { },
- "total_cost_usd": 0,
- "response_seconds": 0
}
], - "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"
}, - "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": { },
- "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"
}, - "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": { },
- "name": "string"
}
], - "blobs": [
- "string"
], - "tool_result_status_type_id": 0
}
}
}, - "openai_thread_id": "string",
- "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,
- "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": { }
}
}
}
}
}Stream real-time agent execution events via Server-Sent Events.
This endpoint provides a streaming connection that emits events during agent execution, including tool calls, responses, and completion status. Events are sent as they occur during the agent run.
| run_id required | string (Run Id) ID of the agent run to stream |
null| run_id required | string (Run Id) |
| decision required | string (Decision) Enum: "approve" "approve_with_edits" "reject" |
Array of Upload Ids (strings) or Upload Ids (null) (Upload Ids) | |
Array of Folder Ids (strings) or Folder Ids (null) (Folder Ids) | |
Tool Parameters (object) or Tool Parameters (null) (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"
}, - "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": { },
- "name": "string"
}
], - "blobs": [
- "string"
], - "tool_result_status_type_id": 0
}, - "message": {
- "message_id": "d7d9d9fd-478f-40e6-b651-49b7f19878a2",
- "message_type": 0,
- "content": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "agent_slug": "string",
- "handoff_agent_slug": "string",
- "metadata": { },
- "total_cost_usd": 0,
- "response_seconds": 0
}
}
}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) |
Metadata (object) or Metadata (null) (Metadata) Optional metadata dictionary associated with the file | |
Array of Tags (strings) or Tags (null) (Tags) Optional list of tags for categorizing the file | |
Client Batch Id (string) or Client Batch Id (null) (Client Batch Id) Optional batch identifier for grouping multiple uploads |
{- "folder_id": "7695bac3-9397-4ec2-9335-45a2a16f1901",
- "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 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) or Upload Id (null) (Upload Id) Filter events to only this specific upload session | |
Client Batch Id (string) or Client Batch Id (null) (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",
- "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"
}
}