# List Polls

> GET /polls — list emails that have in-email poll responses.

`GET /polls`

Returns one summary row per email that has collected poll responses, ordered by the most recent response first. Use the `email_id` to fetch the full answer breakdown with [Retrieve Poll Results](https://www.sendping.co/docs/api/polls-get).

Requires an API key with read access.

**Query parameters**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `limit` | number | No | Number of rows to retrieve. Minimum `1`, maximum `100`. A value outside that range is rejected with a `422 validation_error`. Unlike the other list endpoints there is no default of 20 on an unpaged request: omit `limit` and every row is returned, up to the ceiling below. Omitting it while paging with `after` or `before` does fall back to 20. |
| `after` | string | No | The `email_id` after which to retrieve more rows (pagination). The id itself is excluded. Cannot be combined with `before`. |
| `before` | string | No | The `email_id` before which to retrieve more rows (pagination). The id itself is excluded. Cannot be combined with `after`. |

> **Warning:** This endpoint reads at most the **200 most recently answered emails** before paginating, and `has_more` does not report that ceiling. If your account has more than 200 poll-bearing emails, the older ones are not reachable through `after` paging here — read the per-email breakdown with [Retrieve Poll Results](https://www.sendping.co/docs/api/polls-get) instead.

**Node.js**

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

const mb = new SendPing('mb_xxxxxxxxx');

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

**Ruby**

```ruby
require "sendping"

SendPing.api_key = "mb_xxxxxxxxx"

SendPing::Polls.list
```

**PHP**

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

use SendPing\SendPing;

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

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

**Python**

```python
import sendping

sendping.api_key = "mb_xxxxxxxxx"

sendping.Polls.list()
```

**Go**

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

client := sendping.NewClient("mb_xxxxxxxxx")

polls, err := client.Polls.List(nil)
```

**Rust**

```rust
use sendping::SendPing;

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

let _polls = mb.polls.list(None).await?;
```

**Java**

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

SendPing sendping = new SendPing("mb_xxxxxxxxx");

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

**.NET**

```csharp
using SendPing;

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

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

**cURL**

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

**CLI**

```bash
sendping polls list
```

### Response

```json
{
  "object": "list",
  "has_more": false,
  "data": [
    {
      "object": "poll",
      "email_id": "8f2e4a3b-dfbc-4e9a-8b2c-5f3a1d6e7c8d",
      "subject": "How was your experience?",
      "responses": 128,
      "distinct_answers": 3,
      "last_response_at": "2026-07-04T10:12:00.000Z"
    }
  ]
}
```
