Overview
Agents are AI assistants that execute tasks within workspaces. Each agent has a specific role (ROUTA, CRAFTER, GATE, DEVELOPER) and can be configured with different model tiers for performance optimization.Agent Roles
| Role | Description |
|---|---|
ROUTA | Orchestrator agent that coordinates other agents |
CRAFTER | Specialized in crafting and refining content |
GATE | Validation and quality control agent |
DEVELOPER | Handles development and implementation tasks |
Model Tiers
| Tier | Description |
|---|---|
SMART | Most capable models for complex reasoning |
BALANCED | Balance between capability and speed |
FAST | Fastest models for simple tasks |
Agent Status
| Status | Description |
|---|---|
PENDING | Agent created but not started |
ACTIVE | Agent is currently executing |
COMPLETED | Agent finished successfully |
ERROR | Agent encountered an error |
CANCELLED | Agent was manually cancelled |
List Agents
Endpoint
List all agents in a workspace or get a single agent by ID
Query Parameters
The workspace ID to filter agents (defaults to
"default")If provided, returns a single agent instead of a list
If present with
id, returns agent summary (Next.js only)Filter by agent role:
ROUTA, CRAFTER, GATE, or DEVELOPERFilter by status:
PENDING, ACTIVE, COMPLETED, ERROR, or CANCELLEDFilter by parent agent ID
Response
Array of agent objects (when listing)
Agent Object
Unique identifier for the agent
Display name of the agent
Agent role:
ROUTA, CRAFTER, GATE, or DEVELOPERModel tier:
SMART, BALANCED, or FASTID of the workspace this agent belongs to
ID of the parent agent (if this is a sub-agent)
Current status of the agent
Additional metadata as key-value pairs
ISO 8601 timestamp of creation
ISO 8601 timestamp of last update
Response Example
Create Agent
Endpoint
Create a new agent
Request Body
Display name for the agent
Agent role:
ROUTA, CRAFTER, GATE, or DEVELOPERID of the workspace (defaults to
"default")Model tier:
SMART, BALANCED, or FASTID of the parent agent (for creating sub-agents)
Response
ID of the newly created agent
Complete agent object
Response Example
Get Agent by ID
Endpoint
Get a single agent by ID (REST-style path parameter)
Path Parameters
The agent ID
Response
Returns a single agent object.Status Codes
| Status Code | Description |
|---|---|
200 | Success |
404 | Agent not found |
Delete Agent
Endpoint
Delete an agent
Path Parameters
The agent ID to delete
Response
Always
true when successfulResponse Example
Update Agent Status
Endpoint
Update an agent’s status
Path Parameters
The agent ID
Request Body
New status:
PENDING, ACTIVE, COMPLETED, ERROR, or CANCELLEDResponse
Always
true when successful