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

# Vote in a Mastodon poll

> Vote in a Mastodon poll via Posttu's Mastodon REST API (POST /api/v1/mastodon/polls/vote) and MCP server.



## OpenAPI

````yaml openapi.json POST /api/v1/mastodon/polls/vote
openapi: 3.1.0
info:
  title: Posttu API
  version: 1.0.0
  description: >-
    Posttu V1 REST API — Workflow automation, social-media post management,
    inbox, tags, and calendar.
servers:
  - url: https://posttu.com
    description: Production
security: []
paths:
  /api/v1/mastodon/polls/vote:
    post:
      tags:
        - Mastodon
      summary: Vote in a Mastodon poll
      description: |-
        Vote in a Mastodon poll
        Requires API key scope: `mastodon:write`.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                channelId:
                  type: string
                  description: Mastodon channel ID
                  example: ch_md123
                pollId:
                  type: string
                  description: Mastodon poll ID
                choices:
                  type: array
                  items:
                    type: integer
                    minimum: 0
                  minItems: 1
              required:
                - channelId
                - pollId
                - choices
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MastodonPollVoteResponse'
        '401':
          description: Error response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
      security:
        - ApiKeyAuth: []
components:
  schemas:
    MastodonPollVoteResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/MastodonPoll'
        success:
          type: boolean
        error:
          type: string
      required:
        - data
        - success
    MastodonPoll:
      type:
        - object
        - 'null'
      properties:
        id:
          type: string
        expires_at:
          type:
            - string
            - 'null'
        expired:
          type: boolean
        multiple:
          type: boolean
        votes_count:
          type: number
        voters_count:
          type:
            - number
            - 'null'
        options:
          type: array
          items:
            type: object
            properties:
              title:
                type: string
              votes_count:
                type:
                  - number
                  - 'null'
            required:
              - title
              - votes_count
        voted:
          type: boolean
        own_votes:
          type: array
          items:
            type: number
        emojis:
          type: array
          items: {}
      required:
        - id
        - expires_at
        - expired
        - multiple
        - votes_count
        - voters_count
        - options
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      description: 'Pass your API key via the Authorization header: `Bearer <api-key>`'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.