Tutti gli endpoint

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

Funziona senza chiave API da un browser; gli script ne inviano una.

Parametri

Percorso

  • slug string obbligatorio max. 20

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

Corpo della richiesta application/json

  • action string obbligatorio

    Uno tra: send verify

  • email string (email) obbligatorio
  • 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.

Risposte

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

Provalo

Crea una chiave

Inviata dal tuo browser direttamente all’API, da nessun’altra parte. Con «Ricorda» resta finché non chiudi questa scheda. Con una chiave di sola lettura puoi esplorare senza cambiare nulla.

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

Le richieste con chiave contano nelle richieste API giornaliere del tuo piano.