# us.off-the-clock.polls.getPoll

> Published by [off-the-clock.us](https://lexicon.garden/identity/did:plc:tevv7zpavtjtsvqrrwwipobt)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.polls.getPoll)
- [Documentation](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.polls.getPoll/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.polls.getPoll/examples)

## Definitions

### `us.off-the-clock.polls.getPoll`

**Type**: `query`

One poll of a content space the viewer reads, with its results counted now: each member's newest vote cast between opensAt and closesAt by a member the viewer may see.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `allVoters` | `boolean` | No | Every voter in each result row's recentVoters, newest first, rather than three: the poll's own page lists them all. |
| `uri` | `string` (at-uri) | Yes |  |

#### Output

**Encoding**: `application/json`

#### Errors

- **InvalidRequest**
- **NotSpaceMember**
- **RecordNotFound**

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "One poll of a content space the viewer reads, with its results counted now: each member's newest vote cast between opensAt and closesAt by a member the viewer may see.",
      "errors": [
        {
          "name": "InvalidRequest"
        },
        {
          "name": "NotSpaceMember"
        },
        {
          "name": "RecordNotFound"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "ref": "us.off-the-clock.polls.pollView",
          "type": "ref"
        }
      },
      "parameters": {
        "properties": {
          "allVoters": {
            "default": false,
            "description": "Every voter in each result row's recentVoters, newest first, rather than three: the poll's own page lists them all.",
            "type": "boolean"
          },
          "uri": {
            "format": "at-uri",
            "type": "string"
          }
        },
        "required": [
          "uri"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "us.off-the-clock.polls.getPoll",
  "lexicon": 1
}
```
