すべてのエンドポイント

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

Email invites

POST/forms/{slug}/invites/send

Emails invites that were not sent yet, or the ones in ids (with resend: true also those sent before). subject and message may use {{name}}, {{form}} and {{link}}, and may hold no other links. Each email costs the form owner's credits; nothing is sent when the batch costs more than they have. Unsubscribed addresses are skipped and cost nothing.

APIキーが必要です。

パラメーター

パス

  • slug string 必須 max. 20

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

リクエストボディ application/json

  • subject string 必須
  • message string 必須
  • ids array of string (uuid)
  • resend boolean
  • domain string

    One of your active custom domains for the links; defaults to your first one, else strawpoll.com.

レスポンス

How many invites were emailed.

  • data object

試してみる

キーを作成

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

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

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

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