A2A Protocol

Agent Payments
Protocol (AP2)

Secure, trusted payments between AI agents. Built on A2A and MCP protocols, AP2 enables agent-led commerce with cryptographic mandates and verifiable credentials.

AP2

What is AP2 Protocol?

AP2 (Agent Payments Protocol) is an open protocol that enables secure, trusted payments between AI agents. Built as an extension of the Agent2Agent (A2A) protocol and Model Context Protocol (MCP), it establishes a payment-agnostic framework for users, merchants, and payments providers to transact with confidence.

Cryptographic Mandates

Tamper-proof, cryptographically-signed digital contracts that serve as verifiable proof of user instructions.

Payment Agnostic

Supports different payment types from credit cards to stablecoins and real-time bank transfers.

Agent Interoperability

Enables seamless collaboration between AI agents across different platforms and frameworks.

Real-time & Delegated

Supports both real-time purchases and delegated tasks where agents act autonomously.

Key Features

AP2 Protocol provides a secure, trusted foundation for agent-led commerce with comprehensive features

Cryptographic Mandates

Tamper-proof, cryptographically-signed digital contracts that serve as verifiable proof of user instructions and authorization

Payment Agnostic

Supports various payment methods from traditional credit cards to cryptocurrencies and real-time bank transfers

Universal Protocol

Open standard that works across different platforms, frameworks, and payment systems for maximum interoperability

Real-time & Delegated

Supports both real-time purchases with human approval and delegated tasks where agents act autonomously

Agent Collaboration

Enables secure transactions between AI agents, creating new possibilities for multi-agent commerce scenarios

Audit Trail

Complete non-repudiable audit trail from intent to cart to payment, ensuring accountability and transparency

Enterprise Security

Built with enterprise-grade security, supporting verifiable credentials and industry-standard authentication

Scalable Framework

Designed to scale from simple purchases to complex multi-agent commerce scenarios and B2B applications

How AP2 Works

AP2 builds trust through Mandates—tamper-proof, cryptographically-signed digital contracts that serve as verifiable proof of user instructions. These mandates address two primary ways users shop with agents.

Real-time Purchases (Human Present)

When you ask an agent to find products, your request is captured in an Intent Mandate. After the agent presents a cart, your approval signs a Cart Mandate, creating a secure, unchangeable record of the exact items and price.

sequenceDiagram
    participant User
    participant Agent
    participant Merchant
    participant PaymentProvider
    
    User->>Agent: "Find me white running shoes"
    Agent->>Agent: Create Intent Mandate
    Agent->>Merchant: Search for shoes
    Merchant->>Agent: Return product options
    Agent->>User: Present cart with shoes
    User->>Agent: Approve purchase
    Agent->>Agent: Sign Cart Mandate
    Agent->>PaymentProvider: Process payment with mandates
    PaymentProvider->>Merchant: Complete transaction
    Merchant->>Agent: Confirm purchase
    Agent->>User: Purchase completed

Delegated Tasks (Human Not Present)

When you delegate a task like "Buy concert tickets the moment they go on sale," you sign a detailed Intent Mandate upfront. This mandate specifies rules of engagement—price limits, timing, and conditions— allowing the agent to automatically generate a Cart Mandate when conditions are met.

sequenceDiagram
    participant User
    participant Agent
    participant Merchant
    participant PaymentProvider
    
    User->>Agent: "Buy concert tickets when on sale"
    User->>Agent: Sign detailed Intent Mandate
    Note over Agent: Agent monitors for tickets
    Agent->>Merchant: Check ticket availability
    Merchant->>Agent: Tickets available
    Agent->>Agent: Auto-generate Cart Mandate
    Agent->>PaymentProvider: Process payment with mandates
    PaymentProvider->>Merchant: Complete transaction
    Merchant->>Agent: Confirm purchase
    Agent->>User: Purchase completed

Authorization

Proves that a user gave an agent the specific authority to make a particular purchase

Authenticity

Enables merchants to verify that an agent's request accurately reflects the user's true intent

Accountability

Determines accountability if a fraudulent or incorrect transaction occurs through complete audit trail

Unlocking New Commerce Experiences

AP2's flexible design provides a foundation to support both simple and entirely new commercial models. Here are some examples of how AP2 enables innovative agent-led commerce scenarios.

Smarter Shopping

A customer discovers a winter jacket they want is unavailable in a specific color, so they tell their agent: 'I really want this jacket in green, and I'm willing to pay up to 20% more for it.' The agent monitors prices and availability and automatically executes a secure purchase the moment that specific variant is found.

Personalized Offers

A shopper tells their agent they want a new bicycle for an upcoming trip from a specific merchant. Their agent communicates this information—which includes the trip's date—to the merchant, whose own agent can respond by creating a custom, time-sensitive bundle offer.

Coordinated Tasks

A user is planning a weekend trip and tells their agent: 'Book me a round-trip flight and a hotel in Palm Springs for the first weekend of November, with a total budget of $700.' The agent can interact with both airline and hotel agents and execute both cryptographically-signed bookings simultaneously.

Why AP2 Matters

AP2 addresses critical questions that arise when AI agents transact on behalf of users

Prevents Fragmentation

Provides a common language for secure, compliant transactions between agents and merchants

Universal Payment Support

Supports different payment types from credit cards to stablecoins and real-time bank transfers

Scalable & Secure

Ensures consistent, secure, and scalable experience for users and merchants while providing financial institutions with clarity for risk management

Trusted by Industry Leaders

We're collaborating with a diverse group of more than 60 organizations to help shape the future of agentic payments, including leading payments providers, technology companies, and financial institutions.

Adyen
American Express
Ant International
Coinbase
Etsy
Forter
Intuit
JCB
Mastercard
Mysten Labs
PayPal
Revolut
Salesforce
ServiceNow
UnionPay International
Worldpay
1Password
MetaMask
Ethereum Foundation
Lightspark
ManusAI
Nexi
Okta
Payoneer
PwC
Shopee
JusPay
KCP
Mesh

Join the growing ecosystem of organizations building the future of agentic commerce

Contribute on GitHub

AP2 Protocol Frequently Asked Questions

Everything you need to know about the AP2 Protocol and agent-led commerce

What is the AP2 Protocol?

The AP2 Protocol (Agent Payments Protocol) is an open protocol developed by Google to establish a secure, interoperable framework for AI agent-initiated payment transactions. AP2 can be used as an extension of the Agent2Agent (A2A) protocol and Model Context Protocol (MCP), establishing a payment-agnostic framework for users, merchants, and payment providers to transact with confidence across all types of payment methods.

Why is the AP2 Protocol needed?

Traditional payment systems assume humans directly click 'buy' on trusted surfaces, but the rise of AI agents breaks this fundamental assumption. AP2 addresses three critical questions: 1) Authorization - proving users gave agents specific authority for particular purchases; 2) Authenticity - ensuring merchants can verify agent requests accurately reflect user intent; 3) Accountability - determining responsibility when fraudulent or incorrect transactions occur.

What is the core architecture of the AP2 Protocol?

AP2 uses a role-based architecture with key roles including: Users (individuals delegating tasks), User Agents/Shopping Agents (AI interfaces users directly interact with), Credential Providers (specialized entities managing payment credentials), Merchant Endpoints (interfaces or agents representing merchants), Merchant Payment Processors (entities building final transaction authorization messages), and Networks and Issuers.

What are Verifiable Credentials in the AP2 Protocol?

Verifiable Credentials (VCs) are AP2's core innovation - tamper-proof, portable, cryptographically-signed digital objects serving as transaction building blocks. There are three main types: Cart Authorizations (foundational credentials when users are present), User-Signed Intent Authorizations (for when users are absent), and Payment Authorizations (providing visibility to payment networks and issuers about AI agent transactions).

What payment methods does the AP2 Protocol support?

AP2 is designed as a payment-agnostic protocol supporting a wide range of payment types including traditional credit and debit cards, real-time bank transfers, digital wallets, and emerging digital payment methods like stablecoins and cryptocurrencies. This flexible design ensures future adaptability, with the A2A x402 extension supporting agent-based crypto payments through collaboration with Coinbase, Ethereum Foundation, MetaMask, and other organizations.

How does AP2 handle 'human present' vs 'human absent' transaction scenarios?

AP2 supports two main transaction modes: 1) Human Present - when users make real-time requests like 'find me new white running shoes,' an Intent Authorization is created, and after the agent presents a cart, user approval signs a Cart Authorization; 2) Human Absent - when users delegate tasks like 'buy concert tickets the moment they go on sale,' users pre-sign detailed Intent Authorizations specifying price limits, timing, and conditions, allowing agents to auto-generate Cart Authorizations when conditions are met.

How does AP2 ensure transaction security and prevent agent 'hallucination'?

AP2 addresses this risk through the principle of 'Verifiable Intent, Not Inferred Action.' Transactions must be anchored to deterministic, non-repudiable proof of intent from all parties, such as user-signed cart or intent authorizations, rather than relying solely on interpreting language models' probabilistic and ambiguous outputs. This creates a complete evidence chain from intent to cart to payment, forming an irrefutable audit trail.

How do I get started with the AP2 Protocol?

Developers can access the AP2 Protocol's public GitHub repository to review complete technical specifications, documentation, and reference implementations. You can use Google's ADK (Agent Development Kit) and Agent Builder, or choose any other platform to build agents. Any agent on any framework (like LangGraph, AG2, or CrewAI) or runtime can implement the AP2 Protocol. Example agents built around the core AP2 Python library are currently available.

How does AP2 handle dispute resolution?

AP2 provides a clear, predictable framework for handling disputed transactions through an authenticated, evidence-based system for assigning responsibility. When disputes occur, network arbitrators (like card networks) can obtain additional information from merchants, including carts, hashes, and cart/intent authorizations along with existing evidence. Arbitrators can determine whether users approved the final cart and whether merchants delivered what users requested based on evidence available within the protocol.

How does AP2 integrate with existing payment ecosystems?

AP2 is designed to be compatible with existing payment infrastructure by extending the existing Agent-to-Agent (A2A) protocol and Model Context Protocol (MCP). It doesn't require any changes to existing risk/fraud handling systems but provides additional signals and data points to help payment networks, issuers, and merchants better assess and manage risk. All existing user challenge mechanisms (like 3DS2 or OTP) remain available for agent transactions.

Which companies support the AP2 Protocol?

AP2 is supported by more than 60 organizations including Adyen, American Express, Ant International, Coinbase, Etsy, Forter, Intuit, JCB, Mastercard, Mysten Labs, PayPal, Revolut, Salesforce, ServiceNow, UnionPay International, Worldpay, and more. These partners span payment processors, financial institutions, technology companies, and e-commerce platforms, demonstrating broad industry support for building a secure, interoperable agent payment ecosystem.

What is the future roadmap for the AP2 Protocol?

AP2 follows a phased development approach: V0.1 focuses on core architecture and most common use cases, supporting 'pull' payment methods, human-present scenarios, and user/merchant-initiated upgrade challenges; V1.x will expand protocol capabilities including full 'push' payment support, human-absent scenarios, and MCP-based implementations; long-term vision includes native support for complex multi-merchant transaction topologies and real-time negotiation between buyer and seller agents. The protocol will continue evolving through an open, collaborative process.

Still have questions?

Join our AP2 Protocol community discussions or explore the comprehensive documentation

Ready to Build the Future of Agent Commerce?

Join the growing ecosystem of developers, merchants, and payment providers building secure, trusted agent-led commerce experiences.

AP2 Protocol is open source and available under the Apache 2.0 License

For Developers

Get started with AP2 Protocol today. Access comprehensive documentation, reference implementations, and developer tools to build secure agent-led commerce experiences.

Technical Specification

Complete technical documentation and API reference for AP2 Protocol implementation

Read Docs

Reference Implementation

Open source reference implementations and examples to get started quickly

View Code

SDK & Libraries

Developer tools and SDKs for integrating AP2 into your applications

Get SDK

Why Choose AP2?

AP2 Protocol provides everything you need to build secure, trusted agent-led commerce

Cryptographic Security

Built-in cryptographic mandates and verifiable credentials

Universal Compatibility

Works with any payment method and platform

Easy Integration

Simple APIs and comprehensive documentation

Ready to Get Started?

Join the community of developers building the future of agent-led commerce