Choose your path.

Get started with Observer Protocol. Full developer documentation, SDK reference, and working examples on GitHub.

📖
START HERE
Developer Guide
Architecture · API Reference · Chain Verification
Complete developer documentation on GitHub. Covers agent registration, chain-agnostic verification, delegation credentials, VAC extensions, and sandbox testing.
60 SECONDS
Agent Quickstart
Python · pip install observer-protocol
Register an agent, prove key ownership, retrieve your VAC, and check your delegation status, all in 60 seconds. Working code you can run immediately.
🔗
CHAIN-AGNOSTIC
Chain Verification
x402 / USDC · Lightning · TRON · Solana · ERC-8004
Verify transactions on any supported rail. x402 dual verification (Coinbase facilitator + Base RPC). Lightning three-tier model. TRON TronGrid verification. Solana Ed25519. ERC-8004 / TRC-8004 on-chain registry integration.
📦
NPM INSTALL · v1.0.0-rc.6
Verify a credential
npm install @observer-protocol/policy-engine
Verify a delegation credential yourself — issuer, structure, validity window, eddsa-jcs-2022 proof against the issuer DID document, and revocation. No API key, no token, no Observer Protocol API in the path. It fetches the issuer's DID document and the revocation status list over ordinary HTTPS from the origins the credential names; point offline.didDocumentPath at a local copy and it makes no network call at all. The hosted verifier is a separate deployment running a different engine version; see the SDK section.
🐍
PIP INSTALL · v0.2.0
Python SDK
pip install observer-protocol
Full Python SDK: agent identity, delegation, x402 verification, magic link authorization, chargeback prevention, ERC-8004 integration. Type-hinted throughout.
🏗️
FOR NETWORKS
Network Operator Guide
Platforms · Marketplaces · Networks
Integration path for platforms wanting to verify agent transactions, write to the audit trail, and register VAC extensions for their own attestation data.

HTTP API v1.0.0 · Base URL: api.observerprotocol.org

All non-DID endpoints use the /api/v1/ prefix. DID document paths follow the W3C did:web resolution standard and are documented separately below. Full interactive documentation available via Swagger UI.

Interactive Swagger UI ↗ OpenAPI YAML ↗
Agent Identity
POST/observer/register-agentRegister agent
POST/observer/challengeGet challenge
POST/observer/verify-agentVerify identity
GET/observer/agents/{agent_id}401Agent profile
PATCH/api/v1/agents/{agent_id}Update agent
DID Resolution
GET/api/v1/resolve/{did}404Resolve any did:web NEW
POST/observer/consolidate-identityCross-rail consolidation
GET/vp/verifyVerify VP NEW
POST/vp/submitSubmit VP NEW
Verifiable Agent Credentials
GET/vac/{agent_id}Get VAC
POST/vac/{agent_id}/refreshRefresh VAC
GET/vac/{agent_id}/historyVAC history
POST/vac/partners/{id}/attestIssue attestation NEW
GET/vac/partners404Partner registry
AIP 2 OF THESE 404
This group was headed “AIP v0.5 · NEW” until 8 August 2026. It was neither: the version was four releases stale and two of the endpoints below do not exist in production. The POST routes here are unverified — they were not exercised, because testing them would write to production.
POST/aip/credentials/delegationIssue delegation VC
POST/aip/credentials/kybIssue KYB VC
GET/aip/chain/verify/{id}404Verify chain
POST/aip/revokeRevoke + cascade
POST/aip/remediation/buildBuild remediation
GET/aip/type-registry/{category}404Type registry
Protocol Activity
GET/api/v1/healthHealth check
GET/api/v1/statsAggregate stats
GET/observer/feed401Verified event feed
GET/observer/trendsProtocol trends
POST/observer/submit-transactionSubmit transaction
Organizations
GET/api/v1/protocolsList protocols
GET/api/v1/metricsTime-series metrics
GET/api/v1/signalsProtocol signals
GET/observer/badge/{agent_id}.svgAgent badge SVG
# Enter a DID above and click Resolve. # Endpoint: GET https://api.observerprotocol.org/api/v1/resolve/{did} # # Example DIDs: # did:web:observerprotocol.org:agents:maxi-0001 # did:web:observerprotocol.org:agents:vicky-0002
# Resolve any did:web DID document
curl https://api.observerprotocol.org/api/v1/resolve/did:web:observerprotocol.org:agents:maxi-0001

# Returns W3C DID Document with verification methods and service endpoints

@observer-protocol/policy-engine

Verification, offline, from npm. Node 18+, MIT license. This is the package the rail adapters depend on and the one under active release.

Offline verification is not an SDK detail. It is the protocol's central affordance and it has its own page: verify a record, with a runnable transcript, a field-by-field account of what each element proves and what it does not, and two artifacts published specifically because they must fail.

