List All Agents
Retrieve all agents in the current workspace.GET /agents
Authentication: JWT cookie or API key
Get Agent by ID
GET /agents/{agent_id}
Authentication: JWT cookie or API key
Create Agent
POST /agents
Authentication: JWT cookie (Developer or Admin role)
Request Body:
Update Agent
PUT /agents/{agent_id}
Authentication: JWT cookie (Developer or Admin role)
Accepts the same body as Create. Fields not provided retain their current values.
Delete Agent
DELETE /agents/{agent_id}
Authentication: JWT cookie (Admin role)
Upload Knowledge Base Files
POST /agents/{agent_id}/upload
Authentication: JWT cookie (Developer or Admin role)
Upload documents to an agent’s knowledge base for RAG.
Query Knowledge Base
POST /agents/{agent_id}/query
Test RAG retrieval against an agent’s knowledge base.
Error Responses
| Status | Detail | Cause |
|---|---|---|
401 | "Invalid or missing token" | Authentication failed |
403 | "Insufficient permissions" | Role too low (need Developer+) |
404 | "Agent not found" | Agent doesn’t exist or not in workspace |
422 | Validation errors | Missing required fields or invalid types |