# SwapRocket public read-only API

Base URL: https://swaprocket.io

These endpoints provide public website information. They do not create an
exchange, reserve a rate, accept payment, or provide a guaranteed executable quote.
No account, API key, registration, or OAuth token is needed for these endpoints.

- [OpenAPI description](https://swaprocket.io/openapi.json)
- [API catalog](https://swaprocket.io/.well-known/api-catalog)
- [Authentication information](https://swaprocket.io/auth.md)
- [Terms](https://swaprocket.io/terms-and-conditions)

## List exchange pairs

`GET /api/exchangePairs`

Query parameters:

| Parameter | Meaning |
| --- | --- |
| `type` | `all` (default), `popular`, `from`, or `grouped` |
| `limit` | Maximum number of pairs for `all`, `popular`, and `from`; default 20. Use a positive integer. Not applied to `grouped`. |
| `from` | Source ticker, required when `type=from`, for example `btc`. Case-insensitive. |

Example: https://swaprocket.io/api/exchangePairs?type=from&from=btc&limit=10

The JSON response has `success`, `count`, and `result`. For `all`, `popular`, and
`from`, `result` is an array of objects with `from`, `to`, and `path`. Paths are
website exchange pages, not transaction endpoints. For `grouped`, `result` maps
source tickers to arrays of destination tickers and `count` counts source groups.
`type=from` without `from` returns HTTP 400. Server failures return HTTP 500.

Pairs are drawn from the website's supported-pair catalog. Availability, prices,
network compatibility, and limits must be checked in the live exchange interface.
Asset tickers alone do not identify a network or a destination wallet.

## Check website health

`GET /api/health` or `HEAD /api/health`

A successful response is HTTP 200. GET returns the plain text `OK`.
This checks the web application only; it does not prove liquidity-provider,
blockchain, quote, or transaction availability. Responses can be cached for 60 seconds.

## Agents and exchanges

Agents may discover information and return links to the exchange interface.
The browser tools published by this site are read-only. They do not submit wallet
addresses, create transactions, send funds, or sign messages. The user completes
an exchange in the website interface under the current Terms and provider checks.
Do not request seed phrases, private keys, or wallet signatures.

Contact support@swaprocket.io for integration questions. No public OAuth issuer,
MCP server, agent-registration service, or MPP payment endpoint is advertised.
