Pay
Prepare an x402 payment from a 402 challenge
Send the exact bytes the paywall served. The vault parses them, pins the amount that will actually be signed (not the maxAmountRequired ceiling), computes the digest a person will authorize, and stores the preimage so the authorize page renders from what the vault saw rather than what the caller claims. authorization in the response says what the payment needs next: allow, require_passkey, require_grant, or deny: <reason>.
post/v1/agents/{agent_id}/pay/prepare
Request
- Base URL: https://api.1claw.co
- URL: https://api.1claw.co/v1/agents/{agent_id}/pay/prepare
- Auth: HTTP bearer
Path parameters
agent_idstring uuid required
Request body
Example request
{
"method": "GET"
}Response
Session created; digest and quote returned
Changes
No recorded changes to this operation across all 1 revision of this API.