# How xPay works

From endpoint to revenue in minutes.

#### 1. Register your endpoint

* Provide: API URL, HTTP method, price, token (SPL mint), and wallet
* Optional: custom auth headers, sample request/response

#### 2. Get your xPay wrapper

* You receive `https://api.usexpay.xyz/:username/:endpointName`
* This URL enforces x402 payment automatically via Faremeter

#### 3. Start earning

* Share the proxy URL or list it in the xPay marketplace
* Each successful 2xx response increments earnings
* Your endpoints also become MCP tools for AI agents

**Notes**

* Protocol methods for MCP (listing, initialize) bypass payment; tool calls are paywalled
* Sample request/response helps generate MCP tool schemas and better marketplace docs
