Parámetros
Ruta
slugstring obligatorio max. 20The form's public id, as in
https://strawpoll.com/r/{slug}.idstring (uuid) obligatorio
Cuerpo de la petición application/json
namestringemailstring (email) obligatoriocodestringweightnumberHow many times this person's answers count.
Por defecto:
1
Respuestas
The invite.
idstring (uuid)formIdstring (uuid)inviteListIdstring (uuid) | nulltypestringmanualfor unique codes.Uno 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.
Pruébalo
Se envía desde tu navegador directamente a la API, a ningún otro sitio. Con «Recordar» se conserva hasta que cierres esta pestaña. Con una clave de solo lectura puedes explorar sin cambiar nada.
https://strawpoll.com/api/v4/forms/{slug}/invites/{id}Pega una clave de API para enviar las peticiones que la necesitan.
Las peticiones con clave cuentan para las peticiones de API diarias de tu plan.