すべてのエンドポイント

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

Invite everyone on one of your invite lists

POST/forms/{slug}/invites/import

Entries with an email become email invites, the others unique codes. Entries already in the form are skipped; invites that came from this list take on its current weights.

APIキーが必要です。

パラメーター

パス

  • slug string 必須 max. 20

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

リクエストボディ application/json

  • inviteListId string (uuid) 必須

レスポンス

How many email invites and codes were added, and how many entries were skipped.

  • data object

試してみる

キーを作成

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

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

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

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