Todos los endpoints

Desarrolladores / 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 sin clave de API desde un navegador; los scripts envían una.

Parámetros

Ruta

  • slug string obligatorio max. 20

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

Respuestas

The token.

  • token string

Pruébalo

Crear una clave

Se envía desde tu navegador directamente a la API, a ningún otro sitio. Con «Recordar» se queda hasta que cierres esta pestaña. Con una clave de solo lectura puedes explorar sin cambiar nada.

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

Las peticiones con clave cuentan para las peticiones de API diarias de tu plan.