Skip to main content
POST
Enable x402 payments for an agent (BETA)

Authorizations

x-api-key
string
header
required

Headers

x-idempotency-key
string<uuid>
required

Unique key (UUID) to ensure request idempotency on POST, PUT and PATCH requests.

A key is scoped to your client, the HTTP method and the path, and is remembered for 24 hours after a successful (below 400) response. Repeating the same request (same JSON body, whatever the key order or whitespace) with the same key within that window returns the original response with X-Idempotent-Replayed: true instead of executing the request again. Using the same key on the same endpoint with a different body returns 422 with problem type idempotency-key-reused; the request is not executed. Error responses (4xx and 5xx) are not remembered, so a request refused for a fixable reason can be corrected and retried under the same key. Request bodies that are not JSON (for example file uploads) are not compared.

Path Parameters

payment_agent_id
string
required

Response

The agent's x402 wallet

payment_agent_id
string
required
status
enum<string>
required

active once the wallet exists. provisioning means a previous enable call stopped part-way; calling enable again completes it.

Available options:
provisioning,
active
wallet_id
string

The x402 wallet. Present once status is active.

address
string

The wallet's EVM address. Fund it by sending USDC here on the network the agent pays on.