Alle Endpunkte

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

Funktioniert im Browser ohne API-Schlüssel; Skripte schicken einen mit.

Parameter

Pfad

  • slug string Pflicht max. 20

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

Request-Body application/json

  • action string Pflicht

    Einer von: send verify

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

Antworten

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

Ausprobieren

Schlüssel erstellen

Geht von deinem Browser direkt an die API und nirgendwo sonst hin. Mit „Merken“ bleibt er, bis du diesen Tab schließt. Mit einem Nur-Lesen-Schlüssel schaust du dich um, ohne etwas zu ändern.

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

Anfragen mit Schlüssel zählen gegen die täglichen API-Anfragen deines Tarifs.