REST API
Every SDK method maps to an HTTP endpoint. Use the REST surface directly from any language or runtime. All endpoints require a bearer token and are tenant-scoped by the API key (or explicit X-Tenant-ID header for account-scoped keys).
Base URL
https://api.veroagents.comAuthentication
Authorization: Bearer sk_live_...
Content-Type: application/json
X-Tenant-ID: tnt_... (optional, account-scoped keys only)Agents
| Method | Path | Description |
|---|---|---|
GET | /v1/agents | List agents |
POST | /v1/agents | Create agent |
GET | /v1/agents/:id | Get agent |
PATCH | /v1/agents/:id | Update agent |
DELETE | /v1/agents/:id | Delete agent |
POST | /v1/agents/:id/trigger | Trigger a run |
GET | /v1/agents/:id/files | List workspace files |
GET | /v1/agents/:id/files/:name | Read file |
PUT | /v1/agents/:id/files/:name | Write file |
DELETE | /v1/agents/:id/files/:name | Delete file |
GET | /v1/agents/roles | List job roles |
Runs
| Method | Path | Description |
|---|---|---|
GET | /v1/agents/runs | List runs |
GET | /v1/agents/runs/:id | Get run |
POST | /v1/agents/runs/:id/cancel | Cancel run |
GET | /v1/agents/runs/:id/events | SSE event stream |
Trigger example
bash
curl -X POST https://api.veroagents.com/v1/agents/coordinator/trigger \
-H "Authorization: Bearer $VERO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"conversation_id": "call_8291",
"sender_id": "david-cohen",
"message": "I need help with my denied claim"
}'
# => { "run_id": "run_01h...", "status": "accepted" }SSE stream example
bash
curl -N \
-H "Authorization: Bearer $VERO_API_KEY" \
-H "Accept: text/event-stream" \
https://api.veroagents.com/v1/agents/runs/run_01h.../eventsBrain
| Method | Path | Description |
|---|---|---|
POST | /v1/brain/:agentId | Write entry |
GET | /v1/brain/:agentId/:scope/:key | Read by key |
DELETE | /v1/brain/:agentId/:scope/:key | Delete entry |
GET | /v1/brain/:agentId/query | Hybrid search + budgeted context |
GET | /v1/brain/:agentId/subscribe | SSE subscription |
Sandcastle
| Method | Path | Description |
|---|---|---|
POST | /v1/sandcastle | Create & boot VM |
GET | /v1/sandcastle | List VMs |
GET | /v1/sandcastle/:id | Get VM |
DELETE | /v1/sandcastle/:id | Destroy VM |
POST | /v1/sandcastle/:id/exec | Run one-shot shell |
Errors
All errors return a JSON body:
json
{
"error": {
"code": "not_found",
"message": "Agent agent_xxx not found",
"details": {}
}
}Common codes:
401 authentication_error— missing / invalid API key403 authorization_error— key not authorized for this resource404 not_found— resource does not exist422 validation_error— bad request body429 rate_limit— respectRetry-After5xx server_error— retry with backoff