Tutti gli endpoint

Sviluppatori / StrawPoll API / Codes and invites

Generate unique codes

POST/forms/{slug}/codes

For forms with responseDuplicateCheck: code. Each code allows one response. prefix is upper-cased. Codes too short for how many there are get 400 with weak_codes. The new codes 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

  • count integer obbligatorio ≥ 1, ≤ 10000
  • length integer obbligatorio ≥ 4, ≤ 32
  • style string

    Uno tra: alphanumeric numeric letters

    Predefinito: alphanumeric

  • prefix string max. 20

Risposte

The new codes.

  • data array of Invite

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

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

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