Pular para o conteúdo principal

Webhooks

Os webhooks que avisam seus sistemas do que acontece no Kadu, o segredo de assinatura e o histórico de entregas, com reenvio.

Famílias nesta página​

FamíliaToolsreadwritedestructive
webhooks — Webhooks6204
webhook_deliveries — Entregas de webhook3201

webhooks​

ToolTipoEscopoPermissãoEndpointO que faz
kadu_webhooks_listreadkadu/webhooks + readagent.webhooks.listGET /v1/webhooksLists the webhooks the organization registered.
kadu_webhooks_getreadkadu/webhooks + readagent.webhooks.readGET /v1/webhooks/{id}Gets a webhook (credentials and signing secret are never returned).
kadu_webhooks_createdestructivekadu/webhooks + writeagent.webhooks.createPOST /v1/webhooksRegisters a webhook: Kadu will POST the subscribed events to this URL.
kadu_webhooks_updatedestructive (conforme argumentos)kadu/webhooks + writeagent.webhooks.updatePATCH /v1/webhooks/{id}Updates a webhook.
kadu_webhooks_deletedestructivekadu/webhooks + deleteagent.webhooks.deleteDELETE /v1/webhooks/{id}Deletes a webhook.
kadu_webhooks_rotate_secretdestructivekadu/webhooks + writeagent.webhooks.updatePOST /v1/webhooks/{id}/rotate-secretRotates the signing secret of a webhook.

webhook_deliveries​

ToolTipoEscopoPermissãoEndpointO que faz
kadu_webhook_deliveries_listreadkadu/webhook_deliveries + readagent.webhook_deliveries.listGET /v1/webhook_deliveriesLists the 50 most recent webhook deliveries.
kadu_webhook_deliveries_getreadkadu/webhook_deliveries + readagent.webhook_deliveries.readGET /v1/webhook_deliveries/{id}Gets a webhook delivery: payload, attempts and the response of the receiver.
kadu_webhook_deliveries_replaydestructivekadu/webhook_deliveries + writeagent.webhook_deliveries.replayPOST /v1/webhook_deliveries/{id}/replayQueues a webhook delivery again, to the same webhook only.

Os campos de cada recurso estão na referência da API.

Uma tool que você não pode rodar não aparece em tools/list. Se uma daqui não está lá, veja Autenticação.