Skip to content

API Reference

This page documents the local AllvIa Core API from main/core/src/api_server.rs. It is an agent pipeline API, not the legacy SaaS-style /automations API.

Important: AllvIa Core API runs on your local machine. Default port is 5680, and there is no public cloud API base URL for these routes.

Base URL

http://127.0.0.1:5680

You can change the port with STEER_API_PORT.

Authentication

In production profile, set STEER_API_KEY and send one of the headers below.

Authorization: Bearer YOUR_STEER_API_KEY
X-API-Key: YOUR_STEER_API_KEY

For local development only, no-key mode can be enabled with STEER_API_ALLOW_NO_KEY=1.

Quick Check

GET /api/health

curl -H "X-API-Key: $STEER_API_KEY" http://127.0.0.1:5680/api/health
# ok

GET /api/status

{
  "cpu_usage": 3.1,
  "memory_used": 145,
  "memory_total": 16384
}

Core Endpoint Groups

GroupMain EndpointsDescription
Agent PipelinePOST /api/agent/intent, /plan, /execute, /verify, /approveNatural language request -> intent -> plan -> execution/verification
GoalPOST /api/agent/goal, /goal/run, GET /api/agent/goal/currentAsynchronous/synchronous goal execution
RecommendationsGET /api/recommendations, POST /api/recommendations/:id/approveList/approve/reject/later/restore recommendations and metrics
VerificationPOST /api/verify/runtime, /visual, /semantic, /performanceRuntime, visual, semantic, and performance checks
Ops/SystemGET /api/logs, /api/system/health, /api/system/runtime-infoOperational status, logs, and runtime metadata
SessionsGET /api/sessions, GET|DELETE /api/sessions/:id, POST /api/sessions/:id/resumeSession lifecycle management

Agent Pipeline Example

POST /api/agent/intent

{ "text": "Analyze today's activity and recommend routines" }

POST /api/agent/plan

{ "session_id": "session_xxx" }

POST /api/agent/execute

{
  "plan_id": "plan_xxx",
  "profile": "strict"
}

Response (summary)

{
  "status": "success",
  "run_id": "plan_xxx_1730000000000",
  "planner_complete": true,
  "execution_complete": true,
  "business_complete": true,
  "logs": ["..."]
}

Error Codes

StatusMeaning
200Success
202Accepted for async processing (goal queue/running)
400Bad request payload
401Unauthorized (missing/mismatched API key)
404Session/plan/resource not found
409Execution lock conflict
500Internal server error

The route source of truth is the router in main/core/src/api_server.rs. Track breaking changes in Releases.