Stripe Proposes Machine Payments Protocol: HTTP 402 & Scoped Tokens for AI Agent Payments

Stripe Proposes Machine Payments Protocol: HTTP 402 & Scoped Tokens for AI Agent Payments

Stripe's open Machine Payments Protocol (MPP) enables AI agents to autonomously discover, negotiate, and complete payments using HTTP 402 status codes and scoped payment tokens. It supports both fiat and crypto rails, eliminating the need for human-in-the-loop payment flows.

4h ago·3 min read·10 views·via @akshay_pachaar
Share:

What Happened

Stripe has proposed an open specification called the Machine Payments Protocol (MPP), designed to enable AI agents and autonomous software to make payments without human intervention. The protocol repurposes the long-dormant HTTP 402 status code ("Payment Required") to initiate a standardized machine-to-machine payment negotiation. The full specification is published at mpp.dev and has been submitted to the IETF as a proposed standard HTTP authentication scheme.

How the Protocol Works

The core flow is a six-step exchange between an AI agent and a paid API service:

  1. Task Delegation: A developer delegates a task to an agent.
  2. API Request: The agent requests a service from a paid API.
  3. Payment Request: The API responds with HTTP 402 Payment Required, a status code defined in HTTP/1.0 but rarely used. This signals that payment is needed to proceed.
  4. Terms Discovery: The 402 response includes machine-readable payment terms: amount, currency, and accepted payment methods.
  5. Payment & Retry: The agent fulfills the payment and retries the original request, attaching cryptographic proof of payment.
  6. Service Delivery: The server verifies the proof and responds with 200 OK and the requested service/data, plus a receipt.

The entire exchange is autonomous, requiring no redirects to payment pages, pop-ups, or human confirmation.

Technical Details: Payment Rails & Sessions

MPP abstracts two interchangeable payment rails:

  • Fiat Rail: The agent pays using traditional methods like credit cards or buy-now-pay-later services. Stripe issues a scoped token for the transaction, locking the authorization to a specific seller, amount, and expiry window. This prevents the agent from overspending or paying the wrong party.
  • Crypto Rail: The agent pays using USDC stablecoin, settled on Stripe's Tempo blockchain. Transactions confirm in under one second, a critical feature for agents making hundreds of micro-payments in rapid succession.

The agent's logic does not need to differentiate between the rails.

To make high-frequency, low-value API calls economically viable, MPP introduces a session mechanism. Instead of settling a blockchain or card transaction for every call, the agent locks a small deposit upfront. It then uses off-chain, signed vouchers for individual requests within the session. All obligations settle in a single transaction when the session closes.

Context & Implications

Current methods for enabling agent spending—such as handing over a credit card or hardcoding static API keys—are brittle, difficult to revoke, and prone to abuse. MPP proposes a native payment layer for machines where every authorization is scoped, traceable, and limited to pre-approved parameters.

By standardizing the payment discovery and execution process, MPP could reduce the integration complexity for developers building agents that interact with paid services, from AI research APIs to cloud computing resources.

AI Analysis

Stripe's MPP is a pragmatic infrastructure play that addresses a concrete, growing bottleneck: the incompatibility between autonomous software and payment systems designed for human interaction. The technical cleverness lies in its reuse of HTTP 402, providing a clean, standards-based hook for payment negotiation that fits naturally into existing API paradigms, rather than inventing a wholly new protocol. The dual-rail approach (fiat/crypto) is strategically significant. The fiat rail with scoped tokens offers immediate practicality for today's card-based economy and provides crucial spend controls. The crypto rail, with its sub-second finality on Tempo, is clearly architected for a future of agentic micro-transactions where traditional settlement latency (seconds to days) is a non-starter. The session-based accounting layer on top is essential to make this micro-payment vision economically feasible, avoiding prohibitive per-transaction fees or latency. For practitioners, the key question is adoption. The protocol's utility is entirely network-dependent. Its success hinges on paid API providers implementing the 402 response and payment terms schema, and on agent frameworks building robust client-side handlers for the flow. Stripe's submission to the IETF is the correct move to foster this ecosystem. If adopted, MPP could become a fundamental primitive, as crucial to agent infrastructure as OAuth is to API authentication today.
Original sourcex.com

Trending Now

More in Products & Launches

Browse more AI articles