# 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.senddart.com/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.senddart.com/docs/api/polls-get) instead.

**Node.js**

```js
import { SendDart } from 'senddart';

const mb = new SendDart('mb_xxxxxxxxx');

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

**Ruby**

```ruby
require "senddart"

SendDart.api_key = "mb_xxxxxxxxx"

SendDart::Polls.list
```

**PHP**

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

use SendDart\SendDart;

$senddart = SendDart::client('mb_xxxxxxxxx');

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

**Python**

```python
import senddart

senddart.api_key = "mb_xxxxxxxxx"

senddart.Polls.list()
```

**Go**

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

client := senddart.NewClient("mb_xxxxxxxxx")

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

**Rust**

```rust
use senddart::SendDart;

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

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

**Java**

```java
import com.senddart.SendDart;
import com.senddart.SendDartResponse;

SendDart senddart = new SendDart("mb_xxxxxxxxx");

SendDartResponse response = senddart.polls().list();
```

**.NET**

```csharp
using SendDart;

ISendDart senddart = SendDartClient.Create("mb_xxxxxxxxx");

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

**cURL**

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

**CLI**

```bash
senddart 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"
    }
  ]
}
```
