# Polls

Endpoints for interacting with polls attached to posts, including voting and refreshing results from federated instances. Requires authentication. Polls are created as part of a post via the Posts API.

## Refresh poll results

 - [POST /api/v1/polls/{pollId}/refresh](https://docs.wellesley.social/openapi/polls/paths/~1api~1v1~1polls~1%7Bpollid%7D~1refresh/post.md): Refreshes poll results from the remote server if the poll is from a federated instance and the results may be stale. Returns the updated poll with current vote counts.

## Vote in a poll

 - [POST /api/v1/polls/{pollId}/vote](https://docs.wellesley.social/openapi/polls/paths/~1api~1v1~1polls~1%7Bpollid%7D~1vote/post.md): Submit vote(s) for a poll. Multiple choices can be selected if the poll allows it. Users cannot vote in their own polls or vote multiple times.

