> For the complete documentation index, see [llms.txt](https://docs.usexpay.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.usexpay.xyz/xpay-overview/what-is-xpay.md).

# What is xPay?

xPay lets you turn any existing HTTP endpoint into a paid microservice with no code changes. It wraps your API with a trust-minimized x402 paywall on Solana (USDC by default), gives you a shareable proxy URL, and auto-publishes your endpoint as an MCP tool discoverable by AI agents.

#### Why it matters

* Own your distribution with cryptographic, per-request payments
* Instant settlement to your wallet, near-zero fees, no custody risk
* AI-native: your endpoints become MCP tools agents can call directly
* No-code onboarding: point to an existing URL, set price/token, share the new link

#### What you can do

* Wrap any HTTP endpoint in a paid proxy: `https://api.usexpay.xyz/:username/:endpointName`
* Price per call in USDC or any SPL token (via mint address)
* List in a marketplace with ratings and examples
* Expose an MCP server for agents: `https://api.usexpay.xyz/mcp/:username`
* Use wallet-sign-in → JWT to manage your creator dashboard

See also:

* Creators Guide (how to register and monetize endpoints)
* API Reference (backend routes summary)
* MCP (how your endpoints become AI-native tools)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.usexpay.xyz/xpay-overview/what-is-xpay.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
