> ## Documentation Index
> Fetch the complete documentation index at: https://docs.member.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Poll Voters

> List individual voters ("who voted") for a discussion's poll.

Paginated per-vote rows enriched with display_name + signed thumbnail
avatar_url. Optional ?option_id= filters data (not option_counts).

Restricted-space ACL denial returns 404 discussion_not_found — the SAME
shape as a genuinely missing discussion — NOT the 403 space_access_denied
the sibling GET /discussions/{id}/reactions/reactors route returns for
the identical can_view() failure. A member probing discussion ids must
not be able to enumerate which ids exist inside a restricted space they
can't access by diffing a 403 (exists, denied) from a 404 (doesn't
exist) — reactors/reposters keep their existing 403 (out of scope; see
the module docstring's error-mapping table).

Roster visibility rule (server-enforced, matches the poll read gating):
viewable ONLY when the requesting contact can see results — they've
voted OR the poll is closed. Otherwise 403 poll_results_hidden, even
though the caller already passed the discussion-level can_view() ACL —
seeing the discussion does not imply seeing an unrevealed poll's roster.
This is NOT an existence oracle (unlike the can_view() case above): it
only ever fires once can_view() has already confirmed the discussion is
visible to this viewer, so it never distinguishes "doesn't exist" from
anything.



## OpenAPI

````yaml /openapi/mio-openapi.json get /api/v1/discussions/{discussion_id}/poll/votes
openapi: 3.1.0
info:
  description: >-
    Production API reference for Membership.io. Use the authored guides for
    workflows and the generated endpoint pages for exact parameters and schemas.
  title: Membership.io API
  version: 0.1.0
servers:
  - description: Production
    url: https://api.member.dev
security:
  - bearerAuth: []
paths:
  /api/v1/discussions/{discussion_id}/poll/votes:
    get:
      tags:
        - community-discussions
      summary: Get Poll Voters
      description: >-
        List individual voters ("who voted") for a discussion's poll.


        Paginated per-vote rows enriched with display_name + signed thumbnail

        avatar_url. Optional ?option_id= filters data (not option_counts).


        Restricted-space ACL denial returns 404 discussion_not_found — the SAME

        shape as a genuinely missing discussion — NOT the 403
        space_access_denied

        the sibling GET /discussions/{id}/reactions/reactors route returns for

        the identical can_view() failure. A member probing discussion ids must

        not be able to enumerate which ids exist inside a restricted space they

        can't access by diffing a 403 (exists, denied) from a 404 (doesn't

        exist) — reactors/reposters keep their existing 403 (out of scope; see

        the module docstring's error-mapping table).


        Roster visibility rule (server-enforced, matches the poll read gating):

        viewable ONLY when the requesting contact can see results — they've

        voted OR the poll is closed. Otherwise 403 poll_results_hidden, even

        though the caller already passed the discussion-level can_view() ACL —

        seeing the discussion does not imply seeing an unrevealed poll's roster.

        This is NOT an existence oracle (unlike the can_view() case above): it

        only ever fires once can_view() has already confirmed the discussion is

        visible to this viewer, so it never distinguishes "doesn't exist" from

        anything.
      operationId: >-
        community_discussions.get_community_discussions_get_discussions_by_discussion_id_poll_votes
      parameters:
        - in: path
          name: discussion_id
          required: true
          schema:
            title: Discussion Id
            type: string
        - in: query
          name: hub_id
          required: true
          schema:
            title: Hub Id
            type: string
        - in: query
          name: option_id
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Option Id
        - in: query
          name: page[after]
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Page[After]
        - in: query
          name: page[size]
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Page[Size]
      responses:
        '200':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/PollVotersListResponse'
          description: Successful Response
        '422':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    PollVotersListResponse:
      description: Response schema for ``GET /api/discussions/{discussion_id}/poll/votes``.
      properties:
        data:
          items:
            $ref: '#/components/schemas/PollVoterResource'
          title: Data
          type: array
        meta:
          $ref: '#/components/schemas/PollVotersListMeta'
      required:
        - data
        - meta
      title: PollVotersListResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    PollVoterResource:
      properties:
        attributes:
          $ref: '#/components/schemas/PollVoterAttributes'
        id:
          title: Id
          type: string
        type:
          const: poll_voters
          default: poll_voters
          title: Type
          type: string
      required:
        - id
        - attributes
      title: PollVoterResource
      type: object
    PollVotersListMeta:
      properties:
        has_more:
          title: Has More
          type: boolean
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Cursor
        option_counts:
          default: []
          items:
            $ref: '#/components/schemas/PollOptionVoteCount'
          title: Option Counts
          type: array
      required:
        - has_more
      title: PollVotersListMeta
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
    PollVoterAttributes:
      description: A single voter row on the poll roster.
      properties:
        avatar_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Avatar Url
        avatar_url_expires_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Avatar Url Expires At
        contact_id:
          title: Contact Id
          type: string
        created_at:
          format: date-time
          title: Created At
          type: string
        display_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Display Name
        option_id:
          title: Option Id
          type: string
      required:
        - contact_id
        - option_id
        - created_at
      title: PollVoterAttributes
      type: object
    PollOptionVoteCount:
      properties:
        count:
          title: Count
          type: integer
        option_id:
          title: Option Id
          type: string
      required:
        - option_id
        - count
      title: PollOptionVoteCount
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT or mio_sk API key
      description: >-
        Send platform JWTs, contact JWTs, or team API keys as `Authorization:
        Bearer <token>`.
      scheme: bearer
      type: http
    HTTPBearer:
      scheme: bearer
      type: http

````