# Retrieve Poll Results

> GET /polls/:emailId — the aggregated answer breakdown for one email.

`GET /polls/:emailId`

Retrieve the aggregated poll results for a single email: a tally per answer (most-voted first, with each answer's share of all responses), the total number of responses, and the number of distinct respondents.

**Path parameters**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `email_id` | string | Yes | The id of the email the poll was sent on. |

**Node.js**

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

const mb = new SendDart('mb_xxxxxxxxx');

const { data, error } = await mb.polls.get('8f2e4a3b-dfbc-4e9a-8b2c-5f3a1d6e7c8d');
console.log({ data, error });
```

**Ruby**

```ruby
require "senddart"

SendDart.api_key = "mb_xxxxxxxxx"

SendDart::Polls.get("8f2e4a3b-dfbc-4e9a-8b2c-5f3a1d6e7c8d")
```

**PHP**

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

use SendDart\SendDart;

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

$senddart->polls->get('8f2e4a3b-dfbc-4e9a-8b2c-5f3a1d6e7c8d');
```

**Python**

```python
import senddart

senddart.api_key = "mb_xxxxxxxxx"

senddart.Polls.get("8f2e4a3b-dfbc-4e9a-8b2c-5f3a1d6e7c8d")
```

**Go**

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

client := senddart.NewClient("mb_xxxxxxxxx")

poll, err := client.Polls.Get("8f2e4a3b-dfbc-4e9a-8b2c-5f3a1d6e7c8d")
```

**Rust**

```rust
use senddart::SendDart;

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

let _poll = mb.polls.get("8f2e4a3b-dfbc-4e9a-8b2c-5f3a1d6e7c8d").await?;
```

**Java**

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

SendDart senddart = new SendDart("mb_xxxxxxxxx");

SendDartResponse response = senddart.polls().get("8f2e4a3b-dfbc-4e9a-8b2c-5f3a1d6e7c8d");
```

**.NET**

```csharp
using SendDart;

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

var resp = await senddart.PollRetrieveAsync("8f2e4a3b-dfbc-4e9a-8b2c-5f3a1d6e7c8d");
```

**cURL**

```bash
curl -X GET 'https://www.senddart.com/api/polls/8f2e4a3b-dfbc-4e9a-8b2c-5f3a1d6e7c8d' \
  -H 'Authorization: Bearer mb_xxxxxxxxx'
```

**CLI**

```bash
senddart polls get 8f2e4a3b-dfbc-4e9a-8b2c-5f3a1d6e7c8d
```

### Response

```json
{
  "object": "poll_result",
  "email_id": "8f2e4a3b-dfbc-4e9a-8b2c-5f3a1d6e7c8d",
  "total": 128,
  "unique_respondents": 121,
  "answers": [
    { "answer": "Great", "count": 74, "pct": 57.8 },
    { "answer": "Okay", "count": 39, "pct": 30.5 },
    { "answer": "Poor", "count": 15, "pct": 11.7 }
  ]
}
```

A vote also emits a `poll.responded` [automation](https://www.senddart.com/docs/automations/trigger) event, so you can trigger a workflow (or branch on `event.answer`) when a contact responds.
