# List audiences

> GET /audiences — page through the audiences you own.

`GET /audiences`

List the audiences belonging to your account, newest first. Returns a list object whose `data` array holds the audiences. Each audience carries a `domain` field — the sending domain when the audience is a per-domain contact pool, or `null` for an audience you created yourself.

This list is **paginated** — at most 20 audiences come back unless you raise `limit`, and `has_more` tells you whether to keep walking with `after`. An account with 50 audiences receives 20 with `has_more: true`.

**Query parameters**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `limit` | integer | No | How many audiences to return. An integer between 1 and 100, defaulting to **20** — this endpoint always applies the limit. |
| `after` | string | No | Cursor: return the audiences that follow this audience id. The id itself is not included. See [Pagination](https://www.sendping.co/docs/api/pagination). |
| `before` | string | No | Cursor: return the audiences that precede this audience id. Cannot be combined with `after`. |

**Node.js**

```js
import { SendPing } from 'sendping';

const mb = new SendPing('mb_xxxxxxxxx');

const { data, error } = await mb.audiences.list();
console.log({ data, error });
```

**Ruby**

```ruby
require "sendping"

SendPing.api_key = "mb_xxxxxxxxx"

SendPing::Audiences.list
```

**PHP**

```php
<?php
require 'vendor/autoload.php';

use SendPing\SendPing;

$sendping = SendPing::client('mb_xxxxxxxxx');

$sendping->audiences->list();
```

**Python**

```python
import sendping

sendping.api_key = "mb_xxxxxxxxx"

sendping.Audiences.list()
```

**Go**

```go
import "github.com/shekhu10/sendping-sdks/sendping-go"

client := sendping.NewClient("mb_xxxxxxxxx")

audiences, err := client.Audiences.List(nil)
```

**Rust**

```rust
use sendping::SendPing;

let mb = SendPing::new("mb_xxxxxxxxx");

let _audiences = mb.audiences.list(None).await?;
```

**Java**

```java
import co.sendping.SendPing;
import co.sendping.SendPingResponse;

SendPing sendping = new SendPing("mb_xxxxxxxxx");

SendPingResponse response = sendping.audiences().list();
```

**.NET**

```csharp
using SendPing;

ISendPing sendping = SendPingClient.Create("mb_xxxxxxxxx");

var resp = await sendping.AudienceListAsync();
```

**cURL**

```bash
curl -X GET 'https://www.sendping.co/api/audiences' \
  -H 'Authorization: Bearer mb_xxxxxxxxx'
```

**CLI**

```bash
sendping audiences list
```

**Node.js**

```js
import { SendPing } from 'sendping';

const mb = new SendPing('mb_xxxxxxxxx');

const { data, error } = await mb.audiences.list({ limit: 100, after: '78261eea-8f8b-4381-83c6-79fa7120f1cf' });
console.log({ data, error });
```

**Ruby**

```ruby
require "sendping"

SendPing.api_key = "mb_xxxxxxxxx"

SendPing::Audiences.list({
  "limit": 100,
  "after": "78261eea-8f8b-4381-83c6-79fa7120f1cf"
})
```

**PHP**

```php
<?php
require 'vendor/autoload.php';

use SendPing\SendPing;

$sendping = SendPing::client('mb_xxxxxxxxx');

$sendping->audiences->list([
  'limit' => 100,
  'after' => "78261eea-8f8b-4381-83c6-79fa7120f1cf"
]);
```

**Python**

```python
import sendping

sendping.api_key = "mb_xxxxxxxxx"

sendping.Audiences.list({
  "limit": 100,
  "after": "78261eea-8f8b-4381-83c6-79fa7120f1cf"
})
```

**Go**

```go
import "github.com/shekhu10/sendping-sdks/sendping-go"

client := sendping.NewClient("mb_xxxxxxxxx")

audiences, err := client.Audiences.List(&sendping.ListParams{
    Limit: 100,
    After: "78261eea-8f8b-4381-83c6-79fa7120f1cf",
})
```

**Rust**

```rust
use sendping::{PaginationParams, SendPing};

let mb = SendPing::new("mb_xxxxxxxxx");

let params = Some(PaginationParams::new()
    .with_limit(100)
    .with_after("78261eea-8f8b-4381-83c6-79fa7120f1cf"));
let _audiences = mb.audiences.list(params).await?;
```

**Java**

```java
import co.sendping.ListParams;
import co.sendping.SendPing;
import co.sendping.SendPingResponse;

SendPing sendping = new SendPing("mb_xxxxxxxxx");

ListParams params = ListParams.builder()
        .limit(100)
        .after("78261eea-8f8b-4381-83c6-79fa7120f1cf")
        .build();

SendPingResponse response = sendping.audiences().list(params);
```

**.NET**

```csharp
using SendPing;

ISendPing sendping = SendPingClient.Create("mb_xxxxxxxxx");

var resp = await sendping.AudienceListAsync(new PaginationOptions
{
    Limit = 100,
    After = "78261eea-8f8b-4381-83c6-79fa7120f1cf",
});
```

**cURL**

```bash
curl -X GET 'https://www.sendping.co/api/audiences?limit=100&after=78261eea-8f8b-4381-83c6-79fa7120f1cf' \
  -H 'Authorization: Bearer mb_xxxxxxxxx'
```

**CLI**

```bash
sendping audiences list \
  --limit 100 \
  --after 78261eea-8f8b-4381-83c6-79fa7120f1cf
```

**Response (200)**

```json
{
  "object": "list",
  "has_more": false,
  "data": [
    {
      "object": "audience",
      "id": "78261eea-8f8b-4381-83c6-79fa7120f1cf",
      "name": "Registered Users",
      "domain": null,
      "created_at": "2026-06-23T17:22:43.000Z"
    }
  ]
}
```

A `limit` outside 1-100 (or a non-integer), or `after` and `before` together, returns `422 validation_error`. An unknown cursor returns an empty page rather than an error. See [Pagination](https://www.sendping.co/docs/api/pagination) and [Errors](https://www.sendping.co/docs/api/errors).
