Documentation Index
Fetch the complete documentation index at: https://docs.agentarea.ai/llms.txt
Use this file to discover all available pages before exploring further.
API Reference
AgentArea exposes a REST API built with FastAPI. All endpoints are documented with OpenAPI and available via interactive Swagger UI when running locally.
Interactive Documentation
When running AgentArea locally, access the full interactive API docs at:- Swagger UI: http://localhost:8000/docs
- ReDoc: http://localhost:8000/redoc
- OpenAPI JSON: http://localhost:8000/openapi.json
Authentication
All API requests require authentication via JWT bearer tokens or session cookies managed by Ory Kratos.API Endpoint Groups
Agents
/v1/agentsCreate, read, update, and delete AI agents. Configure agent personalities, system prompts, and capabilities.Skills
/v1/skillsManage reusable skill definitions that can be attached to agents. Skills define tools, prompts, and behaviors.Tasks
/v1/tasksCreate and manage agent tasks. Stream task execution via SSE. Track task status and results.MCP Servers
/v1/mcp-server-instancesProvision and manage MCP server instances. Configure managed, remote, and compound MCP servers.Triggers
/v1/triggersSet up event-driven automation. Configure schedule, webhook, and event-based triggers for agents.Events
/v1/eventsStream real-time events via SSE. Subscribe to task updates, agent status changes, and system events.Key Endpoints
Agents
| Method | Endpoint | Description |
|---|---|---|
GET | /v1/agents | List all agents in workspace |
POST | /v1/agents | Create a new agent |
GET | /v1/agents/{id} | Get agent details |
PATCH | /v1/agents/{id} | Update agent configuration |
DELETE | /v1/agents/{id} | Delete an agent |
Tasks
| Method | Endpoint | Description |
|---|---|---|
POST | /v1/tasks | Create and execute a task |
GET | /v1/tasks/{id} | Get task status and result |
GET | /v1/tasks/{id}/events | Stream task events (SSE) |
MCP Server Instances
| Method | Endpoint | Description |
|---|---|---|
GET | /v1/mcp-server-instances | List MCP server instances |
POST | /v1/mcp-server-instances | Create a new MCP instance |
GET | /v1/mcp-server-instances/{id} | Get instance details |
DELETE | /v1/mcp-server-instances/{id} | Remove an instance |
Skills
| Method | Endpoint | Description |
|---|---|---|
GET | /v1/skills | List all skills |
POST | /v1/skills | Create a new skill |
GET | /v1/skills/{id} | Get skill details |
PATCH | /v1/skills/{id} | Update a skill |
Common Patterns
Workspace Scoping
All API resources are scoped to the authenticated user’s workspace. You do not need to pass a workspace ID explicitly — it is derived from the authentication context.Pagination
List endpoints support cursor-based pagination:Error Responses
All errors follow a consistent format:SSE Streaming
Task execution events are streamed via Server-Sent Events:event and data fields.
For the complete, interactive API documentation with request/response schemas, run AgentArea locally and visit http://localhost:8000/docs.