Quick start
Machine-to-Machine (M2M)
Kinde lets you run your own code via the M2M token generation workflow whenever a machine-to-machine (M2M) token is generated. This gives you a powerful way to react to token usage in real time.
Use this to:
This trigger runs server-side on Kinde infrastructure. You don’t need to deploy or host anything yourself.
Here are some examples of how teams are using this workflow trigger:
Log a metric to your analytics system based on metadata in the token (e.g. region: eu
). Helps track activity across territories.
Prevent token generation if a certain property or flag is missing (e.g. model_version
not assigned).
Trigger a downstream webhook or set a cache flag when a token is generated, allowing dependent services to fetch relevant settings.
Send an alert or log entry if a token is requested more than X times within a short period.
The full setup process and code example is documented in the Token generated workflow trigger page.
This page includes: