{"openapi":"3.1.0","info":{"title":"Agent Registrar Broker Protocol API","version":"2.1.1","description":"Public HTTP discovery, verification, receipt, and abuse-reporting endpoints for the Agent Registrar identity broker (Agent Identity Protocol v2.1.1, wire version 2.0). AI agents connect over the remote Streamable HTTP MCP server at https://agentregistrar.dev/mcp (authenticated via OAuth 2.1 discovered at /.well-known/oauth-protected-resource).","contact":{"name":"Agent Registrar Security & Support","email":"privacy@agentregistrar.dev","url":"https://docs.agentregistrar.dev/"},"license":{"name":"Apache-2.0 (Specification)","url":"https://www.apache.org/licenses/LICENSE-2.0"}},"servers":[{"url":"https://agentregistrar.dev","description":"Production identity broker"}],"components":{"schemas":{"ErrorResponse":{"type":"object","required":["error","error_description","code"],"properties":{"error":{"type":"string","description":"Short error category."},"error_description":{"type":"string","description":"Human- and agent-readable explanation and resolution hint."},"code":{"type":"string","description":"Stable machine-readable error code."}}},"BrokerMetadata":{"type":"object","required":["issuer","jwks_uri","attestation_status_uri","abuse_endpoint","protocol_versions","contact"],"properties":{"issuer":{"type":"string","format":"uri"},"jwks_uri":{"type":"string","format":"uri"},"attestation_status_uri":{"type":"string","format":"uri"},"abuse_endpoint":{"type":"string","format":"uri"},"protocol_versions":{"type":"array","items":{"type":"string"}},"contact":{"type":"string"}}},"JwksDocument":{"type":"object","required":["keys"],"properties":{"keys":{"type":"array","items":{"type":"object","required":["kty","crv","kid","x"],"properties":{"kty":{"type":"string"},"crv":{"type":"string"},"kid":{"type":"string"},"alg":{"type":"string"},"use":{"type":"string"},"x":{"type":"string"}}}}}},"ProviderVerificationResponse":{"type":"object","required":["attestation"],"properties":{"attestation":{"type":"string","description":"Compact Ed25519 JWS provider attestation token."}}},"AttestationStatusResponse":{"type":"object","required":["status_token"],"properties":{"status_token":{"type":"string","description":"Compact Ed25519 JWS attestation status token."}}},"SignupReceiptRequest":{"type":"object","required":["signup_token"],"properties":{"signup_token":{"type":"string","description":"Provider-signed Contract E/F signup receipt JWS."},"rp_attestation":{"type":"string","description":"Optional historical provider attestation JWS covering the receipt signing key."}}},"SignupReceiptResponse":{"type":"object","required":["signup_id","deduplicated"],"properties":{"signup_id":{"type":"string"},"deduplicated":{"type":"boolean"}}},"AbuseReportRequest":{"type":"object","required":["rp_attestation","report"],"properties":{"rp_attestation":{"type":"string","description":"Active provider attestation JWS."},"report":{"type":"string","description":"Provider-signed Contract D.2 abuse report JWS."}}},"AbuseReportResponse":{"type":"object","required":["case_id","status"],"properties":{"case_id":{"type":"string"},"status":{"type":"string"}}}}},"paths":{"/.well-known/agent-broker.json":{"get":{"operationId":"getBrokerMetadata","summary":"Get broker discovery metadata","description":"Returns the Broker's public discovery document with the issuer, JWKS URI, attestation status URI, abuse endpoint, supported protocol versions, and security contact. Agents and relying parties fetch it to discover how to verify Agent Identity assertions and report abuse.","responses":{"200":{"description":"Broker discovery metadata.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrokerMetadata"}}}},"400":{"description":"The request was malformed or failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"The request was not authenticated or its proof was rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"The requested resource or record was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests; retry after the indicated delay.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The broker could not process the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/.well-known/jwks.json":{"get":{"operationId":"getBrokerJwks","summary":"Get broker JSON Web Key Set","description":"Returns the public JSON Web Key Set used to verify Agent Identity assertions, provider attestations, and attestation status tokens offline. The current signing key is listed first, followed by retained public keys.","responses":{"200":{"description":"Public JSON Web Key Set.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JwksDocument"}}}},"400":{"description":"The request was malformed or failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"The request was not authenticated or its proof was rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"The requested resource or record was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests; retry after the indicated delay.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The broker could not process the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/broker/provider-verification":{"get":{"operationId":"getProviderVerification","summary":"Get a provider attestation","description":"Returns the current broker-managed attestation for a relying party origin and service audience. Public and read-only; negative responses are not cached. The token is a compact Ed25519 JWS and is never logged or echoed in an error.","parameters":[{"name":"origin","in":"query","required":true,"description":"Canonical HTTPS origin of the relying party service.","schema":{"type":"string"}},{"name":"audience","in":"query","required":true,"description":"Service audience identifier from /.well-known/agent-signup.json.","schema":{"type":"string"}}],"responses":{"200":{"description":"Current provider attestation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderVerificationResponse"}}}},"400":{"description":"The request was malformed or failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"The request was not authenticated or its proof was rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"The requested resource or record was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests; retry after the indicated delay.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The broker could not process the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/broker/attestation-status":{"get":{"operationId":"getAttestationStatus","summary":"Get attestation status","description":"Returns a signed status token for an attestation identifier issued by the Broker. Public and read-only; the status token lets a relying party check suspension or revocation without provider data.","parameters":[{"name":"jti","in":"query","required":true,"description":"Attestation token identifier (rpa_...).","schema":{"type":"string"}}],"responses":{"200":{"description":"Signed attestation status token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttestationStatusResponse"}}}},"400":{"description":"The request was malformed or failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"The request was not authenticated or its proof was rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"The requested resource or record was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests; retry after the indicated delay.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The broker could not process the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/broker/signup-receipt":{"post":{"operationId":"recordProviderSignupReceipt","summary":"Record a signup receipt","description":"Verifies a provider-signed signup receipt, matches it to the delegated terms acceptance, and records an idempotent proof. Returns 201 when the receipt is newly recorded and 200 when the same receipt is replayed.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignupReceiptRequest"}}}},"responses":{"200":{"description":"Signup receipt already recorded (deduplicated).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignupReceiptResponse"}}}},"201":{"description":"Signup receipt recorded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignupReceiptResponse"}}}},"400":{"description":"The request was malformed or failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"The request was not authenticated or its proof was rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"The requested resource or record was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests; retry after the indicated delay.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The broker could not process the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/broker/report-abuse":{"post":{"operationId":"reportAgentAbuse","summary":"Report agent abuse","description":"Accepts a provider-signed abuse report authenticated by an active provider attestation and returns a case identifier and status. The report is verified before a case is recorded.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AbuseReportRequest"}}}},"responses":{"201":{"description":"Abuse report accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AbuseReportResponse"}}}},"400":{"description":"The request was malformed or failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"The request was not authenticated or its proof was rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"The requested resource or record was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests; retry after the indicated delay.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The broker could not process the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}}}