Skip to main content

Machine-payable protocol API

Create and manage ECDSA wallets for agents to make autonomous payments using the x402 machine-payable protocol. Agents can hold USDC balances and make HTTP requests that include automatic payment negotiation.
All MPP endpoints require session authentication. Wallet private keys are stored server-side and cannot be retrieved after creation.

List wallets

Returns all registered agent wallets.

Response

Get wallet

Returns the wallet address for a specific agent.

Query parameters

Response

Errors

Get balance

Returns the USDC balance for an agent’s wallet.

Query parameters

Response

Errors

List endpoints

When no action parameter is provided, returns the list of available endpoints.

Create wallet

Creates a new ECDSA wallet for an agent. The private key is stored server-side and cannot be retrieved.

Request body

Response

Errors

Register wallet

Registers an existing wallet for an agent by providing its private key.

Request body

Response

Errors

Make payment

Makes an HTTP request on behalf of an agent with automatic x402 payment negotiation. When the target URL returns a 402 Payment Required response, the agent’s wallet is used to authorize the payment.

Request body

Response

Errors

Common errors