> ## Documentation Index
> Fetch the complete documentation index at: https://api-docs.sw4p.io/llms.txt
> Use this file to discover all available pages before exploring further.

# API Overview

> REST API for sw4p transfers

## Base URL

```
https://api.sw4p.io
```

## Authentication

All requests require an API key:

```bash theme={null}
curl https://api.sw4p.io/sdk/v1/pairs \
  -H "X-API-Key: sk_555_live_your_api_key"
```

<Info>
  Get your API key from the [Developer Console](https://console.sw4p.io). Connect your wallet and navigate to **API Keys** to create one.
</Info>

## Endpoints

| Method | Endpoint                  | Description      |
| ------ | ------------------------- | ---------------- |
| POST   | `/sdk/v1/transfer`        | Execute transfer |
| POST   | `/sdk/v1/estimate`        | Estimate fees    |
| GET    | `/sdk/v1/status/:id`      | Get status       |
| GET    | `/sdk/v1/pairs`           | Get routes       |
| GET    | `/sdk/v1/limits`          | Get limits       |
| POST   | `/sdk/v1/solana/build-tx` | Build Solana tx  |
| POST   | `/sdk/v1/solana/submit`   | Submit Solana tx |

## Error Responses

```json theme={null}
{
  "error": "ERROR_CODE",
  "message": "Human readable message"
}
```

| Status | Code              | Description       |
| ------ | ----------------- | ----------------- |
| 400    | `INVALID_REQUEST` | Bad request       |
| 401    | `UNAUTHORIZED`    | Invalid API key   |
| 404    | `NOT_FOUND`       | Not found         |
| 429    | `RATE_LIMITED`    | Too many requests |

## Rate Limits

| Tier       | Requests/min |
| ---------- | ------------ |
| Free       | 60           |
| Pro        | 300          |
| Enterprise | Unlimited    |
