# List what a campaign is sending, per contact (/api/listCampaignDispatches)

A dispatch is the plan to send to one contact, not a message.
`message_id` is null until the row has been processed. A recurring
campaign has one set of dispatches per run; this lists the latest run
unless `run` says otherwise.

Endpoint: GET /api/v1/campaigns/{id}/dispatches
Full URL: https://app.sendkuy.com/api/v1/campaigns/{id}/dispatches
- path parameter id (required): string — The prefixed id of the object.
- 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 run (optional): integer, 1– — Run number to list. Defaults to the latest run.
Success status: 200

cURL:

```bash
curl -X GET https://app.sendkuy.com/api/v1/campaigns/cmp_9cBe3A1H-SLhW5fONWZ32wb-IIio5Ts3/dispatches \
  -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.campaigns.listDispatches('cmp_9cBe3A1H-SLhW5fONWZ32wb-IIio5Ts3');
```

PHP:

```php
<?php

use SendKuy\SendKuy;

$sendkuy = new SendKuy('sk_live_YOUR_API_KEY');

$result = $sendkuy->campaigns()->listDispatches('cmp_9cBe3A1H-SLhW5fONWZ32wb-IIio5Ts3');
```

Python:

```python
import requests

response = requests.request(
    "GET",
    "https://app.sendkuy.com/api/v1/campaigns/cmp_9cBe3A1H-SLhW5fONWZ32wb-IIio5Ts3/dispatches",
    headers={"Authorization": "Bearer sk_live_YOUR_API_KEY"},
)

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