Tutti gli endpoint

Sviluppatori / StrawPoll API / Codes and invites

Add email invites

POST/forms/{slug}/invites

One invite { name, email, code, weight } or up to 1000 as { "invites": [...] }. Emails are lower-cased. Addresses already invited, and in a batch invalid emails or weights, are skipped and counted in skipped. Every invite gets a code: a requested code already in use, or none, is replaced by a generated one. The new invites come without responded.

Richiede una chiave API.

Parametri

Percorso

  • slug string obbligatorio max. 20

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

Corpo della richiesta application/json

InviteInput | object

Risposte

Created invites.

  • data array of Invite
  • skipped integer

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}/invites

Incolla una chiave API per inviare le richieste che ne hanno bisogno.

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