# Install npm install @observer-protocol/policy-engine // Verify a delegation credential you were given. // No API key, no Observer Protocol API in the path. // Fetches the issuer DID document and status list // over HTTPS; offline.didDocumentPath removes that. import { verifyCredentialObject } from '@observer-protocol/policy-engine'; const verdict = await verifyCredentialObject( mandate, // the signed delegation credential config, // VerifierConfig: pinned issuer, schema allowlist Date.now() // evaluated at this instant ); // Checks issuer, structure, validity window, the // eddsa-jcs-2022 proof against the issuer DID document, // and revocation. Fail-closed. // // Note: verifyCredential(config, nowMs) is a DIFFERENT // function and does not take the credential. // Types are the reference; no worked example ships yet.
Correction, 8 August 2026. This note previously said the hosted verifier required a partner bearer token with no self-serve route. That was wrong, and stating the consequence matters more than stating the new fact: nobody tested it, the claim was believed, and it was carried into a planning document as a premise that work was then scoped against. A wrong line in documentation does not stay in documentation.

The same audit found four endpoints on this page that return 404 in production, one of them — /api/v1/resolve/{did} — sitting directly beside a copy-pasteable curl command. That is the one that would have cost a developer an afternoon before they concluded the fault was theirs. verify.observerprotocol.org is open: its /version reports verification.open: true at 60 requests per caller per minute, and an unauthenticated POST /v1/verify returns 200 with a signed result.

It is a different build, though. The hosted service reports engine.running: "0.3.3"; the package above is 1.0.0-rc.6. They agreed on every artifact tested, including exact reason strings, but that is agreement on samples rather than a shared code path. Tracked as op-verify-service#1; this notice comes off when it lands. Where they disagree, the published package is authoritative.
# Verify agent identity const verified = await observer.verifyAgent( agent.id, challenge, signature ); # Record a transaction await observer.recordTransaction({ senderId: agent.id, paymentHash: hash, proof: preimage }); # Get VAC const vac = await observer.getVAC(agent.id);
GitHub → sdk-js ↗ npm link removed — see note

Open standards. Versioned specs.

Observer Protocol is governed by open specifications maintained on GitHub. AIP v0.9 was ratified on 25 July 2026 and is tagged v0.9 in the specification repository, with the review record in its pull request. It is additive over v0.6: an implementation conforming to v0.6 remains conforming.

PROTOCOL SPEC · CC BY 4.0

Observer Protocol Spec

The canonical specification for OP: identity model, event schema, verification logic, VAC structure, and API reference. Version controlled on GitHub.

github.com/observer-protocol/aip ↗
AIP v0.9 · RATIFIED 25 JULY 2026

Agent Interaction Protocol

AIP governs how agents interact: delegation credentials, magic-link authorization, authorization proofs, chargeback prevention, and type registry.

Read the AIP v0.9 spec ↗
OPENAPI · OAS 3.0

API OpenAPI Spec

Machine-readable API specification in OpenAPI 3.0 format. Use to generate client SDKs, validate requests, or power your own Swagger UI instance.

API-SPEC-OPENAPI.yaml ↗
CANONICAL REFERENCE · PERMANENT URL

Architecture Document

The permanent citable reference for grants, investor materials, developer documentation, and academic reference. Updated April 2026.

observerprotocol.org/architecture ↗
W3C JSON SCHEMAS · LIVE URLS

Credential Schemas

X402PaymentCredential, Delegation v2 (three-level authorization), Settlement Receipt v1 (chargeback prevention). All $id URLs resolve.

observerprotocol.org/schemas/ ↗
ON-CHAIN REGISTRY · LIVE

ERC-8004 / TRC-8004 Integration

On-chain agent identity and ERC-8004 registry integration. Indexers for Base and TRON mainnet, cross-registry DID resolution, registration file pinning, and OP validator on Base.

rails/erc8004/ on GitHub ↗
DEMO · THOUGHT LEADERSHIP

Chargeback Prevention Demo

End-to-end demo: agent purchase, magic-link authorization, authorization proof, cryptographic dispute prevention. For AI infrastructure companies.

observerprotocol.org/chargeback-prevention ↗

How did:web resolution works on OP.

Observer Protocol uses the W3C did:web method. DID Documents are served at standard URL patterns, not through the API. This is intentional: DID resolution is a protocol-level concern, not an API endpoint.

AGENT DID PATTERN
did:web:observerprotocol.org:agents:{agent_id}
→ resolves to:
https://observerprotocol.org/agents/{agent_id}/did.json
ORG DID PATTERN
did:web:{org-domain}:op-identity
→ resolves to:
https://{org-domain}/op-identity/did.json
ROOT DID PATTERN
did:web:observerprotocol.org
→ resolves to:
https://observerprotocol.org/.well-known/did.json

