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

# XPay

- [Overview](https://docs.xswap.link/xswap/xpay/overview.md): Introducig XPay is a powerful payment tool designed to simplify cross-chain transactions. Built on Chainlink's CCIP, XPay ensures top security and simple integration across multiple blockchains.
- [Quick Start](https://docs.xswap.link/xswap/xpay/quick-start.md): How to start with XPay
- [Core Concepts](https://docs.xswap.link/xswap/xpay/core-concepts.md): XPay core concepts
- [XPay API Reference](https://docs.xswap.link/xswap/xpay/xpay-api-reference.md): This page describes XPay methods, components and types
- [API v1 Reference](https://docs.xswap.link/xswap/xpay/api-v1-reference.md): A minimal overview of our REST endpoints. Click any resource for full details.
- [Route](https://docs.xswap.link/xswap/xpay/api-v1-reference/route.md)
- [Chains](https://docs.xswap.link/xswap/xpay/api-v1-reference/chains.md)
- [Tokens](https://docs.xswap.link/xswap/xpay/api-v1-reference/tokens.md)
- [Usage Examples](https://docs.xswap.link/xswap/xpay/usage-examples.md): This page is dedicated to example usages of the XPay.
- [Cross-chain Token Purchase](https://docs.xswap.link/xswap/xpay/usage-examples/cross-chain-token-purchase.md): This page describes the repository with an example of the cross-chain token purchase.
- [Usages with embedded widget](https://docs.xswap.link/xswap/xpay/usage-examples/usages-with-embedded-widget.md): Embedded Swap using TxWidget with customization options
- [FAQ](https://docs.xswap.link/xswap/xpay/faq.md): This page is dedicated to the frequently asked question of XPay


---

# 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.xswap.link/xswap/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.
