Authentication
All endpoints require JWT authentication via theAuthorization header:
Permissions
Agent operations require specific permissions:- VIEW: Read basic agent information
- EDIT: Modify agent configuration
- CREATE: Create new agents
- DELETE: Remove agents
- SHARE: Share agents with projects/groups
List Agents
Query Parameters
Number of agents per page
Page number
Search query for agent name or description
Filter by agent category
Response
Array of agent objects
Total number of agents
Total number of pages
Get Agent Categories
Response
Array of category objects with name and count
Get Agent (Basic Info)
Path Parameters
The agent ID
Response
Returns an agent object with basic information excluding sensitive configuration details.Get Agent (Full Details)
Path Parameters
The agent ID
Response
Unique agent identifier
Agent name
Agent description
System instructions/prompt for the agent
Model identifier (e.g., “gpt-4”, “claude-3-opus”)
Provider name (e.g., “openAI”, “anthropic”)
Array of enabled tool configurations
Tool-specific resources like file_search file IDs
Current version number
Array of previous versions
Create Agent
Request Body
Agent name (max 256 characters)
Agent description
System instructions/prompt for the agent
Model identifier
Provider name (e.g., “openAI”, “anthropic”, “bedrock”)
Array of tool identifiers to enable
Tool-specific resources
Array of project IDs to share the agent with
Response
Returns the created agent object with status 201 Created.Update Agent
Path Parameters
The agent ID
Request Body
Accepts partial agent updates. All fields are optional.Updated agent name
Updated description
Updated instructions
Updated model
Updated tools array
Add agent to projects (requires SHARE permission)
Remove agent from projects (requires SHARE permission)
Response
Returns the updated agent object.Duplicate Agent
Path Parameters
The agent ID to duplicate
Response
Returns the newly created duplicate agent with status 201 Created.Delete Agent
Path Parameters
The agent ID to delete
Response
Returns the deleted agent object with status 200 OK.Revert Agent Version
Path Parameters
The agent ID
Request Body
Index of the version to revert to (0-based)
Response
Returns the agent object with the reverted configuration.Upload Agent Avatar
Path Parameters
The agent ID
Request
Multipart form data with file and optional metadata.Avatar image file (PNG, JPG, WEBP, GIF)
JSON string with optional metadata
Response
URL of the uploaded avatar
Get Available Tools
Response
Array of tool definitions
Get Agent Actions
Response
Returns an array of action definitions with OpenAPI specifications.Common Error Codes
| Status Code | Description |
|---|---|
| 400 | Bad Request - Invalid parameters or malformed request |
| 401 | Unauthorized - Invalid or missing JWT token |
| 403 | Forbidden - Insufficient permissions for the operation |
| 404 | Not Found - Agent does not exist |
| 500 | Internal Server Error - Server-side error occurred |