List Agents
List all agents in the current project.Response
Array of agent objects
Create Agent
Create a new AI agent.Request Body
Agent name
Agent description
Whether the agent should be active
LLM model to use (e.g., “OPENAI_GPT_4_O”, “ANTHROPIC_CLAUDE_3_5_SONNET_V1”)
LLM provider (OPENAI, ANTHROPIC, TOGETHERAI, BEDROCK, GROQ, OPENROUTER, COHERE, PERPLEXITY, GOOGLE, ROUTELLM)
System prompt for the agent
URL to agent avatar image
Initial greeting message from the agent
Maximum number of tokens in response
Temperature setting for response generation (0.0 - 2.0)
Whether to enable streaming responses (default: true)
Whether to enable tool usage (default: true)
Maximum number of reasoning steps (default: 1)
Number of top results from vector search (default: 8)
Whether to enable reranking (default: false)
Number of top results after reranking (default: 8)
Whether to enable structured output (default: false)
JSON schema for structured output
Whether to include citations in responses (default: false)
Response
Returns the created agent object.Get Agent
Get a single agent by ID.Path Parameters
The unique identifier of the agent
Response
Returns the agent object.Update Agent
Update an existing agent.Path Parameters
The unique identifier of the agent
Request Body
All fields are optional and only provided fields will be updated.Updated agent name
Updated agent description
Updated active status
Updated system prompt
Updated temperature setting
Response
Returns the updated agent object.Delete Agent
Delete an agent. This action cannot be undone.Path Parameters
The unique identifier of the agent
Response
Returns a 204 status code on successful deletion.Invoke Agent
Send a message to an agent and get a response.Path Parameters
The unique identifier of the agent
Request Body
The input message to send to the agent
Thread ID to continue an existing conversation
Whether to enable streaming responses (default: false)
Whether to show tool calls in the response (default: false)
JSON schema for structured output
Array of tool IDs to enable for this invocation
Array of metadata variables to pass to the agent
Filter for datasource resources by metadata
Array of documents (images or PDFs) to include in the request
Response
Whether the invocation was successful
Error message if the invocation failed
Response data from the agent
ID of the generated message
Rate Agent Response
Rate a message from the agent to provide feedback.Path Parameters
The unique identifier of the agent
Request Body
ID of the message to rate
Rating value (POSITIVE, NEGATIVE, NEUTRAL)
ID of the user providing the rating
Additional feedback description
Response
Returns a success confirmation.Add Tool to Agent
Add a tool to an agent, enabling it to perform additional functions.Path Parameters
The unique identifier of the agent
Request Body
ID of the tool to add
Response
Returns a 204 status code on success.List Agent Tools
List all tools assigned to an agent.Path Parameters
The unique identifier of the agent
Response
Array of tool objects
Remove Tool from Agent
Remove a tool from an agent.Path Parameters
The unique identifier of the agent
The unique identifier of the tool to remove
Response
Returns a 204 status code on success.Add Datasource to Agent
Add a datasource to an agent, allowing it to access the datasource’s knowledge.Path Parameters
The unique identifier of the agent
Request Body
ID of the datasource to add
Response
Returns a 204 status code on success.List Agent Datasources
List all datasources assigned to an agent.Path Parameters
The unique identifier of the agent
Response
Array of datasource objects
Remove Datasource from Agent
Remove a datasource from an agent.Path Parameters
The unique identifier of the agent
The unique identifier of the datasource to remove