Back to API Reference

Agents API

GET/agents

List all agents

POST/agents

Create a new agent

{
  "name": "Support Agent",
  "description": "Handles customer support",
  "model": "gpt-4",
  "systemPrompt": "You are a helpful support agent.",
  "tools": ["search_kb", "create_ticket"],
  "memory": { "type": "conversation", "maxMessages": 50 }
}
GET/agents/:id

Get agent by ID

PATCH/agents/:id

Update agent

DELETE/agents/:id

Delete agent