# API Integration Guide

- [Prerequisites](https://docs.safeswap.io/builders/api-integration-guide/prerequisites.md): There are some capabilities your web app will need
- [What is a Swap?](https://docs.safeswap.io/builders/api-integration-guide/what-is-a-swap.md)
- [Perform a Swap](https://docs.safeswap.io/builders/api-integration-guide/perform-a-swap.md): This covers each of the steps of a Swap
- [Initiate a Swap](https://docs.safeswap.io/builders/api-integration-guide/perform-a-swap/initiate-a-swap.md): The first step is to create a swap in the smart contract
- [Send Fees](https://docs.safeswap.io/builders/api-integration-guide/perform-a-swap/send-fees.md): Fees cover our portion of the smart contract interactions
- [Create the Swap in API](https://docs.safeswap.io/builders/api-integration-guide/perform-a-swap/create-the-swap-in-api.md): After creating a Swap in the contract, send it to our API so we can act on it.
- [Wait/Poll for the Swap](https://docs.safeswap.io/builders/api-integration-guide/perform-a-swap/wait-poll-for-the-swap.md): Wait for SafeSwap to set up the destination chain Swap
- [Complete the Swap](https://docs.safeswap.io/builders/api-integration-guide/perform-a-swap/complete-the-swap.md): When the Swap is ready, it is time to claim the funds
- [Cancel/Refund](https://docs.safeswap.io/builders/api-integration-guide/perform-a-swap/cancel-refund.md): If the Swap can't be completed, you can always refund.
- [Smart Contract Details](https://docs.safeswap.io/builders/api-integration-guide/smart-contract-details.md)
- [Our Swap Addresses](https://docs.safeswap.io/builders/api-integration-guide/our-swap-addresses.md): These addresses are the accounts that will be the counterparty to the user's Swaps
- [API Details](https://docs.safeswap.io/builders/api-integration-guide/api-details.md)


---

# Agent Instructions: 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:

```
GET https://docs.safeswap.io/builders/api-integration-guide.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
