Todos os endpoints

Desenvolvedores / StrawPoll API / Codes and invites

Invite everyone on one of your invite lists

POST/forms/{slug}/invites/import

Entries with an email become email invites, the others unique codes. Entries already in the form are skipped; invites that came from this list take on its current weights.

Requer uma chave de API.

Parâmetros

Caminho

  • slug string obrigatório max. 20

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

Corpo da requisição application/json

  • inviteListId string (uuid) obrigatório

Respostas

How many email invites and codes were added, and how many entries were skipped.

  • data object

Experimente

Criar uma chave

Enviada do seu navegador direto para a API, para nenhum outro lugar. Com “Lembrar”, fica até você fechar esta aba. Uma chave somente leitura permite explorar sem alterar nada.

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

Cole uma chave de API para enviar as requisições que precisam de uma.

Requisições com chave contam para as requisições de API diárias do seu plano.