{"slug":"getamber-dev-api-v1-contracts-7784c5","title":"Ambr (ambr.run)","host":"getamber.dev","method":"POST","resource":"https://getamber.dev/api/v1/contracts","category":"company","description":"Ambr (ambr.run): create a Ricardian contract that an AI agent signs on behalf of its principal, a person or company. Call it when your agent agrees a deal with another party (an API or compute service, a purchase, a subscription, or a delegation of authority) and needs a signed written record. Retur","price_listed":0.2,"price_asked":null,"state":"effects","state_label":"Not tested: has real-world effects","checks_7d":0,"answered_7d":0,"latency_ms_median":null,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"parameters":{"consumer_email":"consumer@example.com","consumer_name":"Example Consumer","currency":"USDC","delivery_timeline":"Within 24 hours of payment","fee":20,"governing_law":"Singapore","provider_agent_id":"0x0000000000000000000000000000000000000002","provider_name":"Example Provider Ltd","refund_policy":"Full refund within 14 days if not delivered","service_description":"One month of market data via API"},"principal_declaration":{"agent_id":"0x0000000000000000000000000000000000000001","principal_name":"Example Principal","principal_type":"company"},"template":"a1-service-purchase"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"parameters":{"description":"Template parameters","type":"object"},"parent_contract_hash":{"description":"SHA-256 of a parent contract (amendments)","type":"string"},"principal_declaration":{"description":"Who the agent acts for","type":"object"},"template":{"description":"Template slug, see GET /api/v1/templates","type":"string"},"visibility":{"enum":["private","metadata_only","public","encrypted"],"type":"string"}},"required":["template","parameters","principal_declaration"]},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"properties":{"approve_url":{"description":"Present when the principal must approve first","type":"string"},"contract_id":{"description":"Ambr contract id","type":"string"},"created_at":{"format":"date-time","type":"string"},"handshake_url":{"description":"Optional counterparty handshake before signing","type":"string"},"next_step":{"type":"string"},"payment_method":{"enum":["x402","api_key"],"type":"string"},"principal_approval_required":{"type":"boolean"},"reader_url":{"description":"Read the contract (carries a share token when one was issued)","type":"string"},"require_zk_identity":{"type":"boolean"},"sha256_hash":{"description":"SHA-256 binding the legal text and the JSON","type":"string"},"sign_url":{"description":"POST a wallet signature here","type":"string"},"status":{"enum":["draft","awaiting_principal_approval"],"type":"string"},"visibility":{"enum":["private","metadata_only","public","encrypted"],"type":"string"}},"required":["contract_id","sha256_hash","status","reader_url","sign_url","created_at"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[],"description_full":"Ambr (ambr.run): create a Ricardian contract that an AI agent signs on behalf of its principal, a person or company. Call it when your agent agrees a deal with another party (an API or compute service, a purchase, a subscription, or a delegation of authority) and needs a signed written record. Returns legal text and machine-readable JSON bound by one SHA-256 hash, plus reader and sign links; the parties sign with their wallets. Templates: GET /api/v1/templates.","last_updated":"2026-10-29T13:04:45.312Z","schemes":["exact"]}