All endpoints

Developers / StrawPoll API / n8n

Register a webhook

POST/n8n/hooks

Registers an n8n webhook address for some or all events, for one poll (form_id) or, without it, for every poll the account owns. Answers with the id that removes it and the secret each delivery's X-StrawPoll-Signature is made with. The editor's test address (/webhook-test/) is accepted as well.

Needs an API key.

Request body application/json

  • url string (uri) required

    The webhook address n8n made up for the trigger, public and HTTPS.

  • events array of string

    The events to send; all three when left out.

    One of: response.created response.updated response.deleted

  • form_id string | null

    The id or slug of a poll the account owns; null for all of them.

Responses

The webhook.

  • id string (uuid)
  • events array of string

    One of: response.created response.updated response.deleted

  • form_id string (uuid) | null
  • secret string

    The signing secret, whsec_…, shown only here.

Try it

Create a key

Sent from your browser directly to the API and nowhere else. With “Remember” on it stays until you close this tab. A read-only key lets you explore the API without changing any data.

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

Paste an API key to send requests that need one.

Requests with a key count against your plan’s daily API requests.