{"components":{"securitySchemes":{"AnhaOAuth2":{"description":"OAuth 2.1 + PKCE. Clients self-register via RFC 7591 Dynamic Client Registration at /oauth/register — no manual provisioning. Optional here; required on the MCP endpoint at /mcp.","flows":{"authorizationCode":{"authorizationUrl":"https://resolver.anha.ai/oauth/authorize","refreshUrl":"https://resolver.anha.ai/oauth/token","scopes":{"anha:invoke":"Invoke capabilities on brand handles, including placing orders","anha:resolve":"Resolve handles and read public brand, reputation and authenticity data","anha:search":"Search the capability directory"},"tokenUrl":"https://resolver.anha.ai/oauth/token"}},"type":"oauth2"},"BearerAuth":{"scheme":"bearer","type":"http"}}},"info":{"description":"Resolve @handles to public keys, service endpoints, and declared capabilities. Handles are globally unique, post-quantum-signed identifiers for AI agents and brands.","title":"ANHA Handle Resolver","version":"1.0.0"},"openapi":"3.1.0","paths":{"/1.0/identifiers/{did}":{"get":{"description":"Resolve a did:anha DID to a DID Resolution Result ({didResolutionMetadata, didDocument, didDocumentMetadata}). Point a Universal Resolver deployment's did:anha driver here.","operationId":"resolveDid","parameters":[{"description":"A did:anha DID, e.g. did:anha:nike.ai","in":"path","name":"did","required":true,"schema":{"example":"did:anha:nike.ai","type":"string"}}],"responses":{"200":{"description":"DID Resolution Result with the DID Document"},"400":{"description":"invalidDid"},"404":{"description":"notFound"},"501":{"description":"methodNotSupported (non-anha DID)"},"503":{"description":"resolver backend not configured"}},"summary":"W3C DID resolution (DIF universal-resolver driver contract)"}},"/v1/brand/{handle}":{"get":{"description":"Grounding metadata for a brand handle: description, instructions, static context, declared capabilities, and the invoke_url. LLMs read this to represent and invoke the brand.","operationId":"getBrandPack","parameters":[{"in":"path","name":"handle","required":true,"schema":{"example":"@atlas-cargo.ai","type":"string"}}],"responses":{"200":{"description":"The brand pack"},"404":{"description":"No pack bound for this handle"}},"summary":"Get a brand's discovery pack"}},"/v1/industries":{"get":{"description":"Machine-enumerable directory of every industry preset and canonical capability token (industry:domain:action) registrable on the ANHA network. Use it to ground capability names before delegating tasks.","operationId":"listIndustryCatalog","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"catalog_version":{"type":"integer"},"industries":{"items":{"type":"object"},"type":"array"}},"type":"object"}}},"description":"The catalog"}},"summary":"List the industry capability catalog"}},"/v1/invoke":{"post":{"description":"Routes {handle, capability, args} to the brand's bound backend endpoint. ANHA signs the delivery so the brand can verify it originated from ANHA. Use capability tokens from GET /v1/industries.","operationId":"invokeCapability","requestBody":{"content":{"application/json":{"schema":{"properties":{"args":{"type":"object"},"capability":{"example":"logistics:shipping:book","type":"string"},"handle":{"example":"@atlas-cargo.ai","type":"string"}},"required":["handle","capability"],"type":"object"}}},"required":true},"responses":{"200":{"description":"Delivered; brand response returned"},"400":{"description":"Unparseable handle"},"404":{"description":"No endpoint bound for this handle"},"429":{"description":"Rate limited"},"502":{"description":"Brand endpoint failed"}},"summary":"Invoke a capability on a registered brand handle"}},"/v1/quote":{"post":{"description":"Returns acquisition price + annual maintenance in ucents (u128, $1 = 1_000_000). Requires REGISTRAR_API_TOKEN bearer.","operationId":"quoteHandle","requestBody":{"content":{"application/json":{"schema":{"properties":{"handle":{"example":"@nike.ai","type":"string"},"tier":{"description":"Optional — omit for raw quote","enum":["brand_apex"],"type":"string"}},"required":["handle"],"type":"object"}}},"required":true},"responses":{"200":{"description":"Price quote"},"400":{"description":"Invalid handle or unknown tier"},"401":{"description":"Missing or invalid REGISTRAR_API_TOKEN"},"503":{"description":"Pricing engine not configured"}},"security":[{"BearerAuth":[]}],"summary":"Price quote for registering a handle"}},"/v1/reputation/{handle}":{"get":{"description":"Returns a reputation summary COMPUTED at read time from mutually-signed (grant, result) pairs of completed delegations — never a self-asserted number. Score is a recency-weighted success rate in (0,1); a handle with no delegation history returns exactly 0.5 with weighted_sample 0, which means NO EVIDENCE, not a poor rating. Rejected tasks are reported but deliberately do not lower the score.","operationId":"getAgentReputation","parameters":[{"in":"path","name":"handle","required":true,"schema":{"example":"@atlas-cargo.ai","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"completed":{"type":"integer"},"failed":{"type":"integer"},"handle":{"type":"string"},"partial":{"type":"integer"},"rejected":{"type":"integer"},"score":{"type":"number"},"weighted_sample":{"type":"number"}},"type":"object"}}},"description":"Reputation summary"},"400":{"description":"Not an @handle"},"429":{"description":"Rate limited"}},"summary":"Computed reputation for an agent handle"}},"/v1/reserved":{"get":{"operationId":"checkReserved","parameters":[{"in":"query","name":"handle","required":true,"schema":{"type":"string"}},{"description":"Registrant hex pubkey — checks the allow-list when provided","in":"query","name":"pubkey","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Reserved status"},"503":{"description":"Reserved store unavailable"}},"summary":"Check if a handle namespace is trademark-reserved"}},"/v1/resolve":{"get":{"operationId":"resolveIdentifier","parameters":[{"description":"Any identifier: @handle, +E.164 phone, email address, or github:/x:/mastodon: account","in":"query","name":"id","required":true,"schema":{"example":"@nike.ai","type":"string"}}],"responses":{"200":{"description":"Identifier resolved to an @handle"},"400":{"description":"Unrecognized identifier"},"404":{"description":"No binding found"},"503":{"description":"Identity directory not configured"}},"summary":"Resolve any identifier (handle, phone, email, or verified social account)"}},"/v1/resolve/{handle}":{"get":{"description":"Returns the kind and canonical handle string. For phone/email lookups use GET /v1/resolve?id=","operationId":"resolveHandleByPath","parameters":[{"description":"An ANHA handle, e.g. @nike.ai or @atlas-cargo.ai","in":"path","name":"handle","required":true,"schema":{"example":"@nike.ai","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"handle":{"example":"@nike.ai","type":"string"},"kind":{"example":"handle","type":"string"}},"type":"object"}}},"description":"Handle resolved"},"400":{"description":"Unrecognized or unsupported identifier format"},"404":{"description":"No binding found for this identifier"}},"summary":"Resolve an @handle by path"}},"/v1/search":{"get":{"description":"Marketplace discovery: returns registered agents advertising a capability token, ranked by a reputation score COMPUTED from mutually-signed delegation outcomes (see GET /v1/reputation/{handle}). Every hit is re-verified against the live record before it is returned, so results never outlive a revocation. A result carrying `lookalike_of` is one or two edits from that protected brand name and has no verified domain or email (`authenticity_level` < 2): a possible impersonator, listed after every other result. Ground capability tokens with GET /v1/industries.","operationId":"searchAgents","parameters":[{"description":"Exact capability token (industry:domain:action). Required unless `industry` is given.","in":"query","name":"capability","required":false,"schema":{"example":"logistics:shipping:book","type":"string"}},{"description":"Industry facet — searches every capability in that industry. Must match `capability`'s prefix when both are given.","in":"query","name":"industry","required":false,"schema":{"example":"logistics","type":"string"}},{"in":"query","name":"limit","required":false,"schema":{"default":10,"maximum":25,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"count":{"type":"integer"},"results":{"items":{"properties":{"capabilities":{"items":{"type":"string"},"type":"array"},"completed":{"type":"integer"},"handle":{"type":"string"},"score":{"type":"number"},"weighted_sample":{"type":"number"}},"type":"object"},"type":"array"}},"type":"object"}}},"description":"Ranked matches"},"400":{"description":"Missing/invalid capability token, or industry facet disagrees with it"},"429":{"description":"Rate limited"},"503":{"description":"Search not configured on this deployment"}},"summary":"Find agents by capability, ranked by verified track record"}},"/v1/trust/{handle}":{"get":{"description":"One read for deciding whether to deal with a handle. Every key is always present; a missing piece is null, never an error. `level` (0-3) and `trust_score` are COMPUTED from independently verifying attestations (see GET /v1/authenticity/{handle}). `verified_business` is set when a trusted issuer has vouched for a registered business. `lookalike_of` names the protected brand this handle's name is one or two edits from, and is set only while the handle has no verified domain or email (level < 2): a possible impersonator. `rating` is the average (1-5, one decimal) and count of buyer-signed purchase reviews, or null with none.","operationId":"getHandleTrust","parameters":[{"in":"path","name":"handle","required":true,"schema":{"example":"@baqala.ai","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"handle":{"description":"The canonical handle","type":"string"},"level":{"maximum":3,"minimum":0,"type":"integer"},"lookalike_of":{"description":"The protected brand this handle resembles","type":["string","null"]},"rating":{"properties":{"average":{"type":"number"},"count":{"type":"integer"}},"type":["object","null"]},"trust_score":{"maximum":100,"minimum":0,"type":"integer"},"verified_business":{"properties":{"jurisdiction":{"type":"string"},"legal_name":{"type":"string"},"source":{"enum":["stripe_connect","lei","registry"],"type":"string"}},"type":["object","null"]}},"required":["handle","level","trust_score","verified_business","lookalike_of","rating"],"type":"object"}}},"description":"Trust summary"},"400":{"description":"Not an @handle"},"404":{"description":"Handle not resolvable"},"502":{"description":"Upstream resolve failed"},"503":{"description":"Trust not configured on this deployment (no node RPC)"}},"summary":"Trust summary for a handle: level, verified business, look-alike warning, purchase rating"}}},"servers":[{"description":"Production","url":"https://resolver.anha.ai"}]}