Skip to main content
Beta. Same product as x402 subscribe; use mppx instead of x402 payment headers. Overview: Agentic payments.

Endpoint

Optional: upgrade (see x402 guide for semantics). Always call /agent/mpp/subscription first to avoid duplicate subscriptions.

Payment

Price is dynamic from plan + frequency (402 challenge shows the amount). Pay via MPP / mppx, then retry.

Flow

  1. 402 without payment → complete payment → retry with MPP credential → 200 with api_key and user_id.

Reference script

Mirrors x402 Subscribe to a plan scripts conceptually: probe the endpoint, pay with mppx, print PathUSD balance deltas. Prerequisites: MPPX_PRIVATE_KEY, optional PLAN / PAYMENT_FREQUENCY / API_URL, mppx, bun, viem. Run from the monorepo root. Source: agent-subscribe.ts

See also