Parameters
Path
slugstring required max. 20The form's public id, as in
https://strawpoll.com/r/{slug}.idstring (uuid) required
Request body application/json
namestringemailstring (email) requiredcodestringweightnumberHow many times this person's answers count.
Default:
1
Responses
The invite.
idstring (uuid)formIdstring (uuid)inviteListIdstring (uuid) | nulltypestringmanualfor unique codes.One of:
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.
Try it
Sent from your browser directly to the API and nowhere else. With “Remember” on it stays until you close this tab. A read-only key lets you explore the API without changing any data.
https://strawpoll.com/api/v4/forms/{slug}/invites/{id}Paste an API key to send requests that need one.
Requests with a key count against your plan’s daily API requests.