{"openapi":"3.1.0","info":{"title":"Notary Protocol API","version":"0.1.0","description":"Cryptographic evidence verification for AI-agent transactions. Verification does not evaluate commercial or legal quality."},"servers":[{"url":"https://notary-protocol.notary-labs.workers.dev"}],"paths":{"/health":{"get":{"operationId":"health","responses":{"200":{"description":"Service is healthy"}}}},"/v1/capabilities":{"get":{"operationId":"getCapabilities","responses":{"200":{"description":"Machine-readable protocol versions, cryptography, limits and endpoints"}}}},"/v1/verify":{"post":{"operationId":"verifyEnvelope","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"/schemas/deal-envelope-0.1.json"}}}},"responses":{"200":{"description":"Evidence is valid","content":{"application/json":{"schema":{"$ref":"/schemas/notary-receipt-0.1.json"}}}},"422":{"description":"Evidence failed one or more verification checks","content":{"application/json":{"schema":{"$ref":"/schemas/notary-receipt-0.1.json"}}}}}}},"/v1/receipts/{id}":{"get":{"operationId":"getReceipt","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Stored receipt"},"404":{"description":"Receipt not found"}}}},"/v1/receipts/verify":{"post":{"operationId":"verifyReceipt","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"/schemas/notary-receipt-0.1.json"}}}},"responses":{"200":{"description":"Receipt signature and trusted notary key are valid"},"422":{"description":"Receipt verification failed"}}}},"/v1/notary-key":{"get":{"operationId":"getNotaryKey","responses":{"200":{"description":"Notary Ed25519 public key"}}}},"/v1/demo":{"get":{"operationId":"createDemoEnvelope","responses":{"200":{"description":"Fresh signed demo envelope"}}}},"/v1/stats":{"get":{"operationId":"getPublicStats","responses":{"200":{"description":"Anonymous aggregate activity for the last 30 days"}}}},"/.well-known/agent-card.json":{"get":{"operationId":"getA2AAgentCard","responses":{"200":{"description":"A2A agent card"}}}},"/a2a":{"post":{"operationId":"sendA2AMessage","responses":{"200":{"description":"Completed A2A task containing a NotaryReceipt artifact"}}}}}}