http://localhost:8000
All endpoints (except /health) require a Bearer token:
# Get token
curl -X POST http://localhost:8000/auth/token \
-H "Content-Type: application/json" \
-d '{"username": "user", "password": "pass"}'
# Use token
curl -H "Authorization: Bearer $TOKEN" \
http://localhost:8000/agents| Endpoint | Limit |
|---|---|
/auth/token |
5/minute |
/auth/register |
3/minute |
/agents |
30/minute |
/tasks |
30/minute |
/health |
10/minute |
POST /agents
Content-Type: application/json
{
"name": "solver",
"model": "gpt-4",
"role": "backend",
"capabilities": ["code-generation", "testing"]
}
Response (201):
{
"id": "agent_1",
"name": "solver",
"model": "gpt-4",
"role": "backend",
"capabilities": ["code-generation", "testing"],
"status": "idle",
"created_at": "2026-05-03T10:00:00Z"
}GET /agents
Response (200):
[
{
"id": "agent_1",
"name": "solver",
"model": "gpt-4",
"role": "backend",
"status": "idle",
"created_at": "2026-05-03T10:00:00Z"
}
]GET /agents/{agent_id}
Response (200):
{
"id": "agent_1",
"name": "solver",
"model": "gpt-4",
"role": "backend",
"status": "active",
"created_at": "2026-05-03T10:00:00Z"
}POST /tasks
Content-Type: application/json
{
"title": "Fix login endpoint",
"description": "Add JWT token refresh",
"priority": 8,
"assigned_to": "solver"
}
Response (201):
{
"id": "task_1",
"title": "Fix login endpoint",
"description": "Add JWT token refresh",
"priority": 8,
"assigned_to": "solver",
"status": "pending",
"created_at": "2026-05-03T10:00:00Z"
}GET /tasks?status=pending
Response (200):
[
{
"id": "task_1",
"title": "Fix login endpoint",
"status": "pending",
"priority": 8,
"created_at": "2026-05-03T10:00:00Z"
}
]PATCH /tasks/{task_id}
Content-Type: application/json
{"status": "completed"}
Response (200):
{
"id": "task_1",
"title": "Fix login endpoint",
"status": "completed",
"completed_at": "2026-05-03T10:15:00Z"
}GET /health
Response (200):
{
"status": "healthy",
"details": {
"database": "connected",
"cache": "connected",
"simone_mcp": "connected"
}
}GET /metrics
Response (200):
{
"metrics": {
"total_agents": 5,
"total_tasks": 42,
"avg_task_duration": "15.3s",
"error_rate": "0.2%"
}
}{"detail": "Agent already exists"}{"detail": "Invalid credentials"}{"detail": "Rate limit exceeded"}{"detail": "Agent not found"}{"detail": "Internal server error"}Visit http://localhost:8000/docs for Swagger UI with try-it-out functionality.