Parâmetros
Caminho
slugstring obrigatório max. 20The form's public id, as in
https://strawpoll.com/r/{slug}.idstring (uuid) obrigatório
Corpo da requisição application/json
namestringemailstring (email) obrigatóriocodestringweightnumberHow many times this person's answers count.
Padrão:
1
Respostas
The invite.
idstring (uuid)formIdstring (uuid)inviteListIdstring (uuid) | nulltypestringmanualfor unique codes.Um de:
emailmanualnamestring | nullemailstring | nullphonestring | nullcodestring | nullinvitedbooleanWhether the invite was emailed.
weightnumberHow many times this person's answers count.
responseIdstring (uuid) | nullAlways null in a secret ballot.
createdAtstring (date-time)respondedAtstring (date-time) | nullAlways null in a secret ballot.
respondedboolean | nullWhether the invite or code was used. Null while a secret ballot is open: which ones were used shows once it has closed, and until then the list only tells how many, as
respondedCountnext todata. Not on newly created ones.
Experimente
Enviada do seu navegador diretamente para a API, para nenhum outro lugar. Com “Lembrar”, é mantida até você fechar esta aba. Uma chave somente leitura permite explorar sem alterar nada.
https://strawpoll.com/api/v4/forms/{slug}/invites/{id}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.