The W3C did:web method transforms a DID into an HTTPS URL by replacing colons with forward slashes. Anyone with HTTPS access can resolve an OP DID without querying the OP API. This is what makes agent identity truly portable.

The domain mismatch rule: an agent's DID domain must match its organization's DID domain. A mismatch is treated as a fraud signal by AIP-compliant implementations.

DID Component Resolves To
did:web:example.comhttps://example.com/.well-known/did.json
did:web:example.com:agents:abchttps://example.com/agents/abc/did.json
did:web:example.com:op-identityhttps://example.com/op-identity/did.json
Compatible with DIF Universal Resolver · W3C DID Core spec · did:web method spec

Deriving an agent DID from a public key

The derivation is deterministic and you can reproduce it without us, which is the point: an agent's identifier is a function of its key, not a record we assign. Ed25519 shown here because it is the same curve Solana uses, so a Solana keypair derives an agent DID with no extra material.

// agent_id = sha256(public_key_hex)[:32] // agent_did = did:web:observerprotocol.org:agents:<agent_id> import crypto from 'node:crypto'; // Any Ed25519 public key, hex-encoded. From @solana/web3.js this is // Buffer.from(keypair.publicKey.toBytes()).toString('hex') const publicKey = '<ed25519-public-key-hex>'; const agentId = crypto.createHash('sha256') .update(publicKey) .digest('hex') .slice(0, 32); const agentDID = `did:web:observerprotocol.org:agents:${agentId}`;
Note the input is the hex string, not the raw bytes. Hashing the bytes yields a different id and a DID that will not resolve.

Three things a reviewer will ask about.

Written down here because the answer is stronger recorded than reconstructed under questioning, and because two of the three are proposals rather than shipped behaviour. Which is which is stated.

Rail identifiers · PROPOSED, not shipped

ClearingSystemCode:PaymentProduct for fiat, CAIP-2 for chains. One field, one parser, both worlds: USABA:ACH.CCD, GBDSC:FPS, SGIBG:PAYNOW, eip155:8453.

The left half resolves against the ISO 20022 external clearing system code set, which appears in every pain.001, so it is not a vocabulary we invent or maintain. The right half distinguishes products sharing a clearing system, which is a real collision rather than a hypothetical one: ACH credit and Fedwire are different products on one system. It mirrors CAIP-2's namespace:reference grammar, so eip155:8453 parses under it unchanged and a fiat rail does not force a parallel identifier space.

What actually ships today: rail is a free-text string. The published delegation/v2.6 schema documents it that way, with examples 'usdt-trc20' and 'lightning', and no issued credential carries the grammar above. Schema URLs are immutable, so adopting it means a new schema version rather than an edit. Treat this as what the field is becoming, not what it contains.

Where an attestation reference resolves · DECIDED

A fiat reference field carries 31 characters or fewer, so a downstream party may hold only a pointer. Something has to serve what it points at, and hosting that at a vendor endpoint is uncomfortable: it puts us in the payment path and sits badly beside a claim that verification needs nothing from us.

Resolution through Observer Protocol infrastructure is defensible as a protocol layer rather than a vendor inserting itself, and only while all three of these hold:

  1. The host is configurable, and a principal serving their own attestations at their own domain is a first-class option rather than a special case. Where one is configured, it is the default.
  2. Resolution is never required for verification. An artifact in hand verifies offline with nothing from us. Resolution serves the case where a party holds only a reference. If verification ever depends on us being reachable, the claim is broken and the decision is void.
  3. The resolver is self-hostable from published source, like everything else in the protocol.

The three conditions are the decision. A resolver that quietly stopped satisfying any one of them would not be a degraded version of this; it would be the thing this decision was taken to avoid.

Decision attestations · specified, NOT yet verifiable

A decision attestation records what was decided, under which policy version and content hash, over which inputs (as a digest), by which party, with the decider kept separate from the mandate issuer, and at which assurance level (self-declared versus independently-observed).

There is no published schema for it, and no verifier accepts one. The related PolicyEvaluationCredential has the same gap and it is not cosmetic: AIP v0.8 defines that type and requires schema validation when verifying it, without ever assigning it a schema URL. The published engine has no dispatch on credential type at all, and the hosted service accepts only {agentDid, mandate}. Every evaluation credential we have issued fails our own verifier for this reason, while its signature verifies correctly under canonical W3C Data Integrity tooling.

We are not documenting a schema we have not published, and not shipping a verifier that reports success over a check it did not perform. The verification page states the same thing, and the affected artifacts stay published rather than being withdrawn to tidy the picture.