Todos os endpoints

Desenvolvedores / 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.

Requer uma chave de API.

Corpo da requisição application/json

  • url string (uri) obrigatório

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

  • event string obrigatório

    Um de: 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.

Respostas

The subscription.

  • id string (uuid)
  • event string

    Um de: response.created response.updated response.deleted

  • form_id string (uuid) | null

Experimente

Criar uma chave

Enviada do seu navegador diretamente para a API, para nenhum outro lugar. Com “Lembrar”, é mantida até você fechar esta aba. Uma chave somente leitura permite explorar sem alterar nada.

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

Cole uma chave de API para enviar as requisições que precisam de uma.

Requisições com chave contam para as requisições de API diárias do seu plano.