Ambr (ambr.run)
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.
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
POST https://getamber.dev/api/v1/contracts
| Category | Company and compliance |
|---|---|
| Provider host | getamber.dev |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 1 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
We never call tools that send, buy, move money or file anything, not even without paying.
Example input (from the provider)
{
"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"
}
Promised output schema (from the provider)
{
"$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"
}