パラメーター
パス
slugstring 必須 max. 20The form's public id, as in
https://strawpoll.com/r/{slug}.idstring (uuid) 必須
リクエストボディ application/json
namestringemailstring (email) 必須codestringweightnumberHow many times this person's answers count.
デフォルト:
1
レスポンス
The invite.
idstring (uuid)formIdstring (uuid)inviteListIdstring (uuid) | nulltypestringmanualfor unique codes.指定できる値:
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.
respondedbooleanWhether the invite or code was used. Not on newly created ones.
試してみる
ブラウザからAPIへ直接送られ、ほかには送られません。「記憶する」をオンにすると、このタブを閉じるまで保持されます。 読み取り専用キーなら、何も変更せずに試せます。
https://new.strawpoll.com/api/v4/forms/{slug}/invites/{id}キーが必要なリクエストを送るには、APIキーを貼り付けてください。
キーを使ったリクエストは、プランの1日あたりのAPIリクエスト数に含まれます。