HyperCode V2.0 — FastAPI Backend Base:
http://localhost:8000/api/v1Swagger UI:http://localhost:8000/docsLast Updated: 2026-03-25
Most endpoints require a Bearer token:
Authorization: Bearer <your_token>
- POST
/auth/login/access-token - Body:
application/x-www-form-urlencoded
curl -X POST "http://localhost:8000/api/v1/auth/login/access-token" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data "username=admin@hypercode.ai&password=adminpassword"Response:
{ "access_token": "<JWT>", "token_type": "bearer" }- POST
/tasks/ - Auth: Required
{
"title": "Task Title",
"description": "Code content or instruction",
"priority": "high",
"type": "translate",
"project_id": 1
}- GET
/tasks/ - Query Params:
skip,limit - Auth: Required
- GET
/tasks/{task_id} - Auth: Required
- PUT
/tasks/{task_id} - Auth: Required
- DELETE
/tasks/{task_id} - Auth: Required
- GET
/agents/ - Auth: Required
- Response: Array of active agent objects with status
- GET
/agents/{agent_id}/status - Auth: Required
{
"agent_id": "agent-x-001",
"status": "running",
"uptime_seconds": 3600,
"last_heartbeat": "2026-03-25T15:00:00Z"
}- POST
/agents/spawn - Auth: Required
{
"agent_type": "coder",
"name": "my-agent",
"model": "tinyllama",
"config": {}
}- DELETE
/agents/{agent_id} - Auth: Required
- GET
/health - Auth: None required
{
"status": "healthy",
"version": "2.1.0",
"services": {
"database": "ok",
"redis": "ok",
"agent_x": "ok",
"healer": "ok"
}
}- GET
/health/deep - Auth: Required
- GET
/mcp/tools - Auth: Required
- POST
/mcp/execute - Auth: Required
{
"tool_name": "read_file",
"parameters": { "path": "/app/src/main.py" }
}- GET
/metrics/system - Auth: Required
- GET
/metrics/agents - Auth: Required
| Service | Port | URL |
|---|---|---|
| HyperCode Core API | 8000 | http://localhost:8000 |
| BROski Terminal | 3000 | http://localhost:3000 |
| Crew Orchestrator | 8081 | http://localhost:8081 |
| Healer Agent | 8008 | http://localhost:8008 |
| Mission Control | 8088 | http://localhost:8088 |
| Grafana | 3001 | http://localhost:3001 |
built with WelshDog + BROski 🚀🌙