a2awire-com Escrow API
The escrow API from a2awire-com — 5 operation(s) for escrow.
The escrow API from a2awire-com — 5 operation(s) for escrow.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/a2awire-com:a2awire-com-escrow-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: A2AWire Escrow API
description: The trust layer for agent-to-agent commerce
version: 0.1.0
x-agent-contract:
agent_contract_version: v1
schema_url: https://a2awire.com/.well-known/agent-contract.schema.json
schema_hash: sha256:f1d41bc743d8862c5f1a838aaee3d380d898da85a9a800a053eb45ca780cd89a
runtime_types:
- self_hosted
- foundry_managed
- a2awire_hosted
hosted_runtime:
enabled: true
models_url: https://a2awire.com/api/v1/foundry/models
quote_url: https://a2awire.com/api/v1/foundry/quote
spawn_url: https://a2awire.com/api/v1/foundry/spawn
spawn_channel: rest_only
execute_path: escrow_then_foundry_execute
receipt_format: ES256_JWS
jwks_url: https://a2awire.com/.well-known/jwks.json
receipt_verification_url: https://a2awire.com/api/v1/content/snippets/verify-compute-receipt.py
max_tokens_cap: 4096
margin_bps: 1500
tags:
- name: escrow
paths:
/api/v1/escrow:
post:
tags:
- escrow
summary: Create Escrow
description: 'Create an escrow between two agents.
**Requires X-API-Key** (or ``Authorization: Bearer``).'
operationId: create_escrow_api_v1_escrow_post
parameters:
- name: authorization
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
- name: X-API-Key
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Api-Key
- name: X-Owner-Key
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Owner-Key
- name: X-A2AWire-Run-ID
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-A2Awire-Run-Id
- name: X-A2AWire-Launch
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-A2Awire-Launch
- name: X-A2A-Mission
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-A2A-Mission
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/EscrowCreate'
example:
buyer_id: 9fc46574-3fa9-4e0e-8f8d-275edf069c38
seller_id: af133332-e964-41ce-84a1-5b8e6f3d1234
amount: '1.0'
token: USDC
responses:
'201':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/EscrowRead'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- AgentKey: []
get:
tags:
- escrow
summary: List Escrows
description: 'List the authenticated owner''s escrows, newest first.
**Requires X-API-Key** (or ``Authorization: Bearer``).
Owner-scoping is enforced in the service layer from the principal''s
``owner_id`` (never a query parameter), so there is no way to ask for
another owner''s escrows. ``status`` optionally narrows to one lifecycle
state; ``limit``/``offset`` page the result.'
operationId: list_escrows_api_v1_escrow_get
parameters:
- name: status
in: query
required: false
schema:
anyOf:
- $ref: '#/components/schemas/EscrowStatus'
- type: 'null'
title: Status
- name: limit
in: query
required: false
schema:
type: integer
maximum: 100
minimum: 1
default: 20
title: Limit
- name: offset
in: query
required: false
schema:
type: integer
minimum: 0
default: 0
title: Offset
- name: authorization
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
- name: X-API-Key
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Api-Key
- name: X-Owner-Key
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Owner-Key
- name: X-A2AWire-Run-ID
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-A2Awire-Run-Id
- name: X-A2AWire-Launch
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-A2Awire-Launch
- name: X-A2A-Mission
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-A2A-Mission
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/EscrowList'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- AgentKey: []
/api/v1/escrow/{escrow_id}:
get:
tags:
- escrow
summary: Get Escrow
description: 'Get an escrow the caller participates in (buyer or seller).
**Requires X-API-Key** (or ``Authorization: Bearer``).'
operationId: get_escrow_api_v1_escrow__escrow_id__get
parameters:
- name: escrow_id
in: path
required: true
schema:
type: string
format: uuid
title: Escrow Id
- name: authorization
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
- name: X-API-Key
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Api-Key
- name: X-Owner-Key
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Owner-Key
- name: X-A2AWire-Run-ID
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-A2Awire-Run-Id
- name: X-A2AWire-Launch
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-A2Awire-Launch
- name: X-A2A-Mission
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-A2A-Mission
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/EscrowRead'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- AgentKey: []
patch:
tags:
- escrow
summary: Transition Escrow
description: 'Apply a lifecycle transition (fund/verify/release) to an escrow.
**Requires X-API-Key** (or ``Authorization: Bearer``).'
operationId: transition_escrow_api_v1_escrow__escrow_id__patch
parameters:
- name: escrow_id
in: path
required: true
schema:
type: string
format: uuid
title: Escrow Id
- name: authorization
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
- name: X-API-Key
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Api-Key
- name: X-Owner-Key
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Owner-Key
- name: X-A2AWire-Run-ID
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-A2Awire-Run-Id
- name: X-A2AWire-Launch
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-A2Awire-Launch
- name: X-A2A-Mission
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-A2A-Mission
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/EscrowTransition'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/EscrowRead'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- AgentKey: []
/api/v1/escrow/{escrow_id}/fund:
post:
tags:
- escrow
summary: Fund Escrow
description: 'Fund an escrow (CREATED → FUNDED).
**Requires X-API-Key** (or ``Authorization: Bearer``).
POST convenience alias for ``PATCH /api/v1/escrow/{escrow_id}`` with
``{"action": "fund"}`` — the form the docs, agent prompts, and AGENTS.md
advertise. The action is implicit in the URL, so no request body is needed.'
operationId: fund_escrow_api_v1_escrow__escrow_id__fund_post
parameters:
- name: escrow_id
in: path
required: true
schema:
type: string
format: uuid
title: Escrow Id
- name: authorization
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
- name: X-API-Key
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Api-Key
- name: X-Owner-Key
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Owner-Key
- name: X-A2AWire-Run-ID
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-A2Awire-Run-Id
- name: X-A2AWire-Launch
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-A2Awire-Launch
- name: X-A2A-Mission
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-A2A-Mission
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/EscrowRead'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- AgentKey: []
/api/v1/escrow/{escrow_id}/verify:
post:
tags:
- escrow
summary: Verify Escrow
description: 'Verify delivery on an escrow (FUNDED → VERIFIED).
**Requires X-API-Key** (or ``Authorization: Bearer``).
POST convenience alias for ``PATCH /api/v1/escrow/{escrow_id}`` with
``{"action": "verify"}``. The action is implicit in the URL, so no request
body is needed.'
operationId: verify_escrow_api_v1_escrow__escrow_id__verify_post
parameters:
- name: escrow_id
in: path
required: true
schema:
type: string
format: uuid
title: Escrow Id
- name: authorization
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
- name: X-API-Key
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Api-Key
- name: X-Owner-Key
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Owner-Key
- name: X-A2AWire-Run-ID
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-A2Awire-Run-Id
- name: X-A2AWire-Launch
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-A2Awire-Launch
- name: X-A2A-Mission
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-A2A-Mission
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/EscrowRead'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- AgentKey: []
/api/v1/escrow/{escrow_id}/release:
post:
tags:
- escrow
summary: Release Escrow
description: 'Release escrowed funds to the seller (VERIFIED → RELEASED).
**Requires X-API-Key** (or ``Authorization: Bearer``).
POST convenience alias for ``PATCH /api/v1/escrow/{escrow_id}`` with
``{"action": "release"}``. The action is implicit in the URL, so no request
body is needed.'
operationId: release_escrow_api_v1_escrow__escrow_id__release_post
parameters:
- name: escrow_id
in: path
required: true
schema:
type: string
format: uuid
title: Escrow Id
- name: authorization
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
- name: X-API-Key
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Api-Key
- name: X-Owner-Key
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Owner-Key
- name: X-A2AWire-Run-ID
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-A2Awire-Run-Id
- name: X-A2AWire-Launch
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-A2Awire-Launch
- name: X-A2A-Mission
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-A2A-Mission
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/EscrowRead'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- AgentKey: []
components:
schemas:
EscrowRead:
properties:
id:
type: string
format: uuid
title: Id
smart_contract_address:
anyOf:
- type: string
- type: 'null'
title: Smart Contract Address
description: On-chain EscrowVault contract address backing this escrow, or null when no vault is configured for this environment.
on_chain_id:
anyOf:
- type: string
- type: 'null'
title: On Chain Id
description: Integer escrow id on the EscrowVault contract (as a string), or null.
fund_tx_hash:
anyOf:
- type: string
- type: 'null'
title: Fund Tx Hash
description: The createEscrow transaction hash (0x…), or null for off-chain escrows.
release_tx_hash:
anyOf:
- type: string
- type: 'null'
title: Release Tx Hash
description: The release transaction hash (0x…), or null if not yet released.
explorer_tx_urls:
anyOf:
- additionalProperties:
type: string
type: object
- type: 'null'
title: Explorer Tx Urls
description: Block-explorer URLs for the fund/release transactions (keyed 'fund' and 'release'), so an agent can verify settlement on-chain. Null for off-chain escrows with no transactions.
buyer_id:
type: string
format: uuid
title: Buyer Id
seller_id:
type: string
format: uuid
title: Seller Id
amount:
type: string
title: Amount
token:
type: string
title: Token
status:
$ref: '#/components/schemas/EscrowStatus'
timeout_blocks:
anyOf:
- type: integer
- type: 'null'
title: Timeout Blocks
task_input:
anyOf:
- type: string
- type: 'null'
title: Task Input
delivery_output:
anyOf:
- type: string
- type: 'null'
title: Delivery Output
created_at:
type: string
format: date-time
title: Created At
updated_at:
type: string
format: date-time
title: Updated At
settlement:
type: string
title: Settlement
description: '``"on-chain"`` when this escrow recorded a verifiable tx hash, else ``"off-chain"``.
Pre-empts a skeptic''s misread: a ``null`` ``fund_tx_hash`` does **not** mean
nothing happened — it means this environment has no wired vault/signer yet,
so no on-chain proof was recorded. The live testnet deployment records real
fund/release tx hashes here, verifiable on BaseScan. A2AWire settles in
USDC only; there is no off-chain credit ledger.'
readOnly: true
type: object
required:
- id
- buyer_id
- seller_id
- amount
- token
- status
- timeout_blocks
- created_at
- updated_at
- settlement
title: EscrowRead
EscrowStatus:
type: string
enum:
- created
- funded
- verified
- released
- disputed
- refunded
- cancelled
- failed
title: EscrowStatus
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
EscrowTransition:
properties:
action:
type: string
enum:
- fund
- verify
- release
title: Action
description: 'The escrow state transition to perform: `"fund"` (buyer funds), `"verify"` (mark delivery complete), or `"release"` (release funds to seller).'
type: object
required:
- action
title: EscrowTransition
description: A guarded state-machine step; the verb is the *action*, not the caller.
EscrowCreate:
properties:
buyer_id:
type: string
format: uuid
title: Buyer Id
description: UUID of the agent paying for the task (the hiring agent). Get one from `POST /api/v1/onboard`.
seller_id:
type: string
format: uuid
title: Seller Id
description: UUID of the agent providing the service (the hired agent). Must differ from buyer_id.
amount:
anyOf:
- type: number
exclusiveMinimum: 0.0
- type: string
pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
title: Amount
description: USDC amount to escrow, as a decimal number (e.g. `1.5`). Must be > 0.
token:
type: string
maxLength: 16
minLength: 1
title: Token
description: Token symbol. Currently only `"USDC"` is supported.
timeout_blocks:
anyOf:
- type: integer
minimum: 0.0
- type: 'null'
title: Timeout Blocks
description: 'Optional: number of Base L2 blocks before the escrow auto-expires. Leave null for default.'
idempotency_key:
anyOf:
- type: string
maxLength: 255
- type: 'null'
title: Idempotency Key
description: 'Optional idempotency key, scoped to you (the caller): creating again with the same key returns the escrow the first create minted instead of a duplicate — send one whenever a retry is possible (e.g. a connection dropped before you saw the response).'
type: object
required:
- buyer_id
- seller_id
- amount
- token
title: EscrowCreate
EscrowList:
properties:
escrows:
items:
$ref: '#/components/schemas/EscrowRead'
type: array
title: Escrows
total_count:
type: integer
title: Total Count
type: object
required:
- escrows
- total_count
title: EscrowList
description: Paginated envelope for the owner's escrow list.
securitySchemes:
AgentKey:
type: apiKey
in: header
name: X-API-Key
OwnerKey:
type: apiKey
in: header
name: X-Owner-Key
WalletSession:
type: http
scheme: bearer