# List broadcasts (/docs/api-reference/broadcasts/list-broadcasts)

The API key's environment's broadcasts, newest first, with their stats.

`GET https://api.coss.com/v1/broadcasts`

Authenticate with your API key as a bearer token (`Authorization: Bearer coss_test_…`). Responses are JSON with snake_case fields; errors are `{ error: { type, code, message, param?, issues?, request_id } }` (https://coss.com/docs/api-reference/errors.md).

## Query parameters

- `status` ("draft" | "scheduled" | "sending" | "paused" | "sent" | "canceled" | "failed")
- `limit` (integer, 1-100): 1-100, default 50.
- `after` (string): Cursor: the `id` of the last broadcast of the previous page.

## Example request

TypeScript (the `coss` package):

```ts
import { Coss } from "coss";

const coss = new Coss({
  apiKey: process.env.COSS_API_KEY,
  baseUrl: "https://api.coss.com",
});

const { data, error } = await coss.email.broadcasts.list();
```

HTTP:

```sh
curl -X GET "https://api.coss.com/v1/broadcasts" \
  -H "Authorization: Bearer $COSS_API_KEY"
```

Python:

```python
from coss import Coss

client = Coss()  # api_key= or COSS_API_KEY

client.email.broadcasts.list()
```

Go:

```go
import (
	"context"

	cossclient "github.com/cosscom/coss-go/client"
	email "github.com/cosscom/coss-go/email"
)

client := cossclient.NewClient() // option.WithAPIKey(…) or COSS_API_KEY

request := &email.ListBroadcastsRequest{}
client.Email.Broadcasts.List(
    context.TODO(),
    request,
)
```

Ruby:

```ruby
require "coss"

client = Coss::Client.new # api_key: or COSS_API_KEY

client.email.broadcasts.list
```

PHP:

```php
<?php

use Coss\Coss;
use Coss\Email\Broadcasts\Requests\ListBroadcastsRequest;

$client = new Coss(); // apiKey: or COSS_API_KEY

$client->email->broadcasts->list(
    new ListBroadcastsRequest([]),
);
```

Java:

```java
import com.coss.Coss;
import com.coss.resources.email.broadcasts.requests.ListBroadcastsRequest;

Coss client = Coss.builder().build(); // .apiKey(…) or COSS_API_KEY

client.email().broadcasts().list(
    ListBroadcastsRequest
        .builder()
        .build()
);
```

.NET:

```csharp
using Coss;
using Coss.Email;

var client = new CossClient(); // apiKey: or COSS_API_KEY

await client.Email.Broadcasts.ListAsync(new ListBroadcastsRequest());
```

## Response 200

A page of broadcasts.

- `object` ("list", required)
- `data` (object[], required)
  - `object` ("broadcast", required)
  - `id` (string, required)
  - `name` (string, required): Shown only to you.
  - `status` ("draft" | "scheduled" | "sending" | "paused" | "sent" | "canceled" | "failed", required): `draft` (editable), `scheduled`, `sending`, `paused` (see `pause_reason`), `sent`, `canceled`, or `failed` (see `error`).
  - `audience_id` (string | null, required): The audience it goes to. `null`: a segment.
  - `segment_id` (string | null, required): The segment it goes to. `null`: an audience.
  - `topic` (string | null, required): The topic it's about (its key), and its emails' `category`. `null`: none.
  - `from` (string, required): Who it's sent from.
  - `reply_to` (string[], required): Addresses replies go to.
  - `subject` (string, required): The subject, before contact fields are filled in.
  - `preview_text` (string | null, required): The inbox preview line. `null`: none.
  - `html` (string | null, required): The HTML part, before contact fields are filled in. `null`: text only.
  - `text` (string | null, required): The plain text part. `null`: HTML only.
  - `tracking` (object, required): Which opens and clicks are tracked.
    - `opens` (boolean, required): Whether opens are tracked.
    - `clicks` (boolean, required): Whether clicks are tracked.
  - `rate_per_second` (integer | null, required): Recipients per second. `null`: the plan's marketing rate.
  - `scheduled_at` (string | null, required, date-time): When it's set to start. `null`: not scheduled.
  - `started_at` (string | null, required, date-time): When sending started. `null`: it hasn't.
  - `completed_at` (string | null, required, date-time): When it finished. `null`: it hasn't.
  - `canceled_at` (string | null, required, date-time): When it was canceled. `null`: it wasn't.
  - `recipients_estimated` (integer | null, required): How many contacts it would reach, counted when it started.
  - `pause_reason` (string | null, required): Why a paused broadcast waits: `paused` (by you), `billing_hold`, `budget_exceeded`, `usage_limit`, `marketing_paused`, `account_suspended`, `sending_paused`.
  - `error` (object | null, required): Why it `failed`, such as `target_unavailable` when its audience, segment or topic was deleted while sending. `null`: it didn't.
    - `code` (string, required): Machine-readable reason.
    - `message` (string, required): Human-readable explanation.
  - `stats` (object, required): How its emails fared so far.
    - `recipients` (integer, required): Emails made so far (one per reached contact).
    - `sent` (integer, required): Emails accepted by the provider.
    - `delivered` (integer, required): Emails delivered to recipients' servers.
    - `bounced` (integer, required): Permanent bounces.
    - `complained` (integer, required): Emails marked as spam by recipients.
    - `failed` (integer, required): Emails that couldn't be sent.
    - `opened` (integer, required): Emails opened at least once (with open tracking).
    - `clicked` (integer, required): Emails clicked at least once (with click tracking).
    - `unsubscribed` (integer, required): Unsubscribes through the broadcast's links.
  - `created_at` (string, required, date-time)
  - `updated_at` (string, required, date-time)
- `has_more` (boolean, required)

Example:

```json
{
  "object": "list",
  "data": [
    {
      "object": "broadcast",
      "id": "bcast_01k7c8m4q2f3e9v6t5r1n0p8yz",
      "name": "October newsletter",
      "status": "sent",
      "audience_id": null,
      "segment_id": "seg_01k7c8m4q2f3e9v6t5r1n0p8yz",
      "topic": "newsletter",
      "from": "Acme <news@acme.com>",
      "reply_to": [],
      "subject": "What's new, {{{contact.first_name|there}}}",
      "preview_text": null,
      "html": "<p>Hi {{{contact.first_name|there}}},</p>",
      "text": null,
      "tracking": {
        "opens": true,
        "clicks": true
      },
      "rate_per_second": null,
      "scheduled_at": "2026-10-20T09:00:00.000Z",
      "started_at": "2026-10-20T09:00:01.000Z",
      "completed_at": "2026-10-20T09:12:40.000Z",
      "canceled_at": null,
      "recipients_estimated": 1200,
      "pause_reason": null,
      "error": null,
      "stats": {
        "recipients": 1200,
        "sent": 1200,
        "delivered": 1180,
        "bounced": 6,
        "complained": 1,
        "failed": 0,
        "opened": 540,
        "clicked": 120,
        "unsubscribed": 4
      },
      "created_at": "2026-10-15T12:00:00.000Z",
      "updated_at": "2026-10-20T09:12:40.000Z"
    }
  ],
  "has_more": false
}
```

## Errors

- `400`: The `Coss-Version` header names an unknown API version (`invalid_api_version`).
- `401`: The API key is missing, invalid, revoked or expired (`authentication_error`).
- `403`: The API key lacks the permission this endpoint needs (`permission_error`), or its organization is suspended (`organization_suspended`).
- `422`: A query parameter failed validation (`validation_error`, see `issues`).
- `429`: Too many requests with this API key (`rate_limited`), or too many requests with invalid keys from this address (`too_many_failed_authentications`). Retry after `Retry-After` seconds. Successful responses carry `RateLimit-Limit`, `RateLimit-Remaining` and `RateLimit-Reset` (seconds until the limit is fully restored).
- `500`: Unexpected server error (`api_error` / `internal_error`).
- `503`: The API key could not be verified right now; retry (`service_unavailable`).