request_authorization({
mandate_contents:
flightMandates,
handoff: {
method: "return_url"
}
})
AP2 payment
authorization.
The AP2 payment authorization sidecar for autonomous agents. Send users an approval link. Get back signed AP2 Mandates.
Agent Payments Protocol · MCP · HTTP API
Two MCP tool calls.
Delegate the AP2 payment authorization flow to AP2.bot instead of building it yourself.
request_authorization
get_authorization
get_authorization({
authorization_id:
flightAuthorizationId
})
MANDATE DELEGATION
Inside
AP2.bot.
One integration handles the approval handoff, wallet flow, and signed result.
Keep approval tied to the checkout.
Send the Checkout and Payment Mandate Content once. AP2.bot holds the exact merchant-signed checkout for the life of the authorization session, so the user reviews—and the wallet signs—the same purchase your agent requested. Your agent can move on while that human decision is pending.
Reach the user without owning a frontend.
Have your agent display the returned approval URL, or let AP2.bot send it by SMS or email. A terminal agent, voice assistant, scheduled job, or backend service gets a direct route to human approval—without building a checkout UI, a messaging workflow, or a tool call that waits for the user.
Skip the wallet plumbing.
AP2.bot builds the OpenID4VP presentation request and handles the Digital Credentials API integration. The user’s wallet presents the merchant, checkout, amount, and selected payment instrument, then collects authentication and approval. The wallet—not AP2.bot—signs both AP2 Mandates.
Get one predictable result.
AP2.bot checks the wallet response against the original checkout and session challenge, then normalizes the signed Checkout and Payment Mandates for retrieval. Your agent gets a consistent authorization state and result instead of carrying wallet-specific response handling in its own code.
AP2 payment authorization sidecar
Add AP2 payment authorization to your agent.
Send users an approval link. Get back signed AP2 Mandates.