AP2 Mandate Gateway
wever_ap2-mandate-gatewayPaid URL: 0.10 USDC per call on Base; 10 signed-wallet free calls shared over rolling 30 days. Read the backend 402 body for x402 terms. Verifies allowlisted AP2 direct closed-checkout mandates, binds the presenter to the holder wallet, rejects expiry and replay, and durably consumes each mandate once. Operating boundary: Submit a signed AP2 direct checkout mandate from a trusted provider. Sign wallet ownership proof as its holder. The gateway checks expiry and replay, binds the holder and records one-time consumption. Agents call the gateway; humans review the exact checkout intent and sign in their wallet. POST /api/ap2-mandate-gateway. Existing product credentials, signed mandates, and single-use action grants remain required where applicable. This adapter grants no authority and never supplies server credentials. This gateway verifies only its published AP2 direct closed-checkout profile, requires a trusted issuer and holder wallet proof, and consumes the mandate once. It does not execute the checkout or transfer funds. Start at /api/ap2-contract and /api/ap2-challenge.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"mode": "<mode>",
"presentation": "<presentation>",
"challenge_token": "<challenge_token>"
},
"name": "wever_ap2-mandate-gateway"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| presentation | Yes | ||
| challenge_token | Yes |