Available Route Groups
All routes are registered under your configured prefix (default:/api).
Agent Routes
Manage and interact with agents:| Method | Path | Description |
|---|---|---|
GET | /agents | List all registered agents |
GET | /agents/:agentId | Get agent metadata |
POST | /agents/:agentId/generate | Generate agent response |
POST | /agents/:agentId/stream | Stream agent response |
Workflow Routes
Execute and manage workflows:| Method | Path | Description |
|---|---|---|
GET | /workflows | List all registered workflows |
GET | /workflows/:workflowId | Get workflow metadata |
POST | /workflows/:workflowId/execute | Execute a workflow |
GET | /workflows/:workflowId/runs/:runId | Get workflow run status |
Tool Routes
Discover and inspect available tools:| Method | Path | Description |
|---|---|---|
GET | /tools | List all tools |
GET | /tools/:toolId | Get tool metadata |
Memory Routes
Interact with memory stores:| Method | Path | Description |
|---|---|---|
GET | /memory/:threadId | Get thread messages |
POST | /memory/:threadId/save | Save messages to thread |
DELETE | /memory/:threadId | Delete thread |
Observability Routes
Access telemetry and tracing data:| Method | Path | Description |
|---|---|---|
GET | /observability/traces | List traces |
GET | /observability/traces/:traceId | Get trace details |
POST | /observability/scores | Add score to trace |
POST | /observability/feedback | Add feedback to trace |
Log Routes
Query runtime logs:| Method | Path | Description |
|---|---|---|
GET | /logs | Query logs with filters |
Vector Routes
Vector store operations:| Method | Path | Description |
|---|---|---|
POST | /vectors/query | Query vector store |
POST | /vectors/upsert | Upsert vectors |
Using Handlers Directly
You can also use handlers directly without the server adapter:Handler Groups
Handlers are organized into modules:Response Types
Routes return different response types:JSON Response
Standard JSON response for most routes:Stream Response
Server-Sent Events (SSE) or chunked streaming:Error Response
Standardized error format:Request Validation
All routes validate requests using Zod schemas. Invalid requests return400 status with detailed error messages:
Next Steps
Middleware
Add authentication and custom middleware
Server Adapters
Learn about different server adapters