# What a channel sent, what waits for an answer and what the phone answered.

> https://koi.dog/docs/api/notifications/list-notification-sends/

`GET /api/v1/notifications/channels/{id}/sends` · Scope: `read`

## Path parameters.

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | yes | The notification channel's id. |

## Query parameters.

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `state` | `array` | no | One or more states, comma-separated. Any of `pending`, `sent`, `waiting`, `answered`, `expired`, `closed`, `skipped`, `failed`. At least 1 item. |
| `subject` | `array` | no | Any of `approval`, `question`, `crew`, `budget`, `digest`, `test`. At least 1 item. |
| `limit` | `1–200` | no | Page size. Default `50`. |
| `cursor` | `string` | no | Previous page’s `nextCursor`. Keep filters and order. At least 1 character. |
| `order` | `enum` | no | Sort by creation time, then ID. `desc` newest, `asc` oldest. One of `asc`, `desc`. Default `desc`. |
| `createdAfter` | `string` | no | From this UTC timestamp, inclusive (e.g. `2027-01-01T00:00:00Z`). Uses run start, node pairing, move request, event or log time, otherwise creation. |
| `createdBefore` | `string` | no | Through this UTC timestamp, inclusive. See `createdAfter`. |

## Response.

200 OK · `data`: `object[]`. Pass `nextCursor` as `cursor` when `hasMore` is true.

## Request.

```sh
curl "https://api.koi.dog/api/v1/notifications/channels/$ID/sends" \
    -H "Authorization: Bearer $KOIDOG_API_KEY"
```

```js
const res = await fetch(`https://api.koi.dog/api/v1/notifications/channels/${process.env.ID}/sends`, {
  headers: {
    Authorization: `Bearer ${process.env.KOIDOG_API_KEY}`,
  },
});
console.log(await res.json());
```

```python
import os

import requests

r = requests.get(
    f"https://api.koi.dog/api/v1/notifications/channels/{os.environ['ID']}/sends",
    headers={
        "Authorization": f"Bearer {os.environ['KOIDOG_API_KEY']}",
    },
)
r.raise_for_status()
print(r.json())
```

## Response example.

```json
{
  "data": [],
  "nextCursor": "string",
  "hasMore": false
}
```
