Skip to main content
Beta. Same behavior as x402 top-up; path is /agent/mpp/top-up. Overview: Agentic payments.

Endpoint

  • agent_iduser_id from subscribe.
  • amount_usd — Must be within API min/max (e.g. min $20 in production configs).
Requires an active plan. Call /agent/mpp/subscription first if unsure.

Payment

402 → pay amount_usd via MPP → retry → 200 with credits_added, new_credits_limit (same shape as x402).

Reference script

Prerequisites: MPPX_PRIVATE_KEY, AGENT_ID (user_id from subscribe), AMOUNT_USD (minimum 20), optional API_URL, mppx, bun, viem. Run from the monorepo root. Source: agent-topup.ts

See also