MongocampWebhooks
Outbound webhooks of server 3.0, for administrators: the server posts the document events (document:create, document:update, document:delete, document:restore, or *) of chosen collections to a URL, signed with the webhook's secret (x-mongocamp-signature), and retries failed deliveries through the queue. Page: paths.webhooks (default /secured/admin/webhooks, navigation group Server).
vue
<template>
<MongocampWebhooks />
</template>- List — URL, events, collections (All collections when none are chosen — an empty list and a missing one mean the same on the server), state (Active, Off, Switched off = the server turned it off after
WEBHOOKS_DISABLE_AFTERfailed deliveries in a row, with the count). Webhooks declared in code (server.use(webhooks([...]))) are marked In code and have only Deliveries — the API cannot change them. - Add / Edit — URL (http or https, no user name or password — checked before sending, like the server), events (All events or single ones), collections (from the collection list, none = all), Send the documents (
includeDocuments: the current documents without secret or read-ruled fields; otherwise ids only), Active (edit only; switching a switched-off webhook on resets its count). An edit sends only the changed fields. After Create the dialog shows the signing secret once with a copy button — the server never answers it again. - Delete — after a confirmation; an unknown webhook (
404) counts as deleted. - Deliveries — a drawer with the latest deliveries (the server keeps 7 days): time, event and collection, the answer (status or No answer, with the error), attempt, duration. A retry keeps the delivery id.
- Addresses inside your network are refused by the server at delivery time unless
WEBHOOKS_ALLOW_PRIVATE=true— the delivery shows the error.
Every change reloads the list and emits changed. hideHeading / hideRefresh, toolbar slot, refresh() exposed. Data: useMongocampWebhooks.