Tous les endpoints

Développeurs / 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.

Nécessite une clé d’API.

Corps de la requête application/json

  • url string (uri) obligatoire

    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.

    Parmi: 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.

Réponses

The webhook.

  • id string (uuid)
  • events array of string

    Parmi: response.created response.updated response.deleted

  • form_id string (uuid) | null
  • secret string

    The signing secret, whsec_…, shown only here.

Essayer

Créer une clé

Envoyée depuis votre navigateur directement à l’API, nulle part ailleurs. Avec « Mémoriser », elle est conservée jusqu’à la fermeture de cet onglet. Une clé en lecture seule permet d’explorer sans rien modifier.

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

Collez une clé d’API pour envoyer les requêtes qui en demandent une.

Les requêtes avec une clé comptent dans les requêtes d’API quotidiennes de votre offre.