Todos os endpoints

Desenvolvedores / StrawPoll API / Voting

Verify a voter's email

POST/forms/{slug}/verify

For forms limited to one response per email address. { "action": "send", "email" } emails a 6-digit code; { "action": "verify", "email", "code" } confirms it for this browser. Then submit as usual.

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}.

Corpo da requisição application/json

  • action string obrigatório

    Um de: send verify

  • email string (email) obrigatório
  • code string
  • voteToken string

    With send: the vote token, see GET /forms/{slug}/vote-token. Without one, the request gets the CAPTCHA.

  • captchaToken string

    With send: a solved CAPTCHA, once a captcha error asked for one.

Respostas

{ "sent": true, "resendIn": 60 } or { "verified": true }.

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.

POST https://new.strawpoll.com/api/v4/forms/{slug}/verify

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