Operations 2
POST
/api/ap2/trusted-surface
Inspect a merchant checkout or issue an explicitly approved direct mandate pair
#
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/suedeai-ai:suedeai-ai-ap2-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. 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: Suede Agent Studio public agent Ap2 API
version: 0.3.0
description: Public catalog, A2A 1.0 HTTP+JSON execution, discovery documents, portable templates, and machine-run endpoints for agents published from Suede Agent Studio. Priced live runs use x402; explicit dry-runs and free agents can run without payment.
x-guidance: Use the concrete paid service routes under /api/agents/<slug>/run when an operation includes x-payment-info. Send the documented JSON input, follow the x402 HTTP 402 challenge, and retry with PAYMENT-SIGNATURE. Use dryRun only for explicitly non-settling previews.
contact:
name: Suede Agent Studio support
email: support@suedeai.ai
url: https://agents.suedeai.ai/contact
servers:
- url: https://agents.suedeai.ai
tags:
- name: Ap2
paths:
/ap2/authorize:
get:
operationId: openAp2TrustedSurface
summary: Open the authenticated AP2 payment consent surface
responses:
'200':
description: HTML Trusted Surface for checkout review and explicit consent.
tags:
- Ap2
/api/ap2/trusted-surface:
post:
operationId: useAp2TrustedSurface
summary: Inspect a merchant checkout or issue an explicitly approved direct mandate pair
description: Same-origin authenticated endpoint. Inspect verifies and returns exact payment terms; authorize binds explicit consent to that checkout hash and payer wallet.
requestBody:
required: true
content:
application/json:
schema:
oneOf:
- type: object
properties:
operation:
type: string
const: inspect
checkoutJwt:
type: string
minLength: 1
maxLength: 32768
required:
- operation
- checkoutJwt
additionalProperties: false
- type: object
properties:
operation:
type: string
const: authorize
checkoutJwt:
type: string
minLength: 1
maxLength: 32768
payerAddress:
type: string
pattern: ^0x[0-9a-fA-F]{40}$
consent:
type: object
properties:
accepted:
type: boolean
const: true
checkoutHash:
type: string
pattern: ^[A-Za-z0-9_-]{43}$
required:
- accepted
- checkoutHash
additionalProperties: false
required:
- operation
- checkoutJwt
- payerAddress
- consent
additionalProperties: false
responses:
'200':
description: Verified checkout summary or signed direct mandate pair.
'400':
description: Request failed.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Request failed.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Request failed.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
description: Request failed.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'415':
description: Request failed.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Request failed.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'503':
description: Request failed.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
tags:
- Ap2
components:
schemas:
Error:
type: object
properties:
error:
type: string
message:
type: string
required:
- error
additionalProperties: true
x-suede-resource-contracts:
extensionUri: https://agents.suedeai.ai/extensions/resource/v1
contracts: []
x-suede-ap2:
protocol: AP2
version: '0.2'
profile: merchant
status: experimental
mode: optional
extensionUri: https://github.com/google-agentic-commerce/ap2/v1
settlementRail: x402-v2
negotiationHeader: A2A-Extensions
compatibilityHeader: X-A2A-Extensions
mandateDataKeys:
- ap2.mandates.CheckoutMandateSdJwt
- ap2.mandates.PaymentMandateSdJwt
merchantReceiptDataKey: ap2.CheckoutReceipt
sellerSubprofile:
trustedIssuerAlgorithms: configured allowlist
rootTrustResolution: pinned-exact-or-unique-compatible-key
acceptedSdAlgorithms:
- sha-256
delegatedKey:
kty: EC
crv: P-256
alg: ES256
kidMember: optional
algMember: optional
requiredClaims:
- iat
- exp
- aud
- nonce
autonomousRootRequiredClaims:
- iat
- exp
maximumDelegationHops: 1
supportedCheckoutConstraints:
- checkout.allowed_merchants
- checkout.line_items
supportedPaymentConstraints:
- payment.allowed_payees
- payment.allowed_payment_instruments
- payment.allowed_pisps
- payment.amount_range
- payment.reference
- payment.execution_date
unknownConstraints: rejected
statefulOpenPaymentConstraints: false
openPaymentPresetClaims:
- payee
- payment_amount
- payment_instrument
- pisp
- execution_date
- risk_data
openPaymentPresetRule: exact-match-closed
paymentInstrumentId: CAIP-10 eip155:8453:<payer-address>
receiptReferenceRule: sd-hash-final-sd-jwt
trustedSurface:
issuer: https://agents.suedeai.ai/ap2/trusted-surface
authorizeUrl: https://agents.suedeai.ai/ap2/authorize
apiUrl: https://agents.suedeai.ai/api/ap2/trusted-surface
jwksUrl: https://agents.suedeai.ai/.well-known/ap2-trusted-surface-jwks.json
requiredForPricedLive: false
documentationUrl: https://agents.suedeai.ai/docs/payments#ap2