AP2 - Agent Payments Protocol Documentation (original) (raw)

Agent Payments Protocol Logo

What is AP2?

Agent Payments Protocol (AP2) is an open protocol for the emerging Agent Economy. It's designed to enable secure, reliable, and interoperable agent commerce for developers, merchants, and the payments industry. The protocol is available as an extension for the open-sourceAgent2Agent (A2A) protocol, with more integrations in progress.

Build agents with**ADK Logo ADK** (or any framework), equip with**MCP Logo MCP** (or any tool), collaborate via**A2A Logo A2A, and useAP2 Logo AP2** to secure payments with gen AI agents.



Google Cloud announcement of AP2
Explore the detailed technical definition of the AP2 protocol
Agent Payments Protocol Specification
Review key topics
Overview
Core Concepts
AP2 and UCP
AP2, A2A and MCP
AP2 and x402
Privacy and Security


Why an Agent Payments Protocol is Needed

Today’s payment systems assume a human is directly clicking "buy" on a trusted website. When an autonomous agent initiates a payment, this core assumption is broken, leading to critical questions that current systems cannot answer:

This ambiguity creates a crisis of trust that could significantly limit adoption. Without a common protocol, we risk a fragmented ecosystem of proprietary payment solutions, which would be confusing for users, expensive for merchants, and difficult for financial institutions to manage. AP2 aims to create a common language for any compliant agent to transact securely with any compliant merchant globally.


Core Principles and Goals

The Agent Payments Protocol is built on fundamental principles designed to create a secure and fair ecosystem:


Key Concept: Verifiable Digital Credentials (VDCs)

The Agent Payments Protocol engineers trust into the system using verifiable digital credentials (VDCs). VDCs are tamper-evident, cryptographically signed digital objects that serve as the building blocks of a transaction. They are the data payloads that agents create and exchange. There are three primary types:

These VDCs operate within a defined role-based architecture and can handle both "human-present" and "human-not-present" transaction types.

Learn more in Core Concepts.

See it in action


A sample demonstrating a human-present transaction using traditional card payments.
Go to sample * Human Present x402

A sample demonstrating a human-present transaction using the x402 protocol for payments.
Go to sample * Digital Payment Credentials Android

A sample demonstrating the use of digital payment credentials on an Android device.
Go to sample


Get Started and Build with Us

The Agent Payments Protocol provides a mechanism for secure payments, and it's part of a larger picture to unlock the full potential of agent-enabled commerce. We actively seek your feedback and contributions to help build the future of commerce.

The complete technical specification, documentation, and reference implementations are hosted in our public GitHub repository.

You can get started today by:

Visit the GitHub Repository