---
# System prepended metadata

title: Untitled

---

- [x] When a new catalogue gets created, the algolia api key gets generated automatically (async)
- [x] When a new catalogue gets created and the algolia api key gets generated, a webhook will be sent
- [x] When the debug endpoint updates the catalogues' algolia api keys, N webhooks will be sent where N is the number of updated catalogues
- [x] When the command runs, it should pick up catalogues w/ near-expiring algolia api keys and refreshes them. This should, in effect, send a webhook for each updated catalogue


Additional things to check:
- check if the webhook subscriptions fetched in the AbstractWebhookListener belong to the catalogue's provider.
    - If no webhook subscription exists for the current catalogue's provider, then no webhook should be sent.
- ~~**No x-webhook-signature is included in the header (bug)**~~