All endpoints

Developers / StrawPoll API / Voting

Get a vote token

GET/forms/{slug}/vote-token

A vote token for one new response from a browser, sent in voteToken with POST /forms/{slug}/submit. The voting page gets one when it loads; this is for pages that show the poll elsewhere, and for a page whose token ran out after 12 hours. It belongs to the poll and the network it was fetched from. Known bots, scripts and AI agents are refused with automated.

Works from a browser without an API key; scripts send one.

Parameters

Path

  • slug string required max. 20

    The form's public id, as in https://strawpoll.com/r/{slug}.

Responses

The token.

  • token string

Try it

Create a key

Sent from your browser straight to the API, nowhere else. With “Remember” on it stays until you close this tab. A read-only key lets you look around without changing anything.

GET https://new.strawpoll.com/api/v4/forms/{slug}/vote-token

Requests with a key count against your plan’s daily API requests.