すべてのエンドポイント

開発者向け / StrawPoll API / Zapier

Subscribe a hook

POST/zapier/hooks

Subscribes a Zapier hook address to an event, for one poll (form_id) or, without it, for every poll the account owns. Answers with the id that unsubscribes it.

APIキーが必要です。

リクエストボディ application/json

  • url string (uri) 必須

    The Zap's hook address, https://hooks.zapier.com/hooks/….

  • event string 必須

    指定できる値: response.created response.updated response.deleted

  • form_id string (uuid) | null

    A poll the account owns (id from GET /zapier/polls); null for all of them.

レスポンス

The subscription.

  • id string (uuid)
  • event string

    指定できる値: response.created response.updated response.deleted

  • form_id string (uuid) | null

試してみる

キーを作成

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

POST https://strawpoll.com/api/v4/zapier/hooks

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

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