# AgentCash Source: https://docs.myproceeds.xyz/agents/agentcash Give your agent one USDC balance to pay Proceeds endpoints over x402 or MPP — no API keys. [AgentCash](https://agentcash.dev/docs) gives agents instant access to hundreds of premium APIs through a single USDC balance, with no per-provider accounts or API keys. Because it speaks both x402 and MPP, an AgentCash-equipped agent can pay any Proceeds paywall and let the `402` challenge decide which standard to use. Use AgentCash when you want one USDC balance that can pay a Proceeds charge URL over x402 or MPP. Hand the agent the URL — don't send it to hunt a marketplace. ## Install AgentCash works in Claude Code, Cursor, Codex, and other clients. Pick the mode that fits your workflow: ```bash CLI theme={null} npx agentcash onboard ``` ```bash Skill theme={null} # Tell your agent to read the skill, then it can discover and pay on its own # https://agentcash.dev/skill.md ``` ```bash MCP theme={null} # Install AgentCash as an MCP server for native tool integration npx agentcash mcp ``` Onboarding creates and funds the shared USDC balance your agent draws from. ## Pay a Proceeds endpoint Hand your agent the paywall URL and ask it to call the endpoint. AgentCash handles the `402` challenge, signs the payment from your balance, and retries. ```bash theme={null} https://myproceeds.xyz/api/pay/{serviceId}/{slug} ``` A prompt to your agent can be as simple as: ```text theme={null} Call https://myproceeds.xyz/api/pay/{serviceId}/{slug} and pay for it with AgentCash. Return the JSON response. ``` The agent reads the challenge, picks a supported standard, pays, and returns the upstream response. ## Confirm the payment Watch the matching transaction land as `Completed` in [Transactions](/dashboard/transactions), and trace `REQUEST → SUCCESS` in [Events](/dashboard/events). ## When to use AgentCash * You want one balance that works across many providers, not just Proceeds. * You want the agent to choose between x402 and MPP based on the challenge. * You don't want to manage per-provider API keys or subscriptions. > [card] [AgentCash docs](https://agentcash.dev/docs) > > Onboarding, skills, and the full service catalog. > [card] [Agents overview](/agents/overview) > > Compare AgentCash with Circle Agent Stack and Tempo Wallet. > [card] [x402 standard](https://docs.x402.org/introduction) > > The request flow AgentCash uses for x402 paywalls. > [card] [MPP standard](https://mpp.dev/overview) > > The machine-to-machine flow for Tempo-enabled paywalls. # Circle Agent Stack Source: https://docs.myproceeds.xyz/agents/circle-agent-stack Use Circle CLI and Agent Wallets to pay Proceeds endpoints over x402, including sub-cent nanopayments. [Circle Agent Stack](https://developers.circle.com/agent-stack) lets your AI agent hold and transact USDC, discover x402 services, and pay per request within built-in compliance guardrails. It pairs naturally with Proceeds: your agent uses a Circle Agent Wallet to pay an x402 paywall, and Circle Gateway settles sub-cent [Circle Nanopayments](https://developers.circle.com/gateway/nanopayments) in batches. Use Circle Agent Stack when you want Circle-native wallets with spending policies, and when your target paywall is priced sub-cent and accepts nanopayments. ## Install Circle CLI is the unified interface for Agent Wallets, x402 payments, and crosschain transfers. It works alongside agents in Claude Code, Cursor, and Codex. Install from npm (requires Node.js v20.18.2 or later): ```bash theme={null} npm install -g @circle-fin/cli ``` Verify the installation: ```bash theme={null} circle --version ``` ## Create and fund an Agent Wallet Create an Agent Wallet and fund it with USDC. Agent Wallets support email OTP authentication, full onchain capabilities, and customizable policy enforcement. Follow the [Agent Wallets quickstart](https://developers.circle.com/agent-stack/agent-wallets/quickstart) to create the wallet, then fund it with USDC. ## Deposit into Gateway > [!WARNING] > > Funding the onchain Agent Wallet is not enough. To pay with Circle Agent Stack you must first **deposit USDC from your onchain wallet into Gateway** — that Gateway balance is what settles payments. The fastest path is depositing from **Base** with the `--method eco` flag (settles on Polygon PoS); direct deposits also work from any Gateway-supported chain. Deposit once, then pay without gas on each request: ```bash theme={null} circle gateway deposit --amount 5 --address 0xYourWalletAddress --chain BASE --method eco ``` Confirm the Gateway balance arrived: ```bash theme={null} circle gateway balance --address 0xYourWalletAddress --chain BASE ``` See [How to: Deposit for Nanopayments](https://developers.circle.com/agent-stack/agent-nanopayments/operations/deposit) for direct vs. eco deposits and full syntax. ## Pay a Proceeds endpoint Every Proceeds paywall exposes one charge URL. Circle pays it over x402. Hand it to your agent and let Circle CLI handle the `402` challenge, payment, and retry: ```bash theme={null} https://myproceeds.xyz/api/pay/{serviceId}/{slug} ``` A prompt to your agent can be as simple as: ```text theme={null} Use Circle CLI to pay https://myproceeds.xyz/api/pay/{serviceId}/{slug} from my Agent Wallet and return the response. ``` ### Sub-cent paywalls When the paywall is priced below `$0.01`, settlement runs through Circle Gateway as a [nanopayment](https://developers.circle.com/gateway/nanopayments): your agent signs an offchain authorization at zero gas, Proceeds serves the resource immediately, and Gateway settles authorizations in batches. This is the economical path for per-token inference or per-query data billing. ## Confirm the payment For nanopayments, watch the transaction move from `Pending` to `Completed` in [Transactions](/dashboard/transactions) as Gateway settles the batch onchain (or to `Failed` if settlement fails). Trace `REQUEST → SUCCESS` in [Events](/dashboard/events). Nanopayment rows are flagged with a `Nano` badge, and your Gateway balance appears under **Circle Nanopayments** in the [Wallet](/dashboard/wallet) page. ## When to use Circle Agent Stack * You want Circle-native Agent Wallets with spending policies and compliance guardrails. * Your target paywall is priced sub-cent and accepts Circle Nanopayments. * You're already building on Circle products like CCTP or Gateway. > [card] [Circle Agent Stack](https://developers.circle.com/agent-stack) > > Agent wallets, nanopayments, and the Circle CLI command reference. > [card] [Agents overview](/agents/overview) > > Compare Circle Agent Stack with AgentCash and Tempo Wallet. > [card] [Circle Nanopayments](https://developers.circle.com/gateway/nanopayments) > > How gas-free sub-cent settlement works inside Proceeds. > [card] [x402 standard](https://docs.x402.org/introduction) > > The request flow Circle CLI uses against Proceeds paywalls. # Pay with an agent Source: https://docs.myproceeds.xyz/agents/overview Let an AI agent in Claude Code, Cursor, or Codex pay a Proceeds endpoint over x402, MPP, or Circle Nanopayments. These docs mostly cover the seller journey — putting a paywall in front of your API. This section covers the buyer journey: you already have a Proceeds payment URL, and you want an AI agent to pay it for you. Agents pay Proceeds endpoints the same way any client does — request, get a `402` challenge, sign a payment, retry. The difference is the wallet and tooling live inside your agent. Pick a tool below, install it in your IDE, fund a wallet, then hand your agent a Proceeds URL. ## Give your agent these docs Before wiring up a wallet, let your agent read the documentation directly: **MCP server** — search and read tools for these docs: ```bash theme={null} claude mcp add --transport http proceeds https://docs.myproceeds.xyz/mcp ``` **llms.txt** — full docs index for LLMs: [docs.myproceeds.xyz/llms.txt](https://docs.myproceeds.xyz/llms.txt) ## Before you start You need: * A **Proceeds payment URL** for the endpoint you want to call: ```text theme={null} https://myproceeds.xyz/api/pay/{serviceId}/{slug} ``` * A funded **agent wallet** with USDC on a supported network — see [Supported blockchains](/guides/supported-blockchains). > [!NOTE] > > Every paywall uses that one URL. The `402` challenge offers MPP only when **Tempo** is a supported network, and x402 when an EVM network such as Base is enabled. ## Pick your tool All three tools work from Claude Code, Cursor, and Codex. Choose based on the standard your target paywall accepts and the wallet experience you want. | Tool | Best for | Standards | Proceeds URL | | - | - | - | - | | [AgentCash](/agents/agentcash) | Broad access and service discovery across 300+ APIs | x402, MPP | `/api/pay/{serviceId}/{slug}` — the agent picks from the challenge | | [Circle Agent Stack](/agents/circle-agent-stack) | Circle-native wallets and sub-cent nanopayments | x402, Circle Nanopayments | `/api/pay/{serviceId}/{slug}` | | [Tempo Wallet](/agents/tempo-wallet) | MPP-first agents with built-in spend controls | MPP | `/api/pay/{serviceId}/{slug}` | ## Use from your IDE The setup pattern is the same across Claude Code, Cursor, and Codex: **1. Install the CLI or skill** Each tool ships a CLI, an agent skill, or an MCP server. Install it once in the IDE where your agent runs (see the per-tool pages for the exact command). **2. Fund a wallet** Onboard and fund an agent wallet with USDC. **3. Hand the agent a Proceeds URL** Give your agent the paywall URL and ask it to call the endpoint. The agent handles the `402` challenge, signs the payment, and retries automatically. **4. Confirm in the dashboard** Watch the matching record land as `Completed` in [Transactions](/dashboard/transactions) (nanopayments go `Pending` → `Completed` after Gateway batch settlement), and trace each step in [Events](/dashboard/events). ## Proceeds URL cheat sheet x402, MPP, and Circle Nanopayments share one charge URL. The challenge advertises which rails the paywall accepts. ```bash theme={null} https://myproceeds.xyz/api/pay/{serviceId}/{slug} ``` ## How an agent payment flows ```mermaid theme={null} flowchart TD Dev[You in Claude Code, Cursor, or Codex] --> Tool{Which tool?} Tool -->|x402 or MPP| AgentCash[AgentCash] Tool -->|x402 or nanopayments| Circle[Circle Agent Stack] Tool -->|MPP| Tempo[Tempo Wallet] AgentCash --> Call[Agent calls Proceeds URL] Circle --> Call Tempo --> Call Call --> Challenge["Proceeds returns 402 challenge"] Challenge --> Pay[Agent signs payment from its wallet] Pay --> Retry[Agent retries with proof] Retry --> Deliver[Proceeds verifies and proxies upstream] Deliver --> Monitor[Track in Transactions and Events] ``` ## Next steps > [card] [AgentCash](/agents/agentcash) > > 300+ APIs over x402 and MPP from one USDC balance. > [card] [Circle Agent Stack](/agents/circle-agent-stack) > > Agent wallets and gas-free nanopayments via Circle CLI. > [card] [Tempo Wallet](/agents/tempo-wallet) > > MPP-native payments with built-in spend controls. > [card] [Help agents call your API](/guides/api-discovery) > > Agent guidance and docs links sellers attach to a service. > [card] [Accept payments from agents](/guides/accept-payments-from-agents) > > Seller playbook for agent buyers. # Tempo Wallet Source: https://docs.myproceeds.xyz/agents/tempo-wallet Pay MPP-enabled Proceeds endpoints from your agent with the Tempo Wallet's built-in spend controls. The [Tempo Wallet](https://mpp.dev/quickstart/agent#tempo-wallet) is a managed MPP client with built-in spend controls and service discovery. Agents use the `tempo wallet` command to discover and pay MPP-enabled services on demand — including any Tempo-enabled Proceeds paywall. Use Tempo Wallet when your target paywall accepts MPP and you want first-class Tempo support with spending guardrails. ## Install Tempo Wallet works in Claude Code, Cursor, and Codex. Log in to create and connect a managed wallet: ```bash theme={null} tempo wallet login ``` Fund the wallet with USDC. On Tempo mainnet this is [USDC.e](https://tempo.xyz/developers/docs/guide/bridge-layerzero#usdce-and-native-usdc), the bridged USDC — Tempo has no native USDC. ## Pay a Proceeds endpoint A Proceeds paywall accepts MPP on its charge URL when **Tempo** is one of its supported networks: ```bash theme={null} https://myproceeds.xyz/api/pay/{serviceId}/{slug} ``` Hand the URL to your agent and let the Tempo Wallet handle the `402` challenge, sign the payment, and retry: ```text theme={null} Pay https://myproceeds.xyz/api/pay/{serviceId}/{slug} with my Tempo Wallet and return the response. ``` > [!NOTE] > > No MPP in the challenge? Confirm Tempo is selected under the paywall's **Networks**. Otherwise pay the same URL with [AgentCash](/agents/agentcash) or [Circle Agent Stack](/agents/circle-agent-stack). See [Troubleshooting](/guides/troubleshooting). For quick manual testing without the managed wallet, the `mppx` CLI also handles the challenge and retry: ```bash theme={null} npx mppx https://myproceeds.xyz/api/pay/{serviceId}/{slug} ``` ## Confirm the payment Watch the matching transaction land as `Completed` in [Transactions](/dashboard/transactions), and trace `REQUEST → SUCCESS` in [Events](/dashboard/events). MPP returns a `Payment-Receipt` header on success. ## When to use Tempo Wallet * Your target paywall accepts MPP (Tempo is in its supported networks). * You want built-in spend controls and service discovery from a managed wallet. * You want first-class Tempo support for machine-to-machine payments. > [card] [MPP agent quickstart](https://mpp.dev/quickstart/agent#tempo-wallet) > > Tempo Wallet setup and the full agent tool comparison. > [card] [Agents overview](/agents/overview) > > Compare Tempo Wallet with AgentCash and Circle Agent Stack. > [card] [MPP standard](https://mpp.dev/overview) > > The machine-to-machine flow Tempo Wallet uses against Proceeds. > [card] [Test your paywall](/quickstart/test-paywalls) > > Confirm the charge URL accepts MPP before pointing an agent at it. # Authentication Source: https://docs.myproceeds.xyz/api-reference/authentication Authenticate REST API requests with a Proceeds API key, scoped per endpoint. The Proceeds REST API authenticates with **API keys** generated from your dashboard. Each key carries a set of scopes that determine which endpoints it can call. ## Key format Keys use an `mpk_` prefix followed by 64 lowercase hex characters (32 random bytes): ``` mpk_0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef ``` > [!WARNING] > > The raw key is shown only once at creation and cannot be recovered later. Store it in a secret manager or environment variable — never in client-side code or version control. ## Send the key Provide the key in either header. Both are equivalent: ```bash Authorization theme={null} curl https://api.myproceeds.xyz/v1/me \ -H "Authorization: Bearer mpk_your_key_here" ``` ```bash X-Api-Key theme={null} curl https://api.myproceeds.xyz/v1/me \ -H "X-Api-Key: mpk_your_key_here" ``` ## Scopes Each key is granted a set of scopes. Write scopes imply the matching read scope. | Scope | Grants | | - | - | | `services:read` | Read services | | `services:write` | Create, update, delete services (implies `services:read`) | | `paywalls:read` | Read paywalls | | `paywalls:write` | Create, update, delete paywalls (implies `paywalls:read`) | | `transactions:read` | Read payment transactions | | `events:read` | Read analytics events | A request to an endpoint your key isn't scoped for returns `403` with code `INSUFFICIENT_SCOPE` — see [Errors & rate limits](/api-reference/errors-and-rate-limits). ## Validate a key Call `GET /v1/me` with any valid key to confirm it works and inspect the tenant and scopes it carries. No specific scope is required. ```bash theme={null} curl https://api.myproceeds.xyz/v1/me \ -H "X-Api-Key: mpk_your_key_here" ``` The response returns the associated user, the key's name and `keyPrefix`, and its scopes. ## Secret handling Secret material is never returned by the API: * Service `authConfig` values (upstream credentials) * Paywall custom header values These are always masked as `"***"` in responses. The field **names** are returned so you can see what's configured, but the plaintext values are not recoverable through the API. > [card] [Errors & rate limits](/api-reference/errors-and-rate-limits) > > What an auth failure looks like, plus the per-key rate limit. # List the tenant's events Source: https://docs.myproceeds.xyz/api-reference/data/list-the-tenants-events /openapi.yaml get /v1/events Per-eventType counts are returned in `meta.stats`. The cached upstream response body is not exposed. # List the tenant's payment transactions Source: https://docs.myproceeds.xyz/api-reference/data/list-the-tenants-payment-transactions /openapi.yaml get /v1/transactions # Errors & rate limits Source: https://docs.myproceeds.xyz/api-reference/errors-and-rate-limits Error response shape, machine-readable codes, and per-key rate limits for the Proceeds REST API. ## Error shape Failed requests return a structured body with a human-readable `error`, a machine-readable `code`, optional `details`, and the standard `meta` object: ```json theme={null} { "error": "Valid API key required", "code": "INVALID_API_KEY", "details": null, "meta": { "requestId": "req_...", "timestamp": "2026-01-01T00:00:00.000Z" } } ``` Quote `meta.requestId` when [contacting support](mailto:company@myproceeds.xyz) — it correlates with the server log line for your request. ## HTTP status codes | Status | Meaning | | - | - | | `400` | Request validation failed (`VALIDATION_ERROR`) | | `401` | API key missing, invalid, revoked, or expired | | `403` | Insufficient scope, IP not allowed, or not the resource owner | | `404` | Resource not found | | `409` | Conflict — e.g. a paywall slug already exists within the service | | `429` | Rate limit exceeded | | `503` | A dependency check failed (health endpoint only) | ## Error codes The `code` field is stable and safe to branch on: | Code | Typical status | | - | - | | `INVALID_API_KEY` | `401` | | `KEY_REVOKED` | `401` | | `KEY_EXPIRED` | `401` | | `KEY_INACTIVE` | `401` | | `INSUFFICIENT_SCOPE` | `403` | | `IP_NOT_ALLOWED` | `403` | | `FORBIDDEN` | `403` | | `NOT_FOUND` | `404` | | `VALIDATION_ERROR` | `400` | | `CONFLICT` | `409` | | `RATE_LIMITED` | `429` | | `KEY_LIMIT_REACHED` | `403` | | `SSRF_BLOCKED` | `400` | | `ALREADY_REVOKED` | `409` | | `INVALID_WALLET` | `400` | | `INVALID_SERVICE` | `400` | | `PLAN_LIMIT_PAYWALLS` | `403` | | `PLAN_LIMIT_SERVICES` | `403` | | `INTERNAL_ERROR` | `500` | | `DATABASE_ERROR` | `500` | ## Rate limits Each API key may make up to **1000 requests per 60-second window**. When you exceed it, the API responds with `429 Too Many Requests` and a `Retry-After` header indicating how many seconds to wait: ```http theme={null} HTTP/1.1 429 Too Many Requests Retry-After: 23 ``` ```json theme={null} { "error": "Rate limit exceeded", "code": "RATE_LIMITED", "meta": { "requestId": "req_...", "timestamp": "2026-01-01T00:00:00.000Z" } } ``` Back off for the number of seconds in `Retry-After` before retrying. Spread bursty workloads across the window to stay under the limit. > [card] [Authentication](/api-reference/authentication) > > Key format, header options, and scopes that drive `401` and `403` responses. # Validate the API key and return its tenant + scopes Source: https://docs.myproceeds.xyz/api-reference/identity/validate-the-api-key-and-return-its-tenant-+-scopes /openapi.yaml get /v1/me Any valid (non-revoked, non-expired) key works; no scope required. # REST API Source: https://docs.myproceeds.xyz/api-reference/overview Programmatically manage Proceeds services and paywalls over a REST API authenticated with API keys. The Proceeds REST API lets you manage your **services** and **paywalls** programmatically, and read your **transactions** and **events**. It's organized around REST: resource-oriented URLs, JSON request and response bodies, and standard HTTP status codes. This is the management API. It is distinct from the **payment URLs** your paywalls expose to buyers — see the callout below. ## Base URL ``` https://api.myproceeds.xyz ``` All endpoints live under the `/v1` path, for example `GET /v1/services`. ## Authentication Every endpoint except the unauthenticated health check requires an API key generated from your dashboard, sent as a header. See [Authentication](/api-reference/authentication) for key format, header options, and scopes. ## Response envelope Successful responses wrap the result in a `data` field alongside a `meta` object: ```json theme={null} { "data": { }, "meta": { "requestId": "req_...", "timestamp": "2026-01-01T00:00:00.000Z" } } ``` List endpoints add pagination to `meta`: ```json theme={null} { "data": [ ], "meta": { "requestId": "req_...", "timestamp": "2026-01-01T00:00:00.000Z", "pagination": { "total": 42, "limit": 20, "offset": 0, "hasMore": true } } } ``` ## Conventions | Topic | Behavior | | - | - | | **Pagination** | List endpoints accept `limit` (1–100, default 20) and `offset` (default 0). Check `meta.pagination.hasMore` to page. | | **Secret masking** | Service `authConfig` values and paywall custom header values are always returned as `"***"`. Field names are visible; plaintext is never exposed. See [Authentication](/api-reference/authentication#secret-handling). | | **Request IDs** | Every response includes `meta.requestId`. Quote it when [contacting support](mailto:company@myproceeds.xyz). | | **Errors** | Failures return a structured error body with a machine-readable `code`. See [Errors & rate limits](/api-reference/errors-and-rate-limits). | > [!NOTE] > > The REST API documents management endpoints under `api.myproceeds.xyz`. The **payment URL** your buyers call (`myproceeds.xyz/api/pay/{serviceId}/{slug}`) follows the x402 and MPP standards instead — see [Add a paywall](/quickstart/add-a-paywall). ## Next steps > [card] [Authentication](/api-reference/authentication) > > Create an API key, choose a header, and scope it correctly. > [card] [Errors & rate limits](/api-reference/errors-and-rate-limits) > > Error codes, the response shape, and the 1000 req/min limit. # Create a paywall Source: https://docs.myproceeds.xyz/api-reference/paywalls/create-a-paywall /openapi.yaml post /v1/paywalls Paywalls always settle to the tenant's own wallet — the merchant wallet is set automatically to the tenant's primary wallet and is not accepted as a parameter. Slugs must be unique within the parent service (`serviceId` + `slug`). # Delete a paywall Source: https://docs.myproceeds.xyz/api-reference/paywalls/delete-a-paywall /openapi.yaml delete /v1/paywalls/{id} # Get a paywall Source: https://docs.myproceeds.xyz/api-reference/paywalls/get-a-paywall /openapi.yaml get /v1/paywalls/{id} # List paywalls Source: https://docs.myproceeds.xyz/api-reference/paywalls/list-paywalls /openapi.yaml get /v1/paywalls # Update a paywall Source: https://docs.myproceeds.xyz/api-reference/paywalls/update-a-paywall /openapi.yaml patch /v1/paywalls/{id} Partial update. Only provided fields are modified. # Create a service Source: https://docs.myproceeds.xyz/api-reference/services/create-a-service /openapi.yaml post /v1/services # Delete a service Source: https://docs.myproceeds.xyz/api-reference/services/delete-a-service /openapi.yaml delete /v1/services/{id} Deletes the service and all its paywalls atomically. # Get a service Source: https://docs.myproceeds.xyz/api-reference/services/get-a-service /openapi.yaml get /v1/services/{id} # List services Source: https://docs.myproceeds.xyz/api-reference/services/list-services /openapi.yaml get /v1/services List the tenant's services with their paywalls. `authConfig` values are masked (`"***"`) — only the field names are returned. # Update a service Source: https://docs.myproceeds.xyz/api-reference/services/update-a-service /openapi.yaml patch /v1/services/{id} Partial update. Only provided fields are modified. # Health check Source: https://docs.myproceeds.xyz/api-reference/system/health-check /openapi.yaml get /v1/health Unauthenticated liveness + readiness probe — no API key required. Returns `200` with `status: ok` when the API is serving and its database is reachable, or `503` with `status: degraded` when a dependency check fails. Intended for uptime monitors and load balancers. # CLI authentication Source: https://docs.myproceeds.xyz/cli/authentication Authenticate the Proceeds CLI with a console API key. Use a **console API key** from the [API Keys](/dashboard/api-keys) page, then log in with the CLI. ## Create a key 1. Open **API Keys** in the Proceeds dashboard. 2. Create a key with the scopes you need (`services`, `paywalls`, `transactions`, `events`). 3. Copy the `mpk_…` value — it is shown only once. ## Log in ```bash theme={null} proceeds auth login proceeds auth status --format json ``` Example response (`auth status`): ```json theme={null} { "data": { "authenticated": true, "profile": "default", "apiUrl": "https://api.myproceeds.xyz", "source": "profile", "user": { "id": "cmp…", "email": "you@example.com", "walletAddress": "0x…" }, "apiKey": { "name": "CLI", "scopes": ["services:write", "paywalls:write", "transactions:read", "events:read"], "keyPrefix": "mpk_…" } } } ``` ## Profiles A profile stores an API key and API origin under a name. The first login creates the `default` profile. Create more profiles when you need another key, a different API origin, or a separate workspace. ```bash theme={null} proceeds auth login --profile staging proceeds auth profiles --format json proceeds auth switch default --format json proceeds auth logout ``` ### Flags Optional flags on auth (and most other) commands: | Flag | Environment variable | Description | | - | - | - | | `--profile ` | `PROCEEDS_PROFILE` | Named profile to create or use | | `--api-url ` | `PROCEEDS_BASE_URL` | API origin; defaults to `https://api.myproceeds.xyz` | ```bash theme={null} # Create or update a named profile proceeds auth login --profile staging # Point a profile at a custom API origin proceeds auth login --profile staging --api-url https://api.example.com # Run a command against a non-active profile proceeds services list --profile staging --format json ``` Example response (`auth profiles`): ```json theme={null} { "data": { "activeProfile": "default", "profiles": [ { "name": "default", "apiUrl": "https://api.myproceeds.xyz", "credentialType": "api-key", "active": true } ] } } ``` Example response (`auth switch`): ```json theme={null} { "data": { "activeProfile": "default" } } ``` `logout` removes the local profile only — revoke the key in the console if it is compromised. ## Next > [card] [Services](/cli/services) > > Create and manage services. > [card] [Paywalls](/cli/paywalls) > > Create and manage paywalls. # Install the Proceeds CLI Source: https://docs.myproceeds.xyz/cli/install Install the Proceeds CLI with npm. ## Prerequisites * **Node.js 22 or newer** ## Global install ```bash theme={null} npm install --global @proceeds/cli proceeds --version proceeds --help ``` ## Next > [card] [Authentication](/cli/authentication) > > Log in with a console API key and manage profiles. # Proceeds CLI Source: https://docs.myproceeds.xyz/cli/overview Manage Proceeds services, paywalls, transactions, and events from your terminal or AI agent. Create services and paywalls, share payment URLs, and monitor transactions — all from your terminal. The same surface is available to agents via skills and MCP. Default CLI output is **TOON** (Incur). Pass `--format json` whenever you want JSON (including the samples in these docs). ## What you can do | Area | Commands | | - | - | | **Auth** | `login`, `logout`, `profiles`, `status`, `switch` | | **Services** | `create`, `get`, `list`, `update`, `delete` | | **Paywalls** | `create`, `get`, `list`, `update`, `delete` | | **Transactions** | `list` | | **Events** | `list` | | **Health** | `health` | | **Integrations** | `skills`, `mcp`, `completions` | Prices are USDC **base-unit strings** (`1000000` = `$1.00`, `10000` = `$0.01`). Exact and Tiered paywalls are supported — see the create flow below. ## Seller path **1. Authenticate** Create a console API key, then log in with `proceeds auth login`. See [Authentication](/cli/authentication). **2. Create a service** Wrap an upstream API with `proceeds services create --file service.json`. **3. Create an Exact paywall** Price a single route with flags or `--file` (`pricingMode: exact`). **4. Create a Tiered paywall** Use `--file` for nested `priceTiers` (`pricingMode: tiered`). **5. Share payment URLs** Construct the charge URL from the service ID and paywall slug — it is not returned in create responses. **6. Manage and monitor** List and update services and paywalls, then run `proceeds transactions list` and `proceeds events list`. See [Services](/cli/services), [Paywalls](/cli/paywalls), and [Transactions and events](/cli/transactions). ## Agent integrations Wire the CLI into your agent stack: ```bash theme={null} proceeds skills add proceeds mcp add proceeds completions --help ``` ## Related > [card] [Install](/cli/install) > > Node 22+, global npm, or npx. > [card] [Authentication](/cli/authentication) > > API keys, profiles, and CI. > [card] [Services](/cli/services) > > List, update, and delete services. > [card] [Paywalls](/cli/paywalls) > > Manage paywalls and share URLs. > [card] [Transactions and events](/cli/transactions) > > Monitor payments and request events. # Paywalls Source: https://docs.myproceeds.xyz/cli/paywalls Create, list, get, update, and delete Proceeds paywalls from the CLI. Paywalls price a route under a service. This page covers create, listing, updates, delete, and share URLs. > [!NOTE] > > Prices are USDC **base-unit strings**: `1000000` = `$1.00`, `10000` = `$0.01`. ## Create A paywall is either **Exact** or **Tiered**: * **Exact** — one fixed USDC price for one upstream URL. Agents pay that amount, then Proceeds forwards the request. * **Tiered** — several named prices under one paywall, each mapped to its own path. Agents pick a tier (or the path selects it), pay that tier's price, then Proceeds forwards to that path. | | Exact | Tiered | | - | - | - | | **What you set** | A single `price` | A list of `priceTiers` (name, price, path) | | **How you create** | Field flags **or** `--file` / `--data` | `--file` or `--data` only (nested tiers) | | **`pricingMode`** | `exact` (server default) | `tiered` | `--file` / `--data` cannot be combined with field flags. Pass `--pricing-mode exact` when you want Exact spelled out in the command; omit it and the server still defaults to Exact. ### Exact ```bash theme={null} proceeds paywalls create \ --slug current-weather \ --name "Current weather" \ --target-url https://weather.example.com/current \ --price 10000 \ --currency USDC \ --pricing-mode exact \ --networks base-sepolia \ --allowed-methods GET \ --service-id SERVICE_ID \ --format json ``` Replace `SERVICE_ID` with the owning service id from `services create` / `services list`. Example response (trimmed — **ids only**, no payment URL): ```json theme={null} { "data": { "id": "vrxf…", "slug": "current-weather", "name": "Current weather", "targetUrl": "https://weather.example.com/current", "price": "10000", "currency": "USDC", "pricingMode": "exact", "priceTiers": null, "networks": ["base-sepolia"], "timeout": 300000, "allowedMethods": ["GET"], "enabled": true, "serviceId": "cmu…" } } ``` ### Tiered Tiered create needs `--file` or `--data` for nested `priceTiers`: ```bash theme={null} cat > paywall-tiered.json <<'JSON' { "slug": "weather-tiers", "name": "Weather tiers", "targetUrl": "https://weather.example.com/current", "currency": "USDC", "pricingMode": "tiered", "priceTiers": [ { "name": "basic", "price": "10000", "targetPath": "/current" }, { "name": "plus", "price": "50000", "targetPath": "/forecast" } ], "networks": ["base-sepolia"], "allowedMethods": ["GET"], "serviceId": "SERVICE_ID", "enabled": true } JSON proceeds paywalls create --file paywall-tiered.json --format json ``` Example response (trimmed — API also echoes a top-level `price`, often the first tier): ```json theme={null} { "data": { "id": "is86…", "slug": "weather-tiers", "name": "Weather tiers", "targetUrl": "https://weather.example.com/current", "price": "10000", "currency": "USDC", "pricingMode": "tiered", "priceTiers": [ { "name": "basic", "price": "10000", "targetPath": "/current" }, { "name": "plus", "price": "50000", "targetPath": "/forecast" } ], "networks": ["base-sepolia"], "timeout": 300000, "allowedMethods": ["GET"], "enabled": true, "serviceId": "cmu…" } } ``` Payment URLs are **not** returned in create responses — see [Share payment URLs](#share-payment-urls). ## List ```bash theme={null} proceeds paywalls list --service-id --limit 2 --format json ``` | Flag | Notes | | - | - | | `--limit` | Page size (1–100), default `20` | | `--offset` | Records to skip, default `0` | | `--service-id` | Filter by owning service | | `--enabled` / `--no-enabled` | Filter by enabled status | Example response (trimmed): ```json theme={null} { "data": [ { "id": "mmmo…", "slug": "cli-docs-flags", "name": "CLI docs flags exact", "targetUrl": "https://httpbin.org/uuid", "price": "10000", "currency": "USDC", "pricingMode": "exact", "networks": ["base-sepolia"], "allowedMethods": ["GET"], "enabled": true, "serviceId": "cmu…" }, { "id": "is86…", "slug": "cli-docs-tiered", "pricingMode": "tiered", "priceTiers": [ { "name": "basic", "price": "10000", "targetPath": "/get" }, { "name": "plus", "price": "50000", "targetPath": "/anything/plus" } ], "serviceId": "cmu…" } ], "meta": { "pagination": { "total": 3, "limit": 2, "offset": 0, "hasMore": true } } } ``` ## Get ```bash theme={null} proceeds paywalls get --format json ``` Example response (trimmed): ```json theme={null} { "data": { "id": "mmmo…", "slug": "cli-docs-flags", "name": "CLI docs flags exact", "targetUrl": "https://httpbin.org/uuid", "price": "10000", "currency": "USDC", "pricingMode": "exact", "networks": ["base-sepolia"], "allowedMethods": ["GET"], "enabled": true, "serviceId": "cmu…" } } ``` ## Update ```bash theme={null} proceeds paywalls update --name "CLI docs GET demo" --format json ``` Example response (trimmed): ```json theme={null} { "data": { "id": "mmmo…", "slug": "cli-docs-flags", "name": "CLI docs GET demo", "price": "10000", "pricingMode": "exact", "enabled": true, "updatedAt": "2026-09-19T07:46:10.225Z" } } ``` | Flag | Purpose | | - | - | | `--name` | Display name | | `--description` | Description | | `--target-url` | Upstream target URL | | `--price` | USDC base-unit string | | `--pricing-mode` | `exact` or `tiered` | | `--networks` | Accepted network; repeat for multiple | | `--allowed-methods` | HTTP method; repeat for multiple | | `--enabled` / `--no-enabled` | Enable or disable | | `--file` / `--data` | Complete JSON (exclusive with field flags) | > [!WARNING] > > **`slug` and `serviceId` cannot be updated.** Supplied arrays **replace** existing arrays. Switching to **tiered** requires `priceTiers`. Switching to **exact** clears tiers. ## Delete ```bash theme={null} proceeds paywalls delete --yes ``` Permanent. Requires `--yes`. ## Share payment URLs > [!WARNING] > > Payment URLs are **not** returned in create responses. Construct each one from the service ID and paywall slug: ```text theme={null} https://myproceeds.xyz/api/pay/{serviceId}/{slug} ``` ## Related > [card] [Services](/cli/services) > > Manage the owning service. > [card] [Transactions and events](/cli/transactions) > > List payments and request events. # Services Source: https://docs.myproceeds.xyz/cli/services Create, list, get, update, and delete Proceeds services from the CLI. Services wrap an upstream API (base URL, auth, networks, mode). This page covers create and day-to-day management. ## Create ```bash theme={null} proceeds services create \ --name "Weather API" \ --base-url https://weather.example.com \ --auth-method none \ --networks base-sepolia \ --mode testnet \ --format json ``` You can also pass a complete JSON body with `--file` or `--data` (exclusive with field flags). Nested `authConfig` needs `--file` / `--data`. | Flag | Purpose | | - | - | | `--name` | Display name (required) | | `--base-url` | Upstream base URL (required) | | `--auth-method` | Upstream auth (`none`, `bearer`, …) (required) | | `--networks` | Accepted network; repeat for multiple (required) | | `--mode` | `testnet` or `mainnet` (required) | | `--description` | Description | | `--file` / `--data` | Complete JSON payload (exclusive with field flags) | Example response (trimmed — no payment URLs): ```json theme={null} { "data": { "id": "cmu…", "name": "Weather API", "description": null, "baseUrl": "https://weather.example.com", "authMethod": "none", "authConfig": null, "networks": ["base-sepolia"], "mode": "testnet", "createdAt": "2026-09-19T02:20:42.796Z", "updatedAt": "2026-09-19T02:20:42.796Z" } } ``` ## List ```bash theme={null} proceeds services list --limit 1 --format json ``` | Flag | Default | Notes | | - | - | - | | `--limit` | `20` | Page size (1–100) | | `--offset` | `0` | Records to skip | Example response (trimmed — list also embeds paywall summaries): ```json theme={null} { "data": [ { "id": "cmu…", "name": "CLI Docs Demo", "description": "Updated by CLI docs run", "baseUrl": "https://httpbin.org", "authMethod": "none", "networks": ["base-sepolia"], "mode": "testnet", "Paywall": [ { "id": "mmmo…", "slug": "cli-docs-flags", "pricingMode": "exact", "price": "10000" } ] } ], "meta": { "pagination": { "total": 5, "limit": 1, "offset": 0, "hasMore": true } } } ``` ## Get ```bash theme={null} proceeds services get --format json ``` Example response: ```json theme={null} { "data": { "id": "cmu…", "name": "CLI Docs Demo", "description": "CLI docs demo", "baseUrl": "https://httpbin.org", "authMethod": "none", "networks": ["base-sepolia"], "mode": "testnet" } } ``` Upstream credentials in the full response are masked. ## Update Partial update — only supply fields you want to change. ```bash theme={null} proceeds services update --description "CLI docs demo" --format json ``` Example response (trimmed): ```json theme={null} { "data": { "id": "cmu…", "name": "CLI Docs Demo", "description": "CLI docs demo", "baseUrl": "https://httpbin.org", "authMethod": "none", "networks": ["base-sepolia"], "mode": "testnet", "updatedAt": "2026-09-19T07:45:07.697Z" } } ``` | Flag | Purpose | | - | - | | `--name` | Display name | | `--description` | Description | | `--base-url` | Upstream base URL | | `--auth-method` | Upstream auth (`none`, `bearer`, …) | | `--networks` | Accepted network; repeat for multiple | | `--mode` | `testnet` or `mainnet` | | `--file` / `--data` | Complete JSON payload (exclusive with field flags) | > [!WARNING] > > Do not submit masked credential values from a previous `get` response. ## Delete Deletes the service **and all of its paywalls**. Requires `--yes`. ```bash theme={null} proceeds services delete --yes ``` ## Related > [card] [Paywalls](/cli/paywalls) > > List, update, and delete paywalls. > [card] [Transactions and events](/cli/transactions) > > Monitor payments and request events. > [card] [Authentication](/cli/authentication) > > Profiles and API keys. # Transactions and events Source: https://docs.myproceeds.xyz/cli/transactions List payment transactions and analytics events from the Proceeds CLI. After agents pay, use the CLI to list transactions and request events. Both resources are **read-only** lists with pagination. Add `--format json` for machine-readable output. > [!NOTE] > > Transaction `amount` values are USDC **base-unit strings** (`1000000` = `$1.00`, `10000` = `$0.01`, `250000` = `$0.25`). ## Transactions ```bash theme={null} proceeds transactions list --limit 1 --format json proceeds transactions list --status COMPLETED --paywall-id ``` | Flag | Notes | | - | - | | `--limit` | Page size (1–100), default `20` | | `--offset` | Records to skip, default `0` | | `--status` | `PENDING`, `COMPLETED`, or `FAILED` | | `--paywall-id` | Filter by paywall | Example response: ```json theme={null} { "data": [ { "id": "xuw…", "paywallId": "g2tw…", "amount": "250000", "currency": "USDC", "network": "tempo", "status": "COMPLETED", "scheme": "mpp", "txHash": "0x…", "Paywall": { "slug": "generate-4s", "name": "Generate 4s clip", "price": "250000" } } ], "meta": { "pagination": { "total": 649, "limit": 1, "offset": 0, "hasMore": true } } } ``` ## Events ```bash theme={null} proceeds events list --limit 1 --format json proceeds events list --event-type SUCCESS --paywall-id ``` | Flag | Notes | | - | - | | `--limit` | Page size (1–100), default `20` | | `--offset` | Records to skip, default `0` | | `--event-type` | `REQUEST`, `SUCCESS`, or `ERROR` | | `--paywall-id` | Filter by paywall | Example response (includes `meta.stats`): ```json theme={null} { "data": [ { "id": "nhgo…", "paywallId": "vrxf…", "eventType": "REQUEST", "metadata": { "slug": "cli-docs-get", "protocol": "mpp" }, "Paywall": { "slug": "cli-docs-get", "name": "CLI docs GET demo" } } ], "meta": { "pagination": { "total": 11180, "limit": 1, "offset": 0, "hasMore": true }, "stats": [ { "eventType": "ERROR", "count": 3001 }, { "eventType": "REQUEST", "count": 7530 }, { "eventType": "SUCCESS", "count": 649 } ] } } ``` ## Related > [card] [Paywalls](/cli/paywalls) > > Manage priced routes. > [card] [Services](/cli/services) > > Manage upstream wrappers. # Concepts Source: https://docs.myproceeds.xyz/concepts Services, paywalls, transactions, events, and wallets — the building blocks of Proceeds. Proceeds has five primitives. You configure the first two; the next three are emitted automatically as your paywalls run. ## Service A **Service** groups related endpoints under one configuration. Use one service per API product. A service defines: * **Base URL** — the upstream origin Proceeds proxies to * **Mode** — `Testnet` or `Mainnet` * **Networks** — payment-capable chains accepted by every paywall in the service * **Auth method** — credentials Proceeds attaches to upstream requests, kept inside Proceeds and never exposed to the client * **Service metadata** — categories, docs links, public routes, and agent guidance on the generated OpenAPI file. See [Help agents call your API](/guides/api-discovery). Supported upstream auth methods: `none`, `bearer`, `token`, `x-api-key`, `custom-header`, `query-param`, `bearer-customer`, `x-api-key-secret`, `json-body-field`. See [Forward upstream auth](/guides/forward-upstream-auth). ## Paywall A **Paywall** protects one route on a service. You set the price; Proceeds enforces it. A paywall defines: * **Slug** — appears in the public URL * **Target URL** — the upstream path Proceeds proxies to * **Allowed HTTP methods** — `GET`, `POST`, `PUT`, `PATCH` * **Price** — in USDC * **Networks** — chains accepted for this endpoint * **Custom headers and query parameters** — forwarded to the upstream * **Enabled state** Each paywall exposes one generated URL: ```text theme={null} https://myproceeds.xyz/api/pay/{serviceId}/{slug} ``` Every paywall runs as a proxy to its `targetUrl`. Proceeds is the payment gate and the request proxy; your origin is unchanged. ## Transaction A **Transaction** is one payment attempt against a paywall. Transactions move through these states: | State | Meaning | | - | - | | `Pending` | Circle Nanopayment accepted into a Gateway batch; waiting for onchain batch settlement. Standard x402 and MPP typically land as `Completed` or `Failed`. | | `Completed` | Payment settled and the protected request was proxied successfully. | | `Failed` | Settlement or fulfillment failed. | [Inspect transactions →](/dashboard/transactions) ## Event An **Event** is a single step in a request's lifecycle. Proceeds emits three event types: * `REQUEST` — paywall hit without payment (`402` path) * `SUCCESS` — successful payment and fulfillment * `ERROR` — settlement or upstream failure Use Events to debug where a flow stopped: did the request reach the paywall, did payment and fulfillment complete, or did settlement/upstream fail? [Trace events →](/dashboard/events) To be notified of events on your own server instead of inspecting them in the dashboard, configure [Webhooks](/dashboard/webhooks). ## Wallet A **Wallet** view shows balances across rails and chains. Withdraw onchain per holding, or set **Destination** to **Bank (ACH)** to off-ramp USDC to a US bank account via Bridge. [See balances →](/dashboard/wallet) · [Settlement →](/guides/settle-to-wallet-or-bank) ## Related > [card] [Supported blockchains](/guides/supported-blockchains) > > Networks and testnet vs mainnet mode. > [card] [Help agents call your API](/guides/api-discovery) > > Agent guidance and docs links on the service. # API Keys Source: https://docs.myproceeds.xyz/dashboard/api-keys Programmatic access to the Proceeds API. Each key is shown once — store it securely. API keys let you manage services and paywalls from CI, scripts, or your own backend. Create them on the **API Keys** page in the dashboard. Each key is shown once — copy it somewhere safe. Keys use an `mpk_` prefix. Send them as `Authorization: Bearer mpk_…` or `X-Api-Key: mpk_…`. Full details: [Authentication](/api-reference/authentication). ## Create a key Click **+ Create key** and fill in: | Field | Description | | - | - | | **Name** | A label you'll recognize later — for example `Production CI` | | **Permissions** | Scopes for this key (`services:read/write`, `paywalls:read/write`, `transactions:read`, `events:read`) | | **Expires** | Optional expiry date | | **IP allowlist** | Optional IPs or CIDR blocks that may use the key | Use **Select all** if the key should have every scope. You can hold up to **20** active keys. > [!WARNING] > > The plaintext key is shown only at creation. Store it in a secret manager — never in client-side code or git. ## Permissions | Scope | Grants | | - | - | | `services:read` / `services:write` | List and manage services | | `paywalls:read` / `paywalls:write` | List and manage paywalls | | `transactions:read` | Read payment transactions | | `events:read` | Read lifecycle events | Write scopes include the matching read scope. ## Manage keys From the API Keys table you can pause, edit, or delete a key. The table shows name, status, key prefix, permissions, created date, and last used. ## Next > [card] [Authentication](/api-reference/authentication) > > Headers, scopes, and `GET /v1/me`. > [card] [Create a service](/api-reference/services/create-a-service) > > Use your key to create a service via the API. # Events Source: https://docs.myproceeds.xyz/dashboard/events The step-by-step trail every paid request leaves behind — your first stop when something fails. Every paid request leaves a trail. Proceeds emits an event at each step so when something breaks, you can see exactly where. Use **Events** to answer one question: *where did this flow stop?* Filter by **All**, **Request**, **Success**, or **Error**. Expand a row to inspect the response payload. Events are also available via `GET /v1/events` and [webhooks](/dashboard/webhooks). ## Event types | Event | Meaning | | - | - | | `REQUEST` | Paywall hit without payment (`402` path). | | `SUCCESS` | Successful payment and fulfillment — the request was proxied to the upstream `Target URL`. | | `ERROR` | Settlement or upstream failure. | A healthy paid request emits `REQUEST → SUCCESS`. An unpaid challenge emits `REQUEST` only. ## Filters `All`, `Request`, `Success`, `Error`. ## How to read the stream Start at the latest event and walk backwards: 1. Did `REQUEST` fire? If not, the URL never reached Proceeds — check DNS or the client's URL. 2. Did `SUCCESS` fire? If not, either the client never paid, payment was rejected, or settlement/upstream failed. 3. If you see an `ERROR` event, open it for the underlying reason — see [Forward upstream auth](/guides/forward-upstream-auth) and [Custom headers and query parameters](/guides/custom-headers-and-params) when the failure is upstream. > [card] [Cross-check payment state](/dashboard/transactions) > > Compare event traces against the matching transaction record. > [card] [Get notified with webhooks](/dashboard/webhooks) > > Push these events to your server instead of inspecting them here. # Paywalls Source: https://docs.myproceeds.xyz/dashboard/paywalls Group your API endpoints under services and start earning. The **Paywalls** page is where you wrap APIs and price routes. Services group endpoints under one base URL and auth config. Paywalls sit under a service — each one is a priced path with one generated charge URL. ## Services Click **New Service** to create one. You'll set: | Field | Description | | - | - | | Service name | Short identifier — for example `weather-api` | | Description | Optional | | Base URL | Upstream origin Proceeds proxies to | | Authentication method | How Proceeds authenticates to your API | | Mode | **Testnet** while building, **Mainnet** when you ship | | Networks | Chains buyers can pay on | Each service shows a **Mainnet** or **Testnet** badge and its base URL. Expand a service to see its paywalls. Step-by-step: [Create a service](/quickstart/create-a-service). ## Paywalls Inside a service, click **New Paywall**. You'll set: | Field | Description | | - | - | | Name | Human-readable label | | Slug | URL-safe id (or click **Generate**) | | Allowed HTTP methods | `GET`, `POST`, `PUT`, `PATCH` | | Path | Upstream path under the service base URL | | Query parameters / custom headers | Optional — forwarded upstream | | Price | Amount in USDC | **Save & Activate** turns the paywall on immediately. Each row shows method, status, the charge URL, networks, and price. Step-by-step: [Add a paywall](/quickstart/add-a-paywall). ## Common tasks * **Add another endpoint** — open the service → **New Paywall** * **Change a price** — edit the paywall → see [Configure pricing](/guides/configure-pricing) * **Pause a paywall** — deactivate it; in-flight payments still complete * **Use your own domain** — service overflow menu → **Custom Domain** (Pro). See [Custom domains](/guides/custom-domains) * **Test** — use the console **Test Payment** flow ([Test paywalls](/quickstart/test-paywalls)), or [pay from an agent](/quickstart/make-your-first-payment) > [card] [Create a service](/quickstart/create-a-service) > > Point Proceeds at your API. > [card] [Sell to agents](/guides/accept-payments-from-agents) > > Share a charge URL and get paid. # Transactions Source: https://docs.myproceeds.xyz/dashboard/transactions Every payment attempt against your paywalls, with the state to reconcile revenue and debug failures. A transaction is one payment attempt against one paywall. When a buyer pays, Proceeds records it, validates the payment, proxies the request, and moves the row through its states. Use **Transactions** to reconcile what you've earned — and to debug anything that didn't complete. You can also read transactions with `GET /v1/transactions` — see the [API Reference](/api-reference/overview). ## States | State | Meaning | | - | - | | `Pending` | Circle Nanopayment accepted into a Gateway batch; waiting for onchain batch settlement. Standard x402 and MPP payments typically appear as `Completed` (or `Failed`) once the request finishes. | | `Completed` | Payment settled and the protected request was proxied successfully. | | `Failed` | Settlement or fulfillment failed. | > [!NOTE] > > **Nanopayments:** After the buyer's offchain authorization is accepted, Proceeds serves the resource immediately and records the transaction as `Pending`. Gateway periodically batches pending authorizations into a single onchain settlement; when that confirms, the row moves to `Completed` (or `Failed` if settlement fails) and balances become available to withdraw. Nanopayment rows are flagged with a `Nano` badge. A transaction that sits in `Pending` longer than expected, or lands in `Failed`, has a story — the matching [event stream](/dashboard/events) tells it. ## Filters `All`, `Pending`, `Completed`, `Failed`. ## Columns | Column | Meaning | | - | - | | Date | When the payment attempt was created | | Status | Current transaction state | | From | Paying account | | Paywall | Which paywall the attempt was for | | Transaction | On-chain or rail-specific identifier | | Amount | USDC amount | ## Common tasks * **Find a stuck nanopayment**: filter to `Pending` — these are waiting on Gateway batch settlement. Cross-check Circle Nanopayments balance in [Wallet](/dashboard/wallet). * **Reconcile revenue**: filter to `Completed` and group by paywall. Cross-check totals against your [Wallet](/dashboard/wallet) balances. * **Debug a failure**: filter to `Failed` and inspect the matching events for the step that failed. * **React automatically**: subscribe a [webhook](/dashboard/webhooks) to `payment.succeeded` and `payment.failed` instead of polling this page. Nanopayments also emit `payment.pending` when the authorization is accepted into a batch. > [card] [Trace lifecycle steps](/dashboard/events) > > Events show every step of a request, not just the payment outcome. > [card] [Get notified with webhooks](/dashboard/webhooks) > > Push `payment.*` events to your server instead of polling. # Wallet Source: https://docs.myproceeds.xyz/dashboard/wallet Where your USDC accumulates — and how you withdraw it to a wallet or a bank account. Every completed payment lands in your **Wallet**. This is where revenue lives and where you take it out — as USDC to an external wallet, or as USD to a US bank account via ACH. ## Holdings Balances are listed per source, for example: * **Circle Nanopayments** — balances are held in Circle Gateway * **Tempo** — held as [USDC.e](https://tempo.xyz/developers/docs/guide/bridge-layerzero#usdce-and-native-usdc), the bridged USDC on Tempo * **Solana** * **Base** With **Mainnet mode** off (profile menu), you'll see matching testnet balances. See [Supported blockchains](/guides/supported-blockchains). ## Withdraw Click the **Withdraw USDC** button on a holding to open the withdrawal modal: 1. Enter an amount (or **Max**) — the modal shows the available balance 2. Choose a **Destination**: * A **chain** to send USDC onchain to an external wallet * **Bank (ACH)** to off-ramp USDC to your linked US bank account as USD 3. Click **Withdraw** Connect a bank in **Settings** before **Bank (ACH)** is available. Full walkthrough: [Settle to a wallet or bank](/guides/settle-to-wallet-or-bank). ## Off-ramp to a bank via ACH Proceeds can turn USDC into dollars and deposit them in a **US bank account via ACH**, powered by Bridge. 1. Open the profile menu → **Settings** 2. Under **Bank account**, choose **Individual (KYC)** or **Business (KYB)** 3. Enter your full legal name and click **Connect Bank Account via ACH** 4. Complete identity verification in one session 5. On **Wallet**, open **Withdraw** on a holding → set **Destination** to **Bank (ACH)** → **Withdraw** A **0.50%** fee applies to bank withdrawals. Full walkthrough: [Settle to a wallet or bank](/guides/settle-to-wallet-or-bank#off-ramp-to-a-bank-via-ach). ## Withdrawals table | Column | Meaning | | - | - | | Status | Completed or Failed | | Amount | USDC withdrawn or off-ramped | | Date | When the withdrawal was initiated | > [card] [Settlement guide](/guides/settle-to-wallet-or-bank) > > Wallet withdraw vs ACH bank off-ramp. > [card] [Transactions](/dashboard/transactions) > > The payment records behind every balance change. # Webhooks Source: https://docs.myproceeds.xyz/dashboard/webhooks Receive signed HTTP callbacks when payments, paywalls, and services change in your account. Webhooks push signed HTTP callbacks to your server when events happen in your account — payments, paywall and service changes. Verify each request with the `X-Webhook-Signature` header. Your backend can grant access, update a ledger, or alert your team without polling [Transactions](/dashboard/transactions) or [Events](/dashboard/events). > [!NOTE] > > Webhooks are configured from the dashboard only. There is no API to create or manage endpoints. ## Add an endpoint In the dashboard, open **Webhooks** and click **Add endpoint**: | Field | Description | | - | - | | **Endpoint URL** | The HTTPS URL Proceeds sends events to — for example `https://api.example.com/webhooks/proceeds`. | | **Description** | Optional label to identify the endpoint. | | **Events to send** | The event types this endpoint receives. Use **Select all** or pick individually. | You can configure up to **20 endpoints**. Each endpoint can subscribe to a different set of events. ## Events Choose which events each endpoint receives: | Group | Event | Fires when | | - | - | - | | **Payments** | `payment.requested` | A `402` challenge was issued for a request. | | | `payment.pending` | A Circle Nanopayment authorization was accepted into a Gateway batch (transaction is `Pending`). | | | `payment.succeeded` | Payment settled and the protected request was proxied (`Completed`). | | | `payment.failed` | Settlement or fulfillment failed. | | **Paywalls** | `paywall.created` | A paywall was created. | | | `paywall.updated` | A paywall was updated. | | | `paywall.deleted` | A paywall was deleted. | | **Services** | `service.created` | A service was created. | | | `service.updated` | A service was updated. | | | `service.deleted` | A service was deleted. | | **Withdrawals** | `withdrawal.initiated` | The withdrawal was initiated. | | | `withdrawal.burned` | Tokens burned. | | | `withdrawal.attested` | Attestation received. | | | `withdrawal.minted` | Tokens minted. | | | `withdrawal.completed` | The withdrawal completed. | | | `withdrawal.failed` | The withdrawal failed. | > [!NOTE] > > Webhook `payment.*` names follow transaction state (`Pending` / `Completed` / `Failed`). They are not the dashboard Events `REQUEST` / `SUCCESS` / `ERROR` stream, and `GET /v1/events` is not a webhook payload. ## Verify each delivery Verify `X-Webhook-Signature` with the endpoint's full `whsec_` secret before you grant access or update a ledger. Each endpoint has its own secret, shown in the endpoint list. Store it server-side. | | | | - | - | | Signed string | `{timestamp}.{rawBody}` | | Algorithm | HMAC-SHA256, lowercase hex | | Header | `X-Webhook-Signature: t={timestamp},v1={hex}` | | Key | full `whsec_…` (do not strip). Format `/^whsec_[0-9a-f]{64}$/` | Pass the raw POST body, the `X-Webhook-Signature` header, and the endpoint secret into `verifyProceedsWebhook` (or the Python equivalent). ```typescript Node.js theme={null} import { createHmac, timingSafeEqual } from 'node:crypto' export function parseHeader( signatureHeader: string | undefined, ): { t: string; v1: string } | null { if (typeof signatureHeader !== 'string' || !signatureHeader) return null const parts: Record = Object.create(null) for (const segment of signatureHeader.split(',')) { const eq = segment.indexOf('=') if (eq <= 0) continue parts[segment.slice(0, eq).trim()] = segment.slice(eq + 1).trim() } if (!parts.t || !parts.v1) return null return { t: parts.t, v1: parts.v1 } } function hexToBuffer(hex: string): Buffer | null { if (!hex || hex.length % 2 !== 0 || !/^[0-9a-fA-F]+$/.test(hex)) return null try { return Buffer.from(hex, 'hex') } catch { return null } } export function verifyProceedsWebhook({ rawBody, signatureHeader, secret, }: { rawBody: Buffer | string signatureHeader: string | undefined secret: string }): boolean { if (!secret.startsWith('whsec_')) { throw new TypeError('secret must start with whsec_') } const parsed = parseHeader(signatureHeader) if (!parsed) return false const provided = hexToBuffer(parsed.v1) if (!provided) return false const bodyUtf8 = Buffer.isBuffer(rawBody) ? rawBody.toString('utf8') : String(rawBody) const expectedHex = createHmac('sha256', secret) .update(`${parsed.t}.${bodyUtf8}`, 'utf8') .digest('hex') const expected = Buffer.from(expectedHex, 'hex') if (provided.length !== expected.length) return false return timingSafeEqual(provided, expected) } ``` ```python Python theme={null} import hashlib import hmac def verify_proceeds_webhook( *, raw_body: bytes | str, signature_header: str | None, secret: str, ) -> bool: if not secret.startswith("whsec_"): raise TypeError("secret must start with whsec_") if not isinstance(signature_header, str) or not signature_header: return False parts: dict[str, str] = {} for segment in signature_header.split(","): eq = segment.find("=") if eq <= 0: continue key = segment[:eq].strip() value = segment[eq + 1 :].strip() if key: parts[key] = value t = parts.get("t") v1 = parts.get("v1") if not t or not v1: return False body_utf8 = ( raw_body.decode("utf-8") if isinstance(raw_body, (bytes, bytearray)) else str(raw_body) ) signed_string = f"{t}.{body_utf8}".encode("utf-8") expected = hmac.new(secret.encode("utf-8"), signed_string, hashlib.sha256).hexdigest() return hmac.compare_digest(expected, v1.lower()) ``` > [!NOTE] > > Proceeds signs the **raw** request body. If your framework parses JSON first (`express.json()`, `req.json()`, and similar), verification fails. Use the unparsed bytes. The HMAC key is the full `whsec_…` secret — do not strip the prefix. ### Verify manually Use these steps if you are not pasting the snippet above. Proceeds sends a signature header like this (shown with newlines for clarity; the real header is one line): ```text theme={null} X-Webhook-Signature: t=1700000000, v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd ``` 1. **Extract the timestamp and signature from the header.** Split on `,`, then `=`. `t` is the unix-seconds timestamp. `v1` is the hex HMAC. Ignore any other schemes. 2. **Prepare the signed payload.** Concatenate: timestamp (as a string) + `.` + the raw JSON body (exact POST bytes as utf8). 3. **Compute the expected signature.** HMAC-SHA256 of that string, using the full `whsec_…` secret as the key. Encoding is lowercase hex. 4. **Compare.** Constant-time compare (`timingSafeEqual` / `hmac.compare_digest`) of the hex-decoded buffers. Reject on mismatch or a malformed header. > [!NOTE] > > There is **no** timestamp skew or replay window in Proceeds today. Do not implement a fake 5-minute check. Dedupe on envelope `id`. ## Delivery and retries Proceeds expects a `2xx` within **10 seconds**. Non-`2xx` responses retry up to **3 attempts**, with backoff **2s / 4s / 8s**. Retryable status codes: `408`, `429`, `5xx`. Other `4xx` responses are not retried. Open an endpoint's **Recent deliveries** to inspect history: | Column | Meaning | | - | - | | Event | The event type delivered. | | Status | `Succeeded` or failed. | | Code | The HTTP status your endpoint returned. | | Attempts | Delivery attempts used, out of 3. | | Time | When the delivery was sent. | | Resend | Dashboard replay of that delivery (not Resend.com). | ## Manage endpoints The Webhooks list shows each endpoint's **Status** (active or paused), subscribed **Events**, **Last delivery**, and signing **Secret**. From there you can pause, edit, or delete an endpoint. ## Best practices * Return `2xx` after verify and de-dupe; process asynchronously (10s timeout). * De-dupe on envelope `id`. * Subscribe narrowly — only enable the events each endpoint needs. > [card] [Transactions](/dashboard/transactions) > > The payment state that `payment.*` events mirror. > [card] [Events](/dashboard/events) > > The request lifecycle you can also inspect in the dashboard. # Accept cards and Link (Stripe) Source: https://docs.myproceeds.xyz/guides/accept-cards-and-link Let buyers pay your paywall with a card or a Stripe Link account over MPP, settled to your own Stripe account. Proceeds supports the MPP [Stripe charge](https://mpp.dev/payment-methods/stripe/charge) method. A buyer or agent with a card or a [Link](https://link.com) account can pay your paywall in the same request, with no wallet and no stablecoins. Cards are one more rail on the same charge URL. There is no separate card URL: ```text theme={null} https://myproceeds.xyz/api/pay/{serviceId}/{slug} ``` When a paywall accepts cards, the `402` challenge lists Stripe next to the other rails it accepts. The buyer's client picks the one it can pay. > [!NOTE] > > Card payments settle to **your connected Stripe account**, not your Proceeds wallet. Proceeds creates the charge on your account as a direct charge, so you are the merchant of record and see the payment in your Stripe Dashboard. ## Requirements | Requirement | Detail | | - | - | | Connected Stripe account | A Stripe account that can accept charges, connected in **Settings**. | | Stripe profile | The `profile_…` ID for your Stripe account. Proceeds reads it when you connect, or you can paste it. See [Connect Stripe](#1-connect-stripe). | | Stripe machine-payment requirements | The account has to meet Stripe's prerequisites for MPP. See [Stripe charge](https://mpp.dev/payment-methods/stripe/charge). | | Price of at least **\$0.50** | Stripe rejects card charges under 50 cents. Below \$0.50 the card option is not offered. On a tiered paywall this is the charged tier's price. | | Whole cents | Prices like `0.50`, `0.99`, and `1.25` qualify. A price like `0.505` does not. | | Card payments on for the paywall | On by default. You can turn it off per paywall. | Cards are charged in **USD**. The card amount is the paywall price: a `0.50` USDC price is a 50 cent card charge. > [!NOTE] > > The $0.50 floor is Stripe's minimum card charge. A paywall priced under $0.50 can still be paid on its other rails. It just doesn't offer cards. ## 1. Connect Stripe **1. Open Settings** Open the profile menu at the bottom of the left sidebar and choose **Settings**. **2. Connect with Stripe** Under **Card payments (Stripe)**, click **Connect with Stripe** and approve Proceeds on your Stripe account. You return to Proceeds when it's done. **3. Confirm the connection** Proceeds reads your Stripe profile (`profile_…`) automatically. If Stripe doesn't return one, paste it under **Stripe profile**. Cards stay off until the connection is ready: a profile id, charges enabled, and a live or test mode that matches. A Stripe account can only be linked to one Proceeds account. To disconnect, use Settings, or remove the Proceeds app from your Stripe account. ## 2. Turn on cards for a paywall 1. In **Paywalls**, edit the paywall. 2. Set the **Price** to `0.50` or more, in whole cents. On a tiered paywall each tier is checked on its own, so each tier you want to sell by card has to meet that floor. 3. In **Paywall Details**, check that **Accept card payments (Stripe)** is on. It is on by default. ![Paywall drawer with the price set to 0.500000 USD and Accept card payments (Stripe) switched on. The note under the toggle says Settles to your connected Stripe account.](https://mintcdn.com/proceeds/dzzICcCAByPS4Jec/images/drawer-cards-toggle-on.png?fit=max\&auto=format\&n=dzzICcCAByPS4Jec\&q=85\&s=14ca3463883d8b46cb36a8cd61b67644) Accept card payments (Stripe) turned on The toggle appears once the Stripe connection is ready to take payments (a Stripe profile, charges enabled, and a live or test mode that matches). A connection by itself is not enough. Under it you'll see *Settles to your connected Stripe account.* If an exact price is under \$0.50 or isn't whole cents, the note says the card option isn't offered at this price. On a tiered paywall that note stays on the settlement line when at least one tier qualifies; a tier that doesn't qualify still isn't offered as a card payment. Save the paywall. Changes apply on the next request. ## 3. See the card option in the challenge ```bash theme={null} curl -i https://myproceeds.xyz/api/pay/{serviceId}/{slug} ``` If cards are on and the connection is ready, the `402` response includes a `WWW-Authenticate: Payment` challenge with `method="stripe"` next to your other methods. The decoded `request` for the Stripe challenge looks like this: ```json Illustrative challenge request theme={null} { "amount": "50", "currency": "usd", "decimals": 2, "description": "Access to current-weather", "methodDetails": { "networkId": "profile_…", "paymentMethodTypes": ["card", "link"], "metadata": { "proceeds_paywall_id": "…", "proceeds_service_id": "…" } } } ``` > [!NOTE] > > This example is illustrative. Your values come from your paywall and your connected Stripe account. `amount` is in the smallest currency unit: with `"decimals": 2`, `"50"` is \$0.50. Don't see `method="stripe"`? Check all of these: * **Accept card payments (Stripe)** is on for the paywall. * In **Settings**, the Stripe connection shows **Connected**. That line means the connection is active, it has a Stripe profile id (`profile_…`), charges are enabled, and its live or test mode matches. Anything short of that is spelled out on the status line (profile still needed, charges not enabled, or a live/test mismatch). * The charged price is at least \$0.50 in whole cents. On a tiered paywall, that is the tier the buyer pays. `paymentMethodTypes` tells the buyer's client that a card or a Link account is accepted. ## How buyers pay Buyers and agents pay with a client that supports MPP Stripe charge. The client creates a one-time Shared Payment Token for the charge and retries the request with it. Proceeds confirms the payment on your Stripe account and then proxies your API response. You don't run any Stripe or `mppx` code. For the client side, see the [MPP Stripe charge reference](https://mpp.dev/payment-methods/stripe/charge) and [Link](https://link.com). Share the same charge URL and buyer prompt as for any paywall. See [Sell to agents](/guides/accept-payments-from-agents). ## Reconcile payments Card payments that complete show in [Transactions](/dashboard/transactions) as `Completed`, with the Stripe PaymentIntent (`pi_…`) as the payment reference. Check [Events](/dashboard/events) when a card attempt doesn't show up there. Funds settle in your Stripe account on Stripe's payout schedule, so reconcile them in your Stripe Dashboard. ## Pricing tip Stripe's card processing fees apply to your Stripe account on each charge. Because part of Stripe's fee is a fixed amount per charge, a lower price keeps less of the payment. See [Stripe's pricing](https://stripe.com/pricing). If your calls are cheap, keep card-eligible endpoints at a price that covers fees, or leave cards off and take those calls on [other rails](/guides/configure-pricing). ## Test it When your Stripe connection is in test mode, the console **Test Payment** flow includes a **Card (Stripe test)** option. That is the Stripe connection's mode, not the console **Mainnet mode** switch. See [Test paywalls](/quickstart/test-paywalls). Live card payments use the buyer's own client, as above. > [card] [Configure pricing](/guides/configure-pricing) > > Set prices, including the \$0.50 floor for cards. > [card] [MPP Stripe charge](https://mpp.dev/payment-methods/stripe/charge) > > The protocol reference for buyers and client builders. # Sell to agents Source: https://docs.myproceeds.xyz/guides/accept-payments-from-agents Wrap your API, share a charge URL, get paid per request over x402 or MPP. Agents don't sign up, enter cards, or wait for an invoice. They can pay an HTTP `402` in the same request. Proceeds is how you sell to them: wrap your API, share a charge URL, and watch the payment land. You do not install protocol middleware, and you do not need a marketplace listing. ## What you will do 1. Wrap your API with a service and paywalls 2. Confirm the unpaid URL returns `402` 3. Share the payment URL 4. Watch the payment land, then settle ## 1. Wrap and price your API [Create a service](/quickstart/create-a-service) pointing at your origin, then [add a paywall](/quickstart/add-a-paywall) per billable route. * Enable an EVM network (for example **Base**) so the challenge offers **x402**. x402 is the simpler plug-and-play seller path — HTTP `402` plus a facilitator. [x402 seller quickstart](https://docs.x402.org/getting-started/quickstart-for-sellers) * Enable **Tempo** so the challenge offers **MPP**. MPP is peer-to-peer (no facilitator, wallet UI, receipts) and a better buyer experience, with less ecosystem volume today. [MPP server quickstart](https://mpp.dev/quickstart/server) * Connect Stripe and check that **Accept card payments (Stripe)** is on (it is by default) so the challenge can also offer MPP **Stripe charge**. Buyers with a card or a Link account can pay, and the money settles to your Stripe account. The charged price must be at least \$0.50 in whole cents. See [Accept cards and Link](/guides/accept-cards-and-link). These are different rails on the same charge URL. Prefer clear slugs and descriptions — they show up on the paywall and in the per-service overflow drawer. ## 2. Confirm the 402 ```bash theme={null} curl -i https://myproceeds.xyz/api/pay/{serviceId}/{slug} ``` You should get `402 Payment Required` with price and payment terms. The challenge lists every rail the paywall accepts, including MPP when Tempo is enabled, and cards and Link when [card payments](/guides/accept-cards-and-link) are on. ## 3. Share the payment URL This is the go-to-market step: copy the payment URL from the paywall and put it in your docs, `llms.txt`, README, or a prompt you give buyers. ```text theme={null} https://myproceeds.xyz/api/pay/{serviceId}/{slug} ``` Paste-ready buyer prompt: ```text theme={null} Call https://myproceeds.xyz/api/pay/{serviceId}/{slug} and pay if challenged. Return the response body. ``` The client picks x402, MPP, or Circle Nanopayments from the challenge on this URL. Buyers typically use [AgentCash](/agents/agentcash) (x402 + MPP), [Tempo Wallet](/agents/tempo-wallet) (MPP), or [Circle Agent Stack](/agents/circle-agent-stack) (x402). Smoke-test yourself: [Make your first payment](/quickstart/make-your-first-payment) or the console **Test Payment** flow. > [!NOTE] > > Proceeds does not list your API on x402scan, MPPScan, or a marketplace. Share the charge URL yourself. Use the per-service overflow drawer to write agent guidance and link your own docs — see [Help agents call your API](/guides/api-discovery). ## 4. Watch the payment land * [Transactions](/dashboard/transactions) for payment state (`Completed` / `Failed`) * [Events](/dashboard/events) for the request trail (`REQUEST` → `SUCCESS`) * [Webhooks](/dashboard/webhooks) if your backend should react * [Wallet](/dashboard/wallet) to withdraw onchain or [off-ramp to a bank](/guides/settle-to-wallet-or-bank) ## Tips * Write **Agent guidance** in the per-service overflow drawer as instructions to an agent, not marketing copy * Mark health and docs paths as **Free routes** so agents don't pay for them * For sub-cent prices, see [Configure pricing](/guides/configure-pricing). Don't assume nanopayments on Base are instant. > [card] [Create a service](/quickstart/create-a-service) > > Start wrapping your API. > [card] [Help agents call your API](/guides/api-discovery) > > Agent guidance and docs links on the service. # Help agents call your API Source: https://docs.myproceeds.xyz/guides/api-discovery Add agent guidance and docs links on the service. Share charge URLs yourself. On each service, the dashboard overflow menu opens a drawer where you write agent guidance, link your docs, and mark free routes. That metadata helps an agent succeed after you hand them a charge URL. Proceeds does **not** list your API on x402scan, MPPScan, the MPP directory, or any marketplace. Public registry listing is not a Proceeds go-to-market path today. ## What to do instead 1. [Add a paywall](/quickstart/add-a-paywall) and copy the charge URL. 2. Open the per-service overflow drawer and fill in guidance an agent can follow. 3. Put the charge URL in your README, `llms.txt`, docs, or a setup prompt. ```text theme={null} https://myproceeds.xyz/api/pay/{serviceId}/{slug} ``` > [!TIP] > > On Pro, you can share the same charge URL on a hostname you own. See [Custom domains](/guides/custom-domains). An unpaid GET to that URL returns `402` with price and payment terms. That challenge is how a compatible client learns cost — you do not need a registry for the payment to work. ## What you configure On the service overflow menu, open the drawer: | Field | Purpose | | - | - | | **Categories** | Tags you choose for your own docs | | **Contact email** | Public contact if you want one on the generated OpenAPI doc | | **Homepage** | Your human docs landing page | | **API reference** | Link to your API reference | | **llms.txt / docs for LLMs** | Machine-readable docs agents can load | | **Agent guidance** | Short instructions for how to call each endpoint | | **Free routes** | Paths that should not return `402` | | **Wallet-gated routes** | Paths that require wallet auth but no payment | Proceeds auto-drafts **Agent guidance** from paywall names and descriptions. Review it before saving — write it as instructions to an agent, not marketing copy. Only **enabled** paywalls are included. > [!TIP] > > Keep paywall **names** and **descriptions** accurate. They feed the drawer and the auto-drafted guidance. ## Generated OpenAPI docs The drawer can generate OpenAPI documents from your service and paywalls. Copy the URL from the drawer if you want to host it or hand it to an agent. Treat it as a file you share, not a listing. When **Homepage** or **API reference** is set, the generated spec includes `externalDocs.url` (API reference if set, otherwise homepage). Agent-readiness scorers that look for that field can score a Proceeds wrap Fully agent-ready and runtime-verified. That is not a listing. > [!NOTE] > > The MPP document is only produced when the service has Tempo-enabled paywalls. x402-only services get the x402 document. They are separate files. Protocol references (how those ecosystems describe finding paid APIs, not a Proceeds listing): * [MPP discovery](https://mpp.dev/advanced/discovery) * [x402 seller quickstart](https://docs.x402.org/getting-started/quickstart-for-sellers) ## Related * [Sell to agents](/guides/accept-payments-from-agents) — wrap, share a URL, get paid * [Pay with an agent](/agents/overview) — buyer wallets (AgentCash, Tempo Wallet, Circle) > [card] [Sell to agents](/guides/accept-payments-from-agents) > > The seller playbook. > [card] [Add a paywall](/quickstart/add-a-paywall) > > Copy the charge URL. # Configure pricing Source: https://docs.myproceeds.xyz/guides/configure-pricing Set per-endpoint USDC prices, including sub-cent amounts. Each paywall has its own price, denominated in USDC. Pricing lives on the paywall, not the service, so a single service can mix free routes, micro-priced routes, and high-value routes. ## Set a price In **Paywalls**, edit a paywall and set **Price**. ## Exact vs Tiered Price is a toggle on the paywall form: * **Exact** — one USDC price per request * **Tiered** — named tiers, each with its own USDC price. Buyers pick a tier when they pay. Proceeds sends the chosen name upstream as `x-payment-tier`. For each tier, set a **name** and a **price**. Open the row chevron if that tier should override the upstream path or query parameters. The paywall list shows a min–max range when Tiered is on. Configure Tiered in the dashboard. The REST paywall create still takes a single Exact `price`. | Range | Use case | | - | - | | `< $0.01` | Per-token inference, per-query data lookups, per-call agent tools. Use [Circle Nanopayments](https://developers.circle.com/gateway/nanopayments). | | `$0.01 – $1.00` | Standard per-call API monetization. x402 or MPP both work well. | | `> $1.00` | Higher-value endpoints — premium data, premium models, batch jobs. | > [!NOTE] > > Sub-cent pricing requires a payment method that supports it. Today that's Circle Nanopayments via Circle Gateway. > [!NOTE] > > Card and Link payments need a charged price of **\$0.50 or more**, in whole cents. On a tiered paywall each tier is checked on its own. A price under that floor can still be paid on its other rails, but it doesn't offer cards. See [Accept cards and Link](/guides/accept-cards-and-link). ## Mix paid and free routes Not every endpoint has to be paid. Add paywalls only to the routes you want to monetize; unprotected routes on your origin remain free and aren't proxied through Proceeds. ## Change a price Editing **Price** on a paywall takes effect on the next request. Existing in-flight payments are unaffected. > [!TIP] > > When you change a price, also update any client-side caches that store the challenge. Stale challenges will be rejected at verification. ## Next > [card] [Standards](https://docs.x402.org/introduction) > > How x402, MPP, and Circle Nanopayments handle different price ranges. > [card] [Wallet](/dashboard/wallet) > > See balances across rails and chains as priced requests come in. # Custom domains Source: https://docs.myproceeds.xyz/guides/custom-domains Serve your charge URLs from a hostname you own. A custom domain changes the origin of your charge URLs. The path stays the same. ```text theme={null} https://myproceeds.xyz/api/pay/{serviceId}/{slug} https://pay.acme.com/api/pay/{serviceId}/{slug} ``` Charge URLs switch to your domain only after it is fully active. ## Requirements * Your account is on the **Pro** plan. On Free and Starter, the **Custom Domain** menu item is disabled and shows an upgrade hint. * Each service has at most one custom domain. * A hostname can belong to only one service across Proceeds. ## Add a domain **1. Open the drawer** On **Paywalls**, open the service's overflow menu and choose **Custom Domain**. **2. Enter a hostname** Use a subdomain you control, such as `pay.acme.com`, and click **Add**. **3. Create the DNS records** Add the records shown in the drawer at your DNS provider. The drawer checks again until the domain is `ACTIVE`. ## Configure DNS | Hostname | Record | Value | | - | - | - | | Subdomain (`pay.acme.com`) | `CNAME` | Target shown in the drawer, usually `cname.vercel-dns.com` | | Apex (`acme.com`) | `A` | `76.76.21.21` | | Either, if the drawer asks | `TXT` | Ownership challenge shown in the drawer | > [!NOTE] > > Copy record values from the drawer. The recommended target can differ per domain. ## Domain status | Status | Meaning | What to do | | - | - | - | | `PENDING_VERIFICATION` | Another account already claims the hostname | Add the `TXT` record and the pointing record | | `PENDING_DNS` | Ownership is confirmed. DNS does not point to Proceeds yet | Add or fix the `CNAME` or `A` record | | `ACTIVE` | Verified, DNS is correct, and the TLS certificate is issued | Nothing | While the domain is pending, the drawer checks every 15 seconds and whenever you return to the tab. Checking stops at `ACTIVE`. TLS certificates are issued automatically. ## When the domain is active Copy buttons, integration snippets, and **Test Payment** switch to `https://{hostname}`. Nothing else changes: the service and paywall are still identified by the path, and pricing, networks, and settlement behave the same. The legacy `/api/x402/pay/...` and `/api/mpp/pay/...` paths also work on your domain. ## What the domain serves Your domain serves only charge URLs: `/api/pay/...` and the legacy aliases. Every other path returns `404`, so the domain never exposes the dashboard, the marketing site, or the rest of the API. Responses on your domain send host-only HSTS with a one-day max age. Proceeds does not apply preload HSTS or other policy to your parent zone. ## Hostname rules Proceeds rejects hostnames that look like platform or discovery hosts: * Hostnames ending in `myproceeds.xyz`, `vercel.app`, `vercel-dns.com`, or `localhost` * Hostnames whose first label ends in `-x402` or `-mpp`, such as `weather-x402.acme.com` ## Remove a domain Open the drawer and click **Remove**. Proceeds releases the hostname, and charge URLs go back to `myproceeds.xyz` immediately. Deleting the service also releases its domain. > [!WARNING] > > Agents holding a charge URL on your domain stop reaching Proceeds once the domain is removed. Update shared links first. > [card] [Paywalls](/dashboard/paywalls) > > Manage services and charge URLs. > [card] [Agent guidance](/guides/api-discovery) > > Share charge URLs with agents. > [card] [Production checklist](/guides/production-checklist) > > Check everything before mainnet. # Custom headers and query parameters Source: https://docs.myproceeds.xyz/guides/custom-headers-and-params Forward extra request data to the upstream on a per-paywall basis. Custom headers and query parameters live on the paywall, not the service. Use them when one specific endpoint needs additional context that the rest of the service doesn't. ## Custom headers Add a header name and value on the paywall. Proceeds attaches the header to every proxied request before forwarding it to the upstream `Target URL`. Common uses: * Pinning an upstream API version: `Accept-Version: 2026-04-01` * Identifying the calling product to a multi-tenant upstream: `X-Tenant: weather` * Triggering upstream feature flags ## Query parameters Add a parameter name and value on the paywall. Proceeds appends the parameter to the upstream URL. Common uses: * Pinning a model name on an inference API: `model=claude-opus-4-7` * Forcing a specific data source: `source=premium` * Locking a region: `region=us-east-1` ## Layering Headers and params **stack** on top of upstream auth and the client's own request: 1. Proceeds attaches upstream auth (configured at the service level). 2. Proceeds attaches paywall custom headers and query parameters. 3. The client's request body and additional query parameters pass through unchanged. If the same header name appears on both the paywall and the client request, the client value wins for non-auth headers. Auth headers configured via [Forward upstream auth](/guides/forward-upstream-auth) always win — they can't be overridden by the client. > [!TIP] > > Use custom headers to pin sensitive defaults that you don't want clients to override, like an API version or a tenant ID. # Forward upstream auth Source: https://docs.myproceeds.xyz/guides/forward-upstream-auth Keep upstream API credentials inside Proceeds so clients never see them. Most upstream APIs require credentials. Proceeds attaches those credentials to the proxied request on the server side, so your end users only see the Proceeds URL — never your bearer token, API key, or secret. ## Pick an auth method Configure auth at the **service** level. Every paywall in the service inherits it. | Method | When to use | | - | - | | `none` | The upstream is fully public. | | `bearer` | The upstream expects `Authorization: Bearer `. | | `token` | The upstream expects a static token in a header. | | `x-api-key` | The upstream expects `X-API-Key: `. | | `custom-header` | Any other header pair. You provide the header name and value. | | `query-param` | The upstream reads the credential from the query string. | | `bearer-customer` | Bearer token plus a customer ID. | | `x-api-key-secret` | Two-part API key + secret pair. | | `json-body-field` | The upstream reads the credential from a JSON body field. | ## What Proceeds collects Depending on the method, Proceeds collects values such as: * Bearer token * Token * API key * Header name and header value * Parameter name and parameter value * Customer ID * API secret * Field name and field value These are stored encrypted at rest and only ever sent to the upstream `Target URL` — never returned to clients. ## Change credentials Editing auth on a service rotates the credentials Proceeds sends upstream on the next request. There's no client-side change required. > [!WARNING] > > Always rotate upstream credentials in Proceeds first, then in your origin. Rotating in the wrong order will break in-flight requests. ## Next > [card] [Custom headers and query parameters](/guides/custom-headers-and-params) > > Forward extra headers or query params on a per-paywall basis. # Production checklist Source: https://docs.myproceeds.xyz/guides/production-checklist Confirm settings before moving a service from testnet to mainnet. Walk this list before you flip a service to **Mainnet** mode. Each item is a single check; do all of them. ## Service configuration * [ ] **Mode** is set to `Mainnet`. * [ ] **Base URL** points at the production origin (`https://api.myproceeds.xyz`). * [ ] **Auth method** matches the production upstream (production secrets, not test secrets). * [ ] **Networks** include only the chains you intend to accept on. ## Paywall configuration * [ ] **Pricing** is final. Update any client-side caches that store the challenge. * [ ] **Allowed HTTP methods** match the production endpoint. * [ ] **Target URL** points at the production upstream path. * [ ] **Custom headers** and **query parameters** are correct. * [ ] Paywall passes **Test** in the dashboard. ## Agent guidance * [ ] Service **categories**, contact email, and docs links are filled in via the per-service overflow drawer. * [ ] **Homepage** or **API reference** is set so the generated OpenAPI includes `externalDocs.url`. * [ ] **Agent guidance** is accurate for agents. Write it as instructions, not marketing. Do not treat registry listing (x402scan, MPPScan) as a launch requirement. Share the charge URL. See [Help agents call your API](/guides/api-discovery). ## End-to-end behavior * [ ] The charge URL returns `402` with no payment, and `200` with valid payment. * [ ] An MPP client can pay that same URL for any Tempo-enabled paywalls. * [ ] Transactions show `Completed` for a real test payment (nanopayments: `Pending` → `Completed` after Gateway batch settlement). * [ ] Events show `REQUEST → SUCCESS`. * [ ] If you use a [custom domain](/guides/custom-domains), its status is `ACTIVE` and the charge URL returns `402` on that hostname. ## Settlement and operations * [ ] Wallet balances appear correctly for the chains you enabled. * [ ] You know how to [withdraw to a wallet](/guides/settle-to-wallet-or-bank) you control. * [ ] If you need USD, connect a US bank in **Settings** and complete Bridge **KYC/KYB** for [ACH bank off-ramp](/guides/settle-to-wallet-or-bank#off-ramp-to-a-bank-via-ach). * [ ] [Webhooks](/dashboard/webhooks) are configured and signature verification is tested (if you consume events on your server). * [ ] You can reach the dashboard if a paid request fails. When every box is checked, you're ready. > [card] [Monitor payments](/quickstart/monitor-payments) > > How to watch transactions, events, and wallet balances in production. # Restrict HTTP methods Source: https://docs.myproceeds.xyz/guides/restrict-http-methods Limit a paywall to specific HTTP methods so you only charge for the calls you intend to. Every paywall declares the HTTP methods it accepts. Requests using any other method are rejected before payment is considered. ## Supported methods `GET`, `POST`, `PUT`, `PATCH`. You must select at least one method per paywall. ## Common patterns | API shape | Methods to enable | | - | - | | Read-only data API | `GET` | | Inference or agent tool | `POST` | | Idempotent updates | `PUT` | | Partial updates | `PATCH` | | RPC-style endpoint that accepts both | `POST`, `GET` | ## Why this matters * **Cost discipline.** A `POST` paywall won't accidentally charge for a `GET` health-check. * **Security.** Methods you don't explicitly allow can't be used to call your origin through Proceeds. * **Predictability.** Clients see a consistent interface — they know exactly which methods are paid. ## Change allowed methods Edit the paywall and toggle methods. The change takes effect immediately. Existing payments for previously-allowed methods remain valid. > [!NOTE] > > Restricting methods does not affect routes elsewhere on your origin — only the route protected by this paywall. # Settle to a wallet or bank Source: https://docs.myproceeds.xyz/guides/settle-to-wallet-or-bank Withdraw USDC to a wallet you control, or off-ramp to a US bank account via ACH. When agents pay your paywalls, USDC accumulates in your Proceeds wallet. Settle in two ways: 1. **Withdraw to a wallet** — send USDC on the same chain to an address you control 2. **Off-ramp to a bank via ACH** — convert USDC to USD and deposit it in a US bank account using Bridge ## Withdraw to a wallet On the [Wallet](/dashboard/wallet) page: 1. Open **Withdraw** on the holding you want to settle 2. Enter an amount (or **Max**) 3. Set **Destination** to the same chain (for example **Base**) 4. Click **Withdraw** Withdrawals route **per chain**. Circle balances settle from Gateway holdings first. Tempo balances are held and withdrawn as [USDC.e](https://tempo.xyz/developers/docs/guide/bridge-layerzero#usdce-and-native-usdc), the bridged USDC on Tempo. Bridging USDC.e from Tempo to native USDC on Ethereum is fee-free via Stargate. ## Off-ramp to a bank via ACH Proceeds can turn USDC into dollars and deposit them in a US bank account via **ACH**, powered by [Bridge](https://bridge.xyz). Connect a bank once in **Settings**, then choose **Bank (ACH)** as the withdrawal destination on the [Wallet](/dashboard/wallet) page. ### What you need * A **US bank account** that can receive ACH deposits * Your **full legal name** (individual) or business details (company) * Government-issued ID ready for Bridge identity verification ### 1. Connect a bank account Bank linking lives under **Settings** (profile menu → **Settings**), in the **Bank account** section: **1. Open Settings** Open the profile menu in the bottom-left of the dashboard and choose **Settings**. **2. Choose Individual or Business** Under **Bank account**, select **Individual (KYC)** or **Business (KYB)**. **3. Enter your details** Provide your full legal name. Your account email is prefilled. **4. Connect via ACH** Click **Connect Bank Account via ACH**. Proceeds opens Bridge identity verification (hosted with Persona). **5. Complete verification in one session** Finish every Bridge/Persona step in a single session — progress is not saved if you exit early. Have a passport or ID card ready. ### 2. Withdraw via Bank (ACH) After your bank is linked, off-ramp from the [Wallet](/dashboard/wallet) page: **1. Open Withdraw** On **Wallet**, open **Withdraw** for the holding you want to cash out (for example **Base**). **2. Enter the amount** Enter how much USDC to send, or click **Max**. The modal shows the available balance for that source. **3. Choose Bank (ACH)** Open the **Destination** dropdown and select **Bank (ACH)** — not the chain destination used for onchain withdrawals. **4. Confirm** Click **Withdraw**. Bridge converts USDC → USD and deposits it to your linked bank via ACH. > [!NOTE] > > A **0.50%** fee applies to bank withdrawals. Off-ramp is powered by Bridge. ## Which path? | Goal | Path | | - | - | | Keep USDC onchain | Withdraw with **Destination** set to a chain | | Need USD in a US bank | Connect a bank in Settings, then withdraw with **Destination** = **Bank (ACH)** | | Reconcile revenue | Cross-check [Transactions](/dashboard/transactions) against Wallet | > [card] [Wallet dashboard](/dashboard/wallet) > > Holdings, Withdraw modal, and ACH destination. > [card] [Monitor payments](/quickstart/monitor-payments) > > Confirm revenue before you settle. # Supported blockchains Source: https://docs.myproceeds.xyz/guides/supported-blockchains Networks Proceeds supports today and how to test against their testnets. Proceeds is multi-chain by design. A paywall can accept payments on more than one network, and a service can mix paywalls that target different networks. ## Networks Proceeds supports the following blockchains: * **Base** * **Solana** * **Tempo** Each blockchain has a matching testnet for development and validation. ### USDC.e on Tempo Tempo does not have native USDC. Mainnet payments on Tempo settle in **USDC.e** — the bridged representation of USDC, backed 1:1 by native USDC in Stargate liquidity infrastructure. All MPP transactions on Proceeds mainnet use USDC.e. ## Test against the testnets Toggle **Mainnet mode** in your profile menu to switch between mainnet and the matching testnet: * **Mainnet mode on** — Paywalls accept real USDC on Base, and [USDC.e](https://tempo.xyz/developers/docs/guide/bridge-layerzero#usdce-and-native-usdc) on Tempo. * **Mainnet mode off** — Paywalls accept testnet USDC on Base Sepolia and Solana Devnet, as well as pathUSD on Tempo Testnet. The toggle lives in the profile modal alongside **Settings**, **Get help**, **Docs**, and **Terms and privacy**, with your wallet address at the bottom. > [!TIP] > > Develop with **Mainnet mode off** until your service passes the [Production checklist](/guides/production-checklist), then flip the toggle on to start accepting real USDC. ## Get testnet funds Each network uses its own test token. Funds on one network cannot pay a paywall on another. | Network | Token | Faucet | | - | - | - | | Base Sepolia | Testnet USDC | [Proceeds faucet](https://testmint.myproceeds.xyz/) | | Tempo Testnet | pathUSD | [Tempo faucet](https://tempo.xyz/developers/docs/quickstart/faucet) | > [!NOTE] > > The [Proceeds faucet](https://testmint.myproceeds.xyz/) mints testnet USDC for Base Sepolia. It does not mint pathUSD. MPP paywalls on Tempo Testnet require pathUSD from the [Tempo faucet](https://tempo.xyz/developers/docs/quickstart/faucet). ### Tokens by mode When **Mainnet mode** is off: | Network | Token | | - | - | | Base Sepolia | Testnet USDC | | Tempo Testnet | pathUSD | When **Mainnet mode** is on: | Network | Token | | - | - | | Base | USDC | | Tempo | USDC.e | Tempo has no native USDC. Mainnet Tempo paywalls settle in USDC.e. ## Pick networks per paywall Network choice starts when you [create a service](/quickstart/create-a-service). On **New Service**, the **Networks** field is the allowlist of chains buyers can pay on for that service. Each [paywall](/dashboard/paywalls) under the service then accepts a subset of those networks. Buyers call one charge URL. The networks decide which rails the `402` challenge offers — for example x402 on Base and Solana, and MPP on Tempo. Match networks to the payment standard the route needs: | Standard | Networks | How buyers pay | | - | - | - | | **x402** | **Base**, **Solana** | Agents call the charge URL and settle on that chain | | **MPP** | **Tempo** | Agents call the same charge URL and settle in USDC.e (or pathUSD on testnet) | | **Circle Nanopayments** | Circle Gateway (via x402) | Any wallet with a [Circle Gateway](https://developers.circle.com/gateway/nanopayments) balance can pay the charge URL over x402 — Circle Nanopayments sit on top of x402, not a separate network picker | ## Reconcile balances The [Wallet](/dashboard/wallet) page shows balances across every supported chain and rail. Withdrawals route per-chain — pick the chain on the withdrawal form to settle to a wallet you control. For bank payouts and the full settlement model, see [Settle to a wallet or bank](/guides/settle-to-wallet-or-bank). > [card] [Production checklist](/guides/production-checklist) > > Confirm networks, pricing, and auth before going live. # Troubleshooting Source: https://docs.myproceeds.xyz/guides/troubleshooting Resolve challenge, payment, and fulfillment failures. When a paid request behaves unexpectedly, work through these checks in order. Most issues fall into one of four buckets. ## I get a `402` but never the resource The challenge is being returned, but the retry isn't producing a `200`. Check: * The client retried with a valid payment payload (signature, network, and amount must match the challenge). * The transaction shows `Completed` in [Transactions](/dashboard/transactions). * The events stream shows `REQUEST` followed by `SUCCESS` in [Events](/dashboard/events). If you see an `ERROR` instead of `SUCCESS`, settlement or the upstream call failed — see the next section. ## Payment or upstream fulfillment failed The events stream shows an `ERROR` instead of `SUCCESS`, and the transaction is `Failed`. Check, in order: * Paywall **Target URL** is correct and reachable from Proceeds. * Paywall **custom headers** and **query parameters** are valid. * Service **auth method** matches what your upstream expects — see [Forward upstream auth](/guides/forward-upstream-auth). Open the matching `Error` event for the underlying reason. ## The wrong route is being charged Requests are matching the wrong paywall, or your origin is being called with the wrong path. Check: * The paywall **slug** matches the URL the client called. * The paywall **Target URL** points at the correct upstream path. * The generated URL pattern: `/api/pay/{serviceId}/{slug}`. ## MPP is not available The challenge on `/api/pay/{serviceId}/{slug}` does not offer MPP. Check: * Tempo is included in the paywall's supported networks. * The client is calling that same charge URL with an MPP-aware flow such as `mppx`. If MPP is missing for a paywall that should support it, re-edit the paywall and ensure Tempo is selected under **Networks**. ## Agent payments aren't going through You're paying from an agent in Claude Code, Cursor, or Codex and the call fails. Check: * The agent wallet is funded with USDC. For [Circle Agent Stack](/agents/circle-agent-stack), confirm you deposited into Gateway, not just the onchain wallet. * The wallet speaks a standard advertised in the challenge and is funded on a network the paywall accepts. [Tempo Wallet](/agents/tempo-wallet) pays over MPP, [Circle Agent Stack](/agents/circle-agent-stack) pays over x402, and [AgentCash](/agents/agentcash) handles either. All three call `/api/pay/{serviceId}/{slug}`. * The wallet tool's CLI, skill, or MCP server is installed in the IDE where your agent runs — see [Pay with an agent](/agents/overview). ## My custom domain is stuck pending The [Custom Domain](/guides/custom-domains) drawer never reaches `ACTIVE`. Check: * `PENDING_VERIFICATION` — the `TXT` ownership record from the drawer exists at your DNS provider, in addition to the pointing record. * `PENDING_DNS` — a subdomain has a `CNAME` to the drawer's target, or an apex has an `A` record to `76.76.21.21`. Remove conflicting `A`, `AAAA`, or `CNAME` records on the same name. * DNS changes can take time to propagate. Leave the drawer open, or come back later; it checks again on focus. A `404` on any path other than `/api/pay/...` is expected. Custom domains serve only charge URLs. ## Still stuck? > [card] [Contact support](mailto:company@myproceeds.xyz) > > Email us — include the `meta.requestId` from the failing response if you have it. > [card] [Production checklist](/guides/production-checklist) > > Confirm settings before moving a service to mainnet. > [card] [Concepts](/concepts) > > Refresh on services, paywalls, transactions, and events. # How it works Source: https://docs.myproceeds.xyz/how-it-works The Proceeds payment lifecycle, from request to fulfillment, and where to observe each step. When a client calls a Proceeds-protected URL, Proceeds returns a `402 Payment Required` with a challenge. The client pays using [x402](https://docs.x402.org/introduction), [MPP](https://mpp.dev/overview), or [Circle Nanopayments](https://developers.circle.com/gateway/nanopayments), retries with proof, and Proceeds verifies the payment before proxying the upstream response. > [!NOTE] > > You do not run `mppx` or x402 middleware. Proceeds issues the challenge, verifies the credential, and proxies upstream. Your origin never sees `Authorization: Payment` or x402 payment headers. ## The five steps **1. Request** `GET https://myproceeds.xyz/api/pay/{serviceId}/{slug}` Proceeds matches the URL to a paywall, applies HTTP method restrictions, and returns a challenge. **2. Challenge** `402 Payment Required` The challenge advertises the price, supported networks, and accepted standards. Clients use the challenge to decide how to pay. **3. Pay** The client signs a payment authorization. Proceeds is neutral to the underlying mechanism: * **x402**: an EIP-3009 USDC authorization. Facilitator verifies and settles. Simpler seller path, more buyers today. * **MPP**: a `Payment` credential from an MPP-aware wallet (Tempo Wallet, AgentCash). Peer-to-peer, no facilitator, better buyer DX. * **MPP Stripe charge**: a card or Link account pays with a one-time Shared Payment Token. Proceeds confirms the charge on your connected Stripe account, and it settles there. The charged price has to be at least \$0.50 in whole cents. See [Accept cards and Link](/guides/accept-cards-and-link). * **Circle Nanopayments**: an offchain Gateway authorization, settled in batch. The Proceeds path for sub-cent volume — not an MPP session. **4. Retry** The client retries the request with proof of payment in the request headers. Proceeds verifies the payload before forwarding anything upstream. **5. Deliver** Proceeds proxies the request to your `Target URL` — with custom headers, query parameters, and upstream auth attached — and streams the response back to the client. ## What Proceeds does at each step | Step | What Proceeds does | | - | - | | Request | Resolves `serviceId` and `slug`, checks the HTTP method, returns a `402` challenge. | | Pay | Nothing — the client holds the keys and signs the payment. | | Retry | Validates the payment payload against the configured network and standard. | | Deliver | Forwards the request to the upstream API, attaches upstream auth, and proxies the response. | ## Observability Proceeds writes two complementary records for every protected request. * [**Transactions**](/dashboard/transactions) track payment state. Standard x402 and MPP typically land as `Completed` or `Failed`. Circle Nanopayments go `Pending → Completed` while Gateway settles the batch onchain. * [**Events**](/dashboard/events) track lifecycle steps. Proceeds emits `REQUEST`, `SUCCESS`, and `ERROR` events. When a paid request behaves unexpectedly, start in Events to find the step that failed, then cross-check the matching record in Transactions. > [!NOTE] > > MPP clients may get a `Payment-Receipt` header. That is for the buyer. You reconcile from Transactions and Events, not from the receipt. > [card] [Troubleshooting](/guides/troubleshooting) > > A short playbook for the most common challenge, payment, and fulfillment failures. # What is Proceeds? Source: https://docs.myproceeds.xyz/index Wrap any HTTP API with a USDC paywall. Agents pay per request over x402 or MPP. Proceeds puts a USDC paywall in front of any HTTP endpoint without changing your backend. You wrap a route, share a charge URL, an agent pays the `402`, and the money lands in your Proceeds wallet. When money starts moving, run the business from the dashboard: [Transactions](/dashboard/transactions), [Events](/dashboard/events), [Webhooks](/dashboard/webhooks) to your server, and [Wallet](/dashboard/wallet) to withdraw onchain or off-ramp to a US bank via ACH. ## The seller path **1. Wrap your API** [Create a service](/quickstart/create-a-service) pointing at your origin, then [add a paywall](/quickstart/add-a-paywall) for each billable route. Pick **Testnet** while you build. **2. Get a 402** Copy the charge URL and request it unpaid: ```bash theme={null} curl -i https://myproceeds.xyz/api/pay/{serviceId}/{slug} ``` You should get `402 Payment Required` with price and payment terms. That URL is what you give buyers. **3. An agent pays — money lands** Point a funded agent at that URL. It pays the `402` and retries; Proceeds verifies and proxies your API response. Confirm the payment on [Transactions](/dashboard/transactions) and the balance on [Wallet](/dashboard/wallet). ```text theme={null} Call https://myproceeds.xyz/api/pay/{serviceId}/{slug} and pay if challenged. Return the response body. ``` > [card] [Create a service](/quickstart/create-a-service) > > Point Proceeds at your origin. > [card] [Add a paywall](/quickstart/add-a-paywall) > > Price a route and copy the charge URL. x402 and MPP are different rails on one charge URL. The `402` challenge tells the client which rail to use. > [accordion] x402 — simpler seller path > > HTTP `402 Payment Required` with a facilitator. Enable an EVM network (for example Base) on the service so the challenge offers x402. > > Protocol docs: [x402 seller quickstart](https://docs.x402.org/getting-started/quickstart-for-sellers). Use those when you self-host middleware. Use Proceeds when you want the wrap without touching your server. > [accordion] MPP — better buyer DX, less volume > > Peer-to-peer Machine Payments Protocol: no facilitator, wallet UI, receipts. Enable **Tempo** on the service so the challenge offers MPP. Agents typically pay with Tempo Wallet or AgentCash. > > Protocol docs: [MPP server quickstart](https://mpp.dev/quickstart/server). Use those when you embed `mppx` in your own server. Use Proceeds when you want the wrap. ## Prerequisites * A public HTTP API you can point Proceeds at * A Proceeds account at [myproceeds.xyz](https://myproceeds.xyz) * **USDC** prices (6 decimals). [What is USDC](https://developers.circle.com/stablecoins/what-is-usdc) You don't need to be a blockchain developer. If you can deploy an HTTP API and run curl, you can sell. ## How the docs are organized * **Getting Started** — wrap a service, add a paywall, test the `402`, watch the first payment * **Guides** — sell to agents, pricing, headers, settlement, production * **Manage** — dashboard: paywalls, transactions, events, wallet, API keys, webhooks * **API Reference** — REST for services, paywalls, transactions, and events * **Agent Wallets** — tools buyers use to pay your URLs ## Buying instead of selling? If you are an agent trying to pay someone else's endpoint, start at [Set up an agent wallet](/quickstart/set-up-an-agent-wallet). > [!TIP] > > Building on testnet? See [Test paywalls](/quickstart/test-paywalls) for faucets and the console **Test Payment** flow. # Add a paywall Source: https://docs.myproceeds.xyz/quickstart/add-a-paywall Price a route under a service. Agents hit the URL, pay the 402, and get your API response. A **paywall** is where the money happens. It protects one route: price in USDC, methods, path — Proceeds generates the public payment URL. ## Before you start * An existing [service](/quickstart/create-a-service) * For the API path: an API key with `paywalls:write` ## Using the dashboard **1. Open the service** On **Paywalls**, expand the service and click **New Paywall**. **2. Fill in the form** | Field | Example | | - | - | | Name | `Current weather` | | Slug | `current-weather` (or click **Generate**) | | Allowed HTTP methods | `GET` | | Path | Upstream path under the service base URL | | Query parameters / custom headers | Optional | | Price | Amount in USDC | **3. Save & Activate** Copy the payment URL: ```text theme={null} https://myproceeds.xyz/api/pay/{serviceId}/{slug} ``` > [!TIP] > > Use clear slugs and descriptions — they show up in transactions, events, and [agent guidance](/guides/api-discovery). ## Using the API > [!NOTE] > > In the API, `price` is USDC in **smallest units** (6 decimals) as a string. `"50000"` = `$0.05`. That field is Exact pricing. Set **Tiered** prices in the dashboard. ```bash cURL theme={null} curl -X POST https://api.myproceeds.xyz/v1/paywalls \ -H "Authorization: Bearer mpk_your_key_here" \ -H "Content-Type: application/json" \ -d '{ "serviceId": "YOUR_SERVICE_ID", "slug": "current-weather", "name": "Current weather", "description": "Latest conditions for a location", "targetUrl": "https://api.example.com/v1/weather/current", "price": "50000", "currency": "USDC", "allowedMethods": ["GET"], "networks": ["base-sepolia", "tempo-testnet"], "enabled": true }' ``` ```javascript JavaScript theme={null} const response = await fetch("https://api.myproceeds.xyz/v1/paywalls", { method: "POST", headers: { Authorization: "Bearer mpk_your_key_here", "Content-Type": "application/json", }, body: JSON.stringify({ serviceId: "YOUR_SERVICE_ID", slug: "current-weather", name: "Current weather", description: "Latest conditions for a location", targetUrl: "https://api.example.com/v1/weather/current", price: "50000", // $0.05 USDC currency: "USDC", allowedMethods: ["GET"], networks: ["base-sepolia", "tempo-testnet"], enabled: true, }), }); const { data: paywall } = await response.json(); ``` Full reference: [Create a paywall (API)](/api-reference/paywalls/create-a-paywall). ## Verify the challenge ```bash theme={null} curl -i https://myproceeds.xyz/api/pay/{serviceId}/current-weather ``` You should get `402 Payment Required`. x402 v2 puts terms in the `PAYMENT-REQUIRED` header. Older tutorials use `X-PAYMENT` — that is v1. ## Next > [card] [Test paywalls](/quickstart/test-paywalls) > > Run Test Payment in the console. First 200, no mainnet USDC. # Create a service Source: https://docs.myproceeds.xyz/quickstart/create-a-service Point Proceeds at your API. One service per product — then add paywalls under it. Everything in Proceeds starts with a **service**. It wraps one API: base URL, upstream auth, networks, and testnet vs mainnet. Paywalls live under it. Create one from the dashboard or with a single API call. ## Before you start * A Proceeds account * A public HTTP API base URL (for example `https://api.example.com`) * For the API path: an API key with `services:write` — see [API Keys](/dashboard/api-keys) ## Using the dashboard **1. Open Paywalls** In the dashboard, go to **Paywalls** and click **New Service**. **2. Fill in the form** | Field | Example | | - | - | | Service name | `weather-api` | | Description | Optional | | Base URL | `https://api.example.com` | | Authentication method | How Proceeds authenticates upstream — see [Forward upstream auth](/guides/forward-upstream-auth) | | Mode | **Testnet** while building, **Mainnet** when you ship | | Networks | At least one — include **Tempo** if you want to accept MPP | **3. Create Service** A name, base URL, and at least one network are required. Everything else can wait. ## Using the API ```bash cURL theme={null} curl -X POST https://api.myproceeds.xyz/v1/services \ -H "Authorization: Bearer mpk_your_key_here" \ -H "Content-Type: application/json" \ -d '{ "name": "weather-api", "description": "Public weather endpoints", "baseUrl": "https://api.example.com", "authMethod": "bearer", "authConfig": { "bearerToken": "YOUR_UPSTREAM_TOKEN" }, "networks": ["base-sepolia", "tempo-testnet"], "mode": "testnet" }' ``` ```javascript JavaScript theme={null} const response = await fetch("https://api.myproceeds.xyz/v1/services", { method: "POST", headers: { Authorization: "Bearer mpk_your_key_here", "Content-Type": "application/json", }, body: JSON.stringify({ name: "weather-api", description: "Public weather endpoints", baseUrl: "https://api.example.com", authMethod: "bearer", authConfig: { bearerToken: "YOUR_UPSTREAM_TOKEN" }, networks: ["base-sepolia", "tempo-testnet"], mode: "testnet", }), }); const { data: service } = await response.json(); console.log(service.id); ``` Full field reference: [Create a service (API)](/api-reference/services/create-a-service). ## Next > [card] [Add a paywall](/quickstart/add-a-paywall) > > Price a route and get the payment URL agents can call. # Make your first payment Source: https://docs.myproceeds.xyz/quickstart/make-your-first-payment Ask your funded agent to find a paid resource, pay the 402, and return the response. You have a [funded agent wallet](/quickstart/set-up-an-agent-wallet). Now get to the aha moment: the agent hits a charge URL, pays the `402`, and brings back the result. ## 1. Pay a specific charge URL Don't send the agent hunting a public directory. Hand it a URL you already have — your own paywall, or a test endpoint you trust. ```text theme={null} Call https://myproceeds.xyz/api/pay/{serviceId}/{slug} and pay if challenged. Return the response body. ``` **AgentCash** (x402 or MPP): ```text theme={null} Call https://myproceeds.xyz/api/pay/{serviceId}/{slug} and pay with AgentCash if challenged. Return the JSON. ``` **Circle Agent Stack** (x402): ```text theme={null} Call https://myproceeds.xyz/api/pay/{serviceId}/{slug}, pay with my Circle agent wallet, and show me the response. ``` **Tempo Wallet** (MPP): ```text theme={null} Call https://myproceeds.xyz/api/pay/{serviceId}/{slug}, pay with Tempo Wallet, and return the result. ``` ## 2. Pay your own Proceeds paywall Once that works, point the same agent at **your** paywall: ```text theme={null} https://myproceeds.xyz/api/pay/{serviceId}/{slug} ``` ```text theme={null} Call https://myproceeds.xyz/api/pay/{serviceId}/{slug} and pay if challenged. Return the response body. ``` ## 3. Confirm in Proceeds In the dashboard: * [Transactions](/dashboard/transactions) — row shows `Completed` (nanopayments go `Pending` → `Completed` after Gateway batch settlement) * [Events](/dashboard/events) — `REQUEST` → `SUCCESS` * [Wallet](/dashboard/wallet) — balance updates That's the full loop: agent finds or hits a paid URL, pays USDC, you see the revenue. ## What success looks like | Status | Meaning | | - | - | | `402 Payment Required` | Paywall is live; no payment yet | | `200 OK` | Payment validated; upstream proxied | | `4xx`/`5xx` after payment | Payment ok; upstream failed — check Events | ## Next > [card] [Monitor payments](/quickstart/monitor-payments) > > Transactions, events, and wallet balances. > [card] [Sell to agents](/guides/accept-payments-from-agents) > > Wrap, share a charge URL, get paid. > [!TIP] > > Need to debug a paywall on testnet without spending real USDC? See [Test paywalls](/quickstart/test-paywalls). # Monitor payments Source: https://docs.myproceeds.xyz/quickstart/monitor-payments Track transactions, lifecycle events, webhooks, and revenue once payments are flowing. Once buyers start paying, use four surfaces: [Transactions](/dashboard/transactions) for payment state, [Events](/dashboard/events) for the request lifecycle, [Webhooks](/dashboard/webhooks) to push both to your server, and [Wallet](/dashboard/wallet) for the balances that accumulate. ## Transactions Open [**Transactions**](/dashboard/transactions). Each row is one payment attempt against one paywall. * **Standard x402 and MPP** typically land as `Completed` (or `Failed`) once the request finishes. * **Circle Nanopayments** go `Pending → Completed` while Gateway batches the authorization onchain. A failed batch settlement ends in `Failed`. Filter by **Pending**, **Completed**, or **Failed** to triage. See [Transactions](/dashboard/transactions) for the full state meanings. ## Events Open [**Events**](/dashboard/events) for the same paywall. The live API emits three event types: * `REQUEST` — paywall hit without payment (`402` path) * `SUCCESS` — successful payment and fulfillment * `ERROR` — settlement or upstream failure A healthy paid request emits `REQUEST → SUCCESS`. When a transaction stops short of `Completed`, scan the matching event stream for the missing `SUCCESS` or the `ERROR` that records why. ## Webhooks Transactions and events are pull. To react automatically, configure [**Webhooks**](/dashboard/webhooks): Proceeds sends a signed HTTP callback to your server on `payment.succeeded`, `payment.failed`, and other events. Verify the `X-Webhook-Signature` header before trusting a payload. ## Wallet Open [**Wallet**](/dashboard/wallet) to confirm payments are landing. Balances accrue per chain (and under Circle Nanopayments for Gateway settlement). From there, withdraw USDC onchain or [off-ramp to a US bank via ACH](/guides/settle-to-wallet-or-bank#off-ramp-to-a-bank-via-ach). ## Next > [card] [Production checklist](/guides/production-checklist) > > Confirm settings before moving a service to mainnet. > [card] [Troubleshooting](/guides/troubleshooting) > > Common failures and how to resolve them. # Set up an agent wallet Source: https://docs.myproceeds.xyz/quickstart/set-up-an-agent-wallet Install an agent IDE, drop a wallet setup prompt, and fund with real USDC so your agent can pay. Your paywall returns `402` — but a challenge alone isn't a payment. You need an agent with a funded wallet. This page gets you to that state with **real USDC**, using AgentCash, Circle Agent Stack, or Tempo Wallet. ## 1. Pick an agent environment Set up one of these first (pick what you already use): | Environment | Notes | | - | - | | **Claude Code** | Anthropic's coding agent CLI / IDE | | **Codex** | OpenAI's coding agent | | **OpenClaw** | Agent runtime — see AgentCash's [OpenClaw setup](https://agentcash.dev/docs/openclaw-setup/for-humans) | | **Hermes** | Agent runtime compatible with the same wallet skills | You need a working agent chat where you can paste a setup prompt and let it install tools. ## 2. Drop a wallet setup prompt Paste **one** of these prompts into your agent. It will install the wallet skill, create or connect a wallet, and walk you through funding with real USDC. ### AgentCash One USDC balance for x402 and MPP — broadest reach. ```text theme={null} Set up https://agentcash.dev/skill.md ``` ### Circle Agent Stack Circle Agent Wallets plus nanopayments via Gateway. ```text theme={null} Run curl -sL https://agents.circle.com/skills/setup.md, and use the returned setup instructions to set up my agent wallet. ``` ### Tempo Wallet MPP-native wallet with spend controls — best for Tempo / MPP paywalls. ```text theme={null} Read https://tempo.xyz/SKILL.md and set up tempo ``` > [!TIP] > > Prefer a deeper walkthrough for one tool? See [AgentCash](/agents/agentcash), [Circle Agent Stack](/agents/circle-agent-stack), or [Tempo Wallet](/agents/tempo-wallet). ## 3. Fund with real USDC Follow the agent through funding. You're done when the wallet shows a spendable USDC balance on a network your paywalls accept (for example Base for x402, Tempo for MPP). ## Next > [card] [Make your first payment](/quickstart/make-your-first-payment) > > Ask your agent to find a paid resource and pay for it — the aha moment. # Test paywalls Source: https://docs.myproceeds.xyz/quickstart/test-paywalls Exercise paywalls on testnet with faucet funds, or use the console Test Payment flow. Use this page when you're building or debugging and want to exercise a paywall **without spending mainnet USDC**. Two paths: the dashboard **Test Payment** flow (browser wallet), or any agent/client funded with testnet tokens from a faucet. Keep **Mainnet mode** off in your profile menu so paywalls accept testnet funds. See [Supported blockchains](/guides/supported-blockchains). This guide assumes you have the token for your network. See [Get testnet funds](/guides/supported-blockchains#get-testnet-funds). ## Test in the console On **Paywalls**, open a paywall and run **Test**. The **Test Payment** modal uses your **browser wallet** — no agent required. 1. Choose a payment method: **x402**, **Nanopayment**, or **MPP (Tempo)** 2. Pick the **network** (for example Base Sepolia while Mainnet mode is off) 3. Confirm the **HTTP method** (for example `POST`) 4. Optionally edit the JSON **request body** and content type 5. Click **Test** Proceeds runs the same 402 → pay → proxy flow your buyers will hit. Check [Transactions](/dashboard/transactions) and [Events](/dashboard/events) for the result. ## Get testnet funds Fund the **same network** your paywall accepts. A wallet funded on the wrong chain can't pay. For which token and faucet each network uses, see [Get testnet funds](/guides/supported-blockchains#get-testnet-funds). ## Test from an agent or CLI With Mainnet mode off and a faucet-funded wallet: ```bash theme={null} # Expect 402, then retry with payment proof (x402) curl -i https://myproceeds.xyz/api/pay/{serviceId}/{slug} # MPP via mppx (Tempo-enabled paywalls) npx mppx https://myproceeds.xyz/api/pay/{serviceId}/{slug} ``` Or hand the testnet paywall URL to an agent whose wallet holds the right testnet token for that network. ## When to use which path | Goal | Path | | - | - | | Quick check while configuring a paywall | Console **Test Payment** | | Fund a testnet wallet for your network | [Get testnet funds](/guides/supported-blockchains#get-testnet-funds) | | End-to-end agent experience with real money | [Set up an agent wallet](/quickstart/set-up-an-agent-wallet) → [Make your first payment](/quickstart/make-your-first-payment) | > [card] [Make your first payment](/quickstart/make-your-first-payment) > > Fund with real USDC and pay from an agent — the production aha moment.