# List the gateways your messages can leave through (/api/listGateways)

Your own gateways, then the SIM cards in the Android phones you paired.
SendKuy's shared senders are not listed, even when your plan lends
them — leave `gateway_id` out when sending and we pick one.

A SIM keeps its id while it stays in the same phone. Pairing your
account with a different phone lists its SIMs under new ids.

Endpoint: GET /api/v1/gateways
Full URL: https://app.sendkuy.com/api/v1/gateways
- query parameter starting_after (optional): string — The `meta.next_cursor` from the previous page.
- query parameter limit (optional): integer, 1–100 — Rows per page. Defaults to 20, capped at 100.
- query parameter channel (optional): string, one of email | sms | whatsapp — Only gateways on this channel. `sms` includes your Android SIMs.
Success status: 200

cURL:

```bash
curl -X GET https://app.sendkuy.com/api/v1/gateways \
  -H "Authorization: Bearer sk_live_YOUR_API_KEY"
```

Node.js:

```ts
import { SendKuy } from 'sendkuy';

const sendkuy = new SendKuy('sk_live_YOUR_API_KEY');

const result = await sendkuy.gateways.list();
```

PHP:

```php
<?php

use SendKuy\SendKuy;

$sendkuy = new SendKuy('sk_live_YOUR_API_KEY');

$result = $sendkuy->gateways()->list();
```

Python:

```python
import requests

response = requests.request(
    "GET",
    "https://app.sendkuy.com/api/v1/gateways",
    headers={"Authorization": "Bearer sk_live_YOUR_API_KEY"},
)

data = response.json()["data"]
```