すべてのエンドポイント

開発者向け / StrawPoll API / Codes and invites

Add email invites

POST/forms/{slug}/invites

One invite { name, email, code, weight } or up to 1000 as { "invites": [...] }. Emails are lower-cased. Addresses already invited, and in a batch invalid emails or weights, are skipped and counted in skipped. Every invite gets a code: a requested code already in use, or none, is replaced by a generated one. The new invites come without responded.

APIキーが必要です。

パラメーター

パス

  • slug string 必須 max. 20

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

リクエストボディ application/json

InviteInput | object

レスポンス

Created invites.

  • data array of Invite
  • skipped integer

試してみる

キーを作成

ブラウザからAPIへ直接送られ、ほかには送られません。「記憶する」をオンにすると、このタブを閉じるまで保持されます。 読み取り専用キーなら、何も変更せずに試せます。

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

キーが必要なリクエストを送るには、APIキーを貼り付けてください。

キーを使ったリクエストは、プランの1日あたりのAPIリクエスト数に含まれます。