All endpoints

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

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

Request body application/json

  • action string required

    One of: send verify

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

Responses

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

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.

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

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