Mastodon
  • User guide
    • Basics
    • Decentralization
    • Privacy
    • Moderation
  • Administrator guide
    • Installation
    • Configuration
    • Post-installation steps
    • Scaling up
    • Optional features
    • Upgrading to a new release
    • Migrating servers
    • Troubleshooting
  • Development guide
    • Overview
    • ActivityPub compliance
    • アカウントの移行
  • API Overview
    • Guidelines
    • Libraries
    • Authentication
    • Permissions
    • Entities
    • Parameters
    • Streaming API
    • Web Push API
  • REST API
    • Accounts
    • Apps
    • Blocks
    • Custom emoji
    • Domain blocks
    • Endorsements
    • Favourites
    • Filters
    • Follow requests
    • Follow suggestions
    • Instances
    • Lists
    • Media attachments
    • Mutes
    • Notifications
    • Polls
    • Reports
    • Scheduled Statuses
    • Search
    • Statuses
    • Timelines

Polls

    • GET /api/v1/polls/:id
      • Resource information
    • POST /api/v1/polls/:id/votes
      • Parameters
      • Resource information

GET /api/v1/polls/:id

Returns Poll

Resource information

Response format JSON
Requires authentication No
Requires user No
Scope read read:statuses
Available since 2.8.0

POST /api/v1/polls/:id/votes

Vote on a poll.

Returns Poll

Parameters

Name Description Required
choices Array of choice indices Required

Resource information

Response format JSON
Requires authentication Yes
Requires user Yes
Scope write write:statuses
Available since 2.8.0

Last updated September 17, 2019 · Improve this page

Merch

T-shirts and stickers

Join Mastodon · Blog · ·

View source · CC BY-SA 4.0 · Imprint