Documentation
Verifying signatures
Check signed activity and identities against the chain. Every report lists each check with one precise result, the block it was pinned to and its data sources.
How results are reported
A report never collapses into a single “verified”. Each check resolves to PASS, FAIL, WARN, INFO, UNKNOWN, UNAVAILABLE or NOT CHECKED, with a detail sentence and its source.
overall: "PASS"only when every required check passed;"FAIL"when any required check failed;"INCOMPLETE"otherwise — for example, when the RPC is unreachable every chain check is UNAVAILABLE. A report never passes on missing evidence.
Activity reports
const report = await agentid.verifyActivity(record, { payload }); // payload is optional
report.overall; // "PASS" | "FAIL" | "INCOMPLETE"
report.blockNumber; // every chain read is pinned to this block
report.sources; // e.g. ["local", "rpc:46630@158260061"]
report.disclaimer; // the signature disclaimer, always includedcurl -X POST https://agentid-beryl.vercel.app/api/v1/verify/signature \
-H 'content-type: application/json' \
-d '{"record": { … }, "payload": { … }}'| Check | Required | What it establishes |
|---|---|---|
Record format validrecord.schema | yes | All fields present and well-formed (addresses, uint ranges, nonce charset, signature length). |
Network matches recordnetwork.chain | yes | The RPC's eth_chainId equals the record's chainId. |
Registry contract supportedregistry.supported | yes | The record's registry is the configured ERC-8004 registry for that chain and has code. |
Signature validrecord.signature | yes | EIP-712 signature over the record recovers to — or is accepted by (ERC-1271) — record.signer. |
Payload matches signed hashrecord.payload | with payload | Required when you supply the payload: its hash equals payloadHash. Otherwise NOT CHECKED (payload not disclosed). |
Timestamp not future-datedrecord.timestamp | yes | The declared timestamp is not more than 300 s in the future. |
Agent identity registered onchainidentity.registered | yes | The agent exists in the registry (ownerOf succeeds at the pinned block). |
Signing key authorized at record timesigner.authorized_at_time | yes | The key was authorized for the agent at the best available evidence time (see below). |
Signing key currently authorizedsigner.authorized_now | no | Whether the key is still authorized. INFO when it has been revoked since — informational only. |
Anchored onchainrecord.anchor | no | PASS with block and tx when anchored; INFO when not (anchoring is optional); NOT CHECKED without an anchor contract. |
Authorization at record time#
Keys can be revoked, so a record must be judged against the key's authorization history, rebuilt from KeyAuthorized, KeyRevoked, AllKeysRevoked, OwnerSynced and registry Transfer events. The evidence time is the strongest available:
- Onchain anchor — the block of the anchoring transaction;
- AgentID receipt — the block at which AgentID checked authorization when the record was published;
- Declared timestamp — self-declared by the signer; it counts only while the key has not been invalidated since.
Result: PASS if the key was authorized at that time, FAIL if it never was, UNKNOWN when only a self-declared timestamp predates a revocation (backdating cannot be excluded) or the history is inconsistent with the live state, and UNAVAILABLE when history cannot be read.
Identity reports
const report = await agentid.verifyIdentity("42", {
expectedOwner: "0xOwnerYouExpect", // optional: FAIL if the onchain owner differs
signer: "0xSigningKey", // optional: makes "Signing key ownership proven" required
});curl -X POST https://agentid-beryl.vercel.app/api/v1/verify/identity \
-H 'content-type: application/json' \
-d '{"chainId":46630,"registry":"0x8004A818BFB912233c491871b3d84c89A494BD9e","agentId":"42","checkEndpoints":true}'
# or by profile URL: {"url": "/agent/46630/0x8004A818BFB912233c491871b3d84c89A494BD9e/42"}| Check | Required | What it establishes |
|---|---|---|
Network matches identitynetwork.chain | yes | The RPC's eth_chainId equals the requested chain. |
Registry contract supportedregistry.supported | yes | The address is the configured ERC-8004 registry for the chain and has code. |
Registry implementation matches verified ERC-8004 buildregistry.implementation | no | EIP-1967 implementation code hash equals the verified official ERC-8004 build. |
Identity registered onchainidentity.registered | yes | ownerOf(agentId) succeeds — FAIL with “Agent #N does not exist in this registry”. |
Owner address verified against registryidentity.owner | yes | The current owner is read; FAIL if you passed expectedOwner and it differs. |
Registration metadata URI presentmetadata.uri | no | An agentURI is set (WARN when empty). |
Metadata integrity verifiedmetadata.integrity | no | PASS only for files stored onchain (data: URI); https/IPFS are NOT CHECKED (no onchain hash). |
Registration file references this identitymetadata.registration_ref | no | registrations[] points back to this identity (WARN missing, FAIL other agent). |
Signing key ownership provensigner.authorized | with signer | Required when you pass signer: isAuthorized at the pinned block. |
Endpoint reachableendpoint.reachable | no | Server only, on request: https service endpoints answered through the SSRF-safe fetcher. |
Endpoint domain verifiedendpoint.domain | no | Server only, on request: /.well-known/agent-registration.json lists this identity. |
The SDK reports endpoint checks as NOT CHECKED; the API runs them when checkEndpoints is true.
Signer reports
POST /api/v1/verify/signer with { chainId, signer } lists the agents an address is or was authorized for (from the index), each confirmed with a live isAuthorized call.
The same reports are available in the browser at Verify, without an account or a wallet.