Todos os endpoints

Desenvolvedores / 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.

Funciona sem chave de API num navegador; scripts enviam uma.

Parâmetros

Caminho

  • slug string obrigatório max. 20

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

Respostas

The token.

  • token string

Experimente

Criar uma chave

Enviada do seu navegador direto para a API, para nenhum outro lugar. Com “Lembrar”, fica até você fechar esta aba. Uma chave somente leitura permite explorar sem alterar nada.

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

Requisições com chave contam para as requisições de API diárias do seu plano.