How to receive webhooks
1. Create an endpoint
In your application, create a route that acceptsPOST requests over HTTPS. For local development, expose your endpoint with a tunnel such as ngrok or Cloudflare Tunnel.
2. Configure the webhook URL
Webhook URLs are configured in different places depending on the event type.3. Verify the signature
Every request is signed with anX-Signature-V2 header. Verify it before trusting the payload. See Verify webhook requests.
4. Handle the event
Inspect the envelopetype and route to the right handler. Each event’s data schema is documented on its own page in this section.
Custom data points
Authenticator events can include values from your custom data points indata.customVariables, the same field that email.created uses.
To include them:
- Register the data points you want to include as custom data points.
- In Tenant settings, open Webhooks.
- Under Authenticator events webhook URL, select Include custom data points.
- Select the data points to include, then save.
customVariables is the data point’s name, prefixed by its source:
- User data points are prefixed with
user_, such asuser_accountId. - Action data points are prefixed with
action_, such asaction_transactionAmount.
customVariables field.
Action data points come from the action’s custom data, so an event carries them only if it happened during an action. Those events include actionCode and idempotencyKey. authenticator.expired never happens during an action, so it carries only user data points.
authenticatorEventsWebhookConfig.allowedCustomVariables when you update the tenant. List Custom Data Points returns each data point’s ID. To keep the stored list, omit allowedCustomVariables. To stop including custom data points, send an empty array.
