Create a hook for api key management


Is there any current way to set up a webhook for when keys are created or revoked? If so, can someone elaborate on how this is done? If not, can someone provide some guidance on how I might add this feature?


The event system in the gateway is tied to API definitions, not a general config, so re-our posing for API events is tricky.

You’d need to set up a separate events system or find a new way to trigger events outside of API definitions.

I was a little too quick with this one, I’ve managed to get the event system hooked into system events and have added handlers for the token API, it should be very easy to extend to other API and system events in future.

This is in the unstable v2 branch, so will be out with the next release.