Contracts
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.
POST https://getamber.dev/api/v1/contracts
0.2 USDC on Base · payTo 0x74Dd76622fE346df084f5CDA7CcA3DD322c70174
Status: verified · payable
Operator badge: embed this endpoint's live status badge — it reads "Verified Payable" only while the probe record backs it.
Settlement: direct to the seller's payTo — 0% HIVE402 take
Payment routes
{
"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"
}{
"contract_id": "amb-2026-0001",
"created_at": "2026-10-29T12:00:00.000Z",
"handshake_url": "https://getamber.dev/api/v1/contracts/amb-2026-0001/handshake",
"next_step": "Contract created as draft. Optionally handshake first, then both parties must sign (ECDSA) to activate.",
"payment_method": "x402",
"reader_url": "https://getamber.dev/reader/9f2c4e8a1b7d3f6e0a5c9b2d8e4f1a7c3b6d0e9f2a5c8b1d4e7f0a3c6b9d2e5f?token=<share-token>",
"require_zk_identity": false,
"sha256_hash": "9f2c4e8a1b7d3f6e0a5c9b2d8e4f1a7c3b6d0e9f2a5c8b1d4e7f0a3c6b9d2e5f",
"sign_url": "https://getamber.dev/api/v1/contracts/amb-2026-0001/sign",
"status": "draft",
"visibility": "private"
}Script Master Labs LLC · SDVOSB · Kinston, NC · Terms · Refunds · Privacy · Contact
SML network: ScriptMasterLabs — the main site · SML Dual Market — the human storefront · VA Ratings — VA disability ratings, free for veterans
Agent intel 
| Trust score | 65 / 100 · breakdown |
|---|---|
| Probe uptime (30d) | 100.0% over 1 probes · daily |
| Avg 402 latency | 426 ms |
| Paid calls (30d, on-chain) | 0 calls · 0 buyers |
| Facilitator-reported (30d) | 2 calls · 2 payers (CDP Bazaar) |
How to call
POST https://getamber.dev/api/v1/contracts · input in body · spec from live-challenge
Input schema
{
"properties": {
"template": {
"type": "string",
"description": "Template slug, see GET /api/v1/templates"
},
"parameters": {
"type": "object",
"description": "Template parameters"
},
"principal_declaration": {
"type": "object",
"description": "Who the agent acts for"
},
"parent_contract_hash": {
"type": "string",
"description": "SHA-256 of a contract you created, which this one is created under (not for amendments: use POST /api/v1/contracts/{id}/amend)"
},
"visibility": {
"type": "string",
"enum": [
"private",
"metadata_only",
"public",
"encrypted"
]
}
},
"required": [
"template",
"parameters",
"principal_declaration"
]
}Output schema
{
"type": "object",
"properties": {
"contract_id": {
"type": "string",
"description": "Ambr contract id"
},
"sha256_hash": {
"type": "string",
"description": "SHA-256 binding the legal text and the JSON"
},
"status": {
"type": "string",
"enum": [
"draft",
"awaiting_principal_approval"
]
},
"visibility": {
"type": "string",
"enum": [
"private",
"metadata_only",
"public",
"encrypted"
]
},
"require_zk_identity": {
"type": "boolean"
},
"payment_method": {
"type": "string",
"enum": [
"x402",
"api_key"
]
},
"reader_url": {
"type": "string",
"description": "Read the contract (carries a share token when one was issued)"
},
"sign_url": {
"type": "string",
"description": "POST a wallet signature here"
},
"handshake_url": {
"type": "string",
"description": "Optional counterparty handshake before signing"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"next_step": {
"type": "string"
},
"principal_approval_required": {
"type": "boolean"
},
"approve_url": {
"type": "string",
"description": "Present when the principal must approve first"
}
},
"required": [
"contract_id",
"sha256_hash",
"status",
"reader_url",
"sign_url",
"created_at"
]
}curl -i -X POST 'https://getamber.dev/api/v1/contracts' \
-H 'content-type: application/json' -d '{"template":"a1-service-purchase","parameters":{"consumer_name":"Example Consumer","consumer_email":"consumer@example.com","provider_name":"Example Provider Ltd","provider_agent_id":"0x0000000000000000000000000000000000000002","service_description":"One month of market data via API","fee":20,"currency":"USDC","delivery_timeline":"Within 24 hours of payment","refund_policy":"Full refund within 14 days if not delivered","governing_law":"Singapore"},"principal_declaration":{"agent_id":"0x0000000000000000000000000000000000000001","principal_name":"Example Principal","principal_type":"company"}}'
Agents: POST https://hive402.scriptmasterlabs.com/mcp → route_task / proxy_call · SDK /sdk/hive402.mjs