# List messages you have sent (/api/listMessages)

Newest first, cursor-paginated. Filters narrow the list; they do not
change the shape of what comes back.

Endpoint: GET /api/v1/messages
Full URL: https://app.sendkuy.com/api/v1/messages
- 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 messages on this channel.
- query parameter status (optional): string, one of queued | scheduled | sending | sent | delivered | read | opened | clicked | replied | bounced | failed | cancelled — Only messages in this state. `delivered` includes WhatsApp messages that were already read; `read` narrows to those.
- query parameter created_after (optional): string
- query parameter created_before (optional): string
Success status: 200

cURL:

```bash
curl -X GET https://app.sendkuy.com/api/v1/messages \
  -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.messages.list();
```

PHP:

```php
<?php

use SendKuy\SendKuy;

$sendkuy = new SendKuy('sk_live_YOUR_API_KEY');

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

Python:

```python
import requests

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

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