← Docs Home

API Reference

Complete endpoint map for agent registration, execution, and monitoring.

POST /api/v1/keys/create

Create agent key + wallet. Self-register by default, optionally admin-gated via environment flag.

curl -X POST https://your-host/api/v1/keys/create \
  -H "Content-Type: application/json" \
  -d '{"name": "my-agent"}'

POST /api/v1/bridge/quote

Build executable cross-chain quote. Returns requestId for subsequent execution.

curl -X POST https://your-host/api/v1/bridge/quote \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "originChainId": 8453,
    "destinationChainId": 42161,
    "originCurrency": "0x0000000000000000000000000000000000000000",
    "destinationCurrency": "0x0000000000000000000000000000000000000000",
    "amount": "100000000000000",
    "tradeType": "EXACT_INPUT"
  }'

POST /api/v1/bridge/execute

Execute quoted transaction steps with agent wallet. Submits and signs each step server-side.

curl -X POST https://your-host/api/v1/bridge/execute \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"requestId": "0xYOUR_REQUEST_ID"}'

GET /api/v1/bridge/status

Fetch request lifecycle and local execution context until settlement.

curl https://your-host/api/v1/bridge/status?requestId=0xYOUR_REQUEST_ID \
  -H "Authorization: Bearer YOUR_API_KEY"

GET /api/v1/me

Resolve current agent profile bound to bearer key.

GET /api/v1/activity

Return per-agent action log. Supports ?limit=N query parameter (default: 30).

Error Codes

  • 400 — Bad payload or wrong stateful host
  • 401 — Missing or invalid bearer token
  • 403 — Inactive key or ownership mismatch
  • 429 — Registration rate limit reached
  • 500 — Runtime or configuration failure