# List broadcasts

> Lists broadcasts, newest first.

Source: https://docs.pidgely.com/api-reference/broadcasts/list/

`GET https://api.pidgely.com/broadcasts`

Lists broadcasts, newest first.

**Authorization:** `Bearer pdg_…`. An API key with `full_access`. A `sending_access` key gets `401 restricted_api_key`.

## Query parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `limit` | integer | No | Page size (1-100). Between 1 and 100. |
| `after` | string | No | Id of the last item of the previous page (older items). UUID. |
| `before` | string | No | Id of the first item of the current page (newer items). UUID. |

## Request

```js tab="Node.js"
import { Pidgely } from 'pidgely';

const pidgely = new Pidgely(process.env.PIDGELY_API_KEY);

const { data, error } = await pidgely.broadcasts.list();
console.log(data ?? error);
```

```python tab="Python"
import os
import pidgely

pidgely.api_key = os.environ["PIDGELY_API_KEY"]

result = pidgely.Broadcasts.list()
print(result)
```

```php tab="PHP"
<?php

require __DIR__ . '/vendor/autoload.php';

$pidgely = Pidgely::client(getenv('PIDGELY_API_KEY'));

$result = $pidgely->broadcasts->list();
var_dump($result);
```

```go tab="Go"
package main

import (
	"context"
	"fmt"
	"os"

	"github.com/pidgely/pidgely-go"
)

func main() {
	ctx := context.Background()
	client := pidgely.NewClient(os.Getenv("PIDGELY_API_KEY"))

	result, err := client.Broadcasts.List(ctx, nil)
	if err != nil {
		panic(err)
	}
	fmt.Println(result)
}
```

```ruby tab="Ruby"
require "pidgely"

Pidgely.api_key = ENV["PIDGELY_API_KEY"]

result = Pidgely::Broadcasts.list()
puts result
```

```bash tab="cURL"
curl -X GET 'https://api.pidgely.com/broadcasts' \
  -H "Authorization: Bearer $PIDGELY_API_KEY"
```

## Response

`200 OK`

```json
{
  "object": "list",
  "has_more": false,
  "data": [
    {
      "object": "broadcast",
      "id": "0199d7f6-4c8d-7e1a-9b3f-2d6a5c0e7f19",
      "name": "October product update",
      "segment_id": "0199d7f5-9a3e-7d4b-a1c2-7e5f0b3d6c48",
      "audience_id": "0199d7f5-9a3e-7d4b-a1c2-7e5f0b3d6c48",
      "from": "Acme <news@acme.com>",
      "subject": "What shipped in October",
      "reply_to": [],
      "preview_text": "Five new features and a faster dashboard",
      "html": "<p>Hi {{{FIRST_NAME|there}}},</p><p>…</p><p><a href=\"{{{PIDGELY_UNSUBSCRIBE_URL}}}\">Unsubscribe</a></p>",
      "text": "",
      "status": "draft",
      "created_at": "2026-10-12 16:44:41.000000+00",
      "scheduled_at": null,
      "sent_at": null,
      "topic_id": null,
      "recipients": 0,
      "stats": {}
    }
  ]
}
```

### Response fields

| Name | Type | Required | Description |
|---|---|---|---|
| `object` | string | Yes | Object type. One of `list`. |
| `has_more` | boolean | Yes | Whether another page exists. |
| `data` | object[] | Yes | Items of this page. |
| `data[].object` | string | No | Object type. |
| `data[].id` | string | No | Unique id (UUID). UUID. |
| `data[].name` | string | No | Display name. |
| `data[].segment_id` | string \| null | No | Segment the broadcast is sent to. |
| `data[].audience_id` | string \| null | No | — |
| `data[].from` | string | No | — |
| `data[].subject` | string | No | Subject line, up to 998 bytes. Required unless a template provides it. |
| `data[].reply_to` | string[] | No | Reply-To address or list of addresses. |
| `data[].preview_text` | string | No | Preview text shown by mail clients next to the subject (inserted as hidden text at the top of the HTML). |
| `data[].html` | string | No | HTML body. `html` or `text` is required (unless you send with a template). |
| `data[].text` | string | No | — |
| `data[].status` | string | No | Current status. One of `draft`, `scheduled`, `queued`, `sending`, `sent`, `canceled`, `failed`. |
| `data[].created_at` | string | No | Timestamp in UTC (`2026-10-12 16:44:41.000000+00`). |
| `data[].scheduled_at` | string \| null | No | Timestamp in UTC, or null. |
| `data[].sent_at` | string \| null | No | Timestamp in UTC, or null. |
| `data[].topic_id` | null | No | — |
| `data[].recipients` | integer | No | Number of contacts the broadcast was sent to. |
| `data[].stats` | object (map of integer) | No | Deliveries by status (Pidgely extension). |

## Errors

Errors have the shape `{"statusCode", "name", "message"}`. See [Errors](https://docs.pidgely.com/errors/) for the full list.

| Status | Name | When |
|---|---|---|
| 401 | `missing_api_key`, `restricted_api_key` | No `Authorization: Bearer` header, or a `sending_access` key called an endpoint that needs `full_access`. |
| 403 | `invalid_api_key`, `validation_error` | The API key is invalid or revoked, or the request is not allowed for this account (unverified domain, plan limit, paused account). |
| 404 | `not_found` | The resource does not exist in this account (or the id is not a valid UUID). |
| 422 | `validation_error` | A field is missing or invalid; `message` names it. |
| 429 | `rate_limit_exceeded` | Too many requests per second. Wait for `Retry-After` seconds. |
