Agents
Create and manage AI agents
The Agents API allows you to create, manage, and execute AI agents in your application.
Create an Agent
Create a new AI agent with specified configuration.
Request Body
The name of the agent
The system instruction for the agent that defines its behavior
The LLM model to use (must be one of the supported models)
Optional tool integration for the agent
Response
The unique identifier of the created agent
ISO 8601 timestamp of when the agent was created
List Agents
Retrieve a list of all agents for the authenticated user.
Query Parameters
Whether to pretty-print the JSON response
Response
List of agent objects
Get Agent Details
Retrieve details of a specific agent.
Path Parameters
The unique identifier of the agent
Query Parameters
Whether to pretty-print the JSON response
Response
The agent details
Run Agent
Execute an agent with the provided input.
Path Parameters
The unique identifier of the agent
Request Body
The input text for the agent to process
Optional session ID for continuing a conversation
Response
The agent’s response to the input
The session ID for this conversation