API
Simple mode on — some technical details are condensed. Switch to Dev in the nav for full API reference.

Documentation

API Reference

Use public REST endpoints for agents, permissions, verification, logs, and key rotation. Requires an API key.

Authentication

All authenticated endpoints require Authorization: Bearer bhf_sk_….

Endpoints

MethodPathDescription
POST/api/agentsAdd a native or connected agent and return the API key once.
POST/api/permissionsCreate a permission for the authenticated agent.
POST/api/verifyEvaluate whether an agent can perform an action.
POST/api/actions/executeExecute an allowed safe public web read through the Action Gateway MVP.
GET/api/logs/[agentId]Read filtered verification logs and summaries for the authenticated agent.
POST/api/agents/[agentId]/rotate-keyRotate an agent API key and return the new key once.

POST /api/verify

request body
{
  "agentId": "agent_xxx",
  "action": "deploy_production",
  "vendor": "vercel.com",
  "amount": 0,
  "metadata": {}
}
response
{
  "requestId": "req_xxx",
  "allowed": false,
  "reason": "Permission requires approval before execution.",
  "risk": "medium"
}