Skip to content

Documentation

API reference

The public AgentID API: conventions, errors and rate limits, followed by every endpoint, generated from the OpenAPI document the server serves.

Conventions

Base URL https://agentid-beryl.vercel.app/api/v1. JSON in and out, no API key. uint256 values (agent ids, block numbers) are decimal strings; addresses are checksummed; hashes are lowercase hex.

envelope
// Success
{
  "apiVersion": "1",
  "data": { … },
  "meta": {
    "source": ["indexer"],          // data sources used, e.g. ["indexer", "rpc:46630"]
    "generatedAt": "2026-11-26T12:00:00.000Z",
    "chainId": 46630,
    "indexedBlock": "…",            // last block the indexer processed
    "freshnessSeconds": 4,          // seconds since the indexer last synced
    "pagination": { "page": 1, "pageSize": 24, "total": 0, "hasMore": false }
  }
}

// Error
{
  "apiVersion": "1",
  "error": { "code": "SIGNER_NOT_AUTHORIZED", "message": "…", "details": { … }, "requestId": "…" }
}
  • Every response carries X-Request-Id (yours, if you send a valid one) and an explicit Cache-Control.
  • Inputs are validated strictly; requests time out after 15 seconds.
  • Verification endpoints read the chain at a pinned block and return per-check results with sources — see Verifying signatures.

Errors

HTTPCodes
400INVALID_INPUT · UNSUPPORTED_NETWORK · UNSUPPORTED_REGISTRY
401 / 403UNAUTHORIZED · FORBIDDEN · SIGNER_NOT_AUTHORIZED
404NOT_FOUND
409CONFLICT · DUPLICATE_RECORD
413PAYLOAD_TOO_LARGE
422INVALID_SIGNATURE · TIMESTAMP_OUT_OF_RANGE · PAYLOAD_HASH_MISMATCH
429RATE_LIMITED (with Retry-After)
500 / 503INTERNAL · CHAIN_UNAVAILABLE · NOT_CONFIGURED

Rate limits

Per client IP, fixed one-minute or one-hour windows. Responses carry X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset (unix seconds); a 429 adds Retry-After. Client IPs are stored only as salted hashes.

BucketLimit
Reads120 / min
Verification30 / min
Publish activity60 / min · 600 / h per agent
Index a transaction30 / min
Playground signing10 / min
Auth (SIWE)20 / min
Avatar uploads10 / h

Endpoints

Send any of these from the browser in the API playground.