## Documentation Index

Fetch the complete documentation index at: [/llms.txt](https://docs.relay.link/llms.txt)

Use this file to discover all available pages before exploring further.

---

### cURL

```bash
curl --request GET \
  --url https://api.relay.link/swap-sources
```

```javascript
const options = {method: 'GET'};

fetch('https://api.relay.link/swap-sources', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
```

```python
import requests

url = "https://api.relay.link/swap-sources"

response = requests.get(url)

print(response.text)
```

### Responses

**200**

```json
{
  "sources": [
    "<string>"
  ]
}
```

**400**

```json
{
  "message": "<string>"
}
```

### Headers

#### x-api-key
- **Type**: string  
- **Description**: Optional API key for authentication and higher rate limits.

### Query Parameters

#### chainId
- **Type**: number  
- **Description**: Chain ID to get swap sources for.

### Response

**200**  
**Content-Type**: application/json

#### Default Response

- **sources**: string[]  
  An array of swap sources.
