Skip to content

Webhooks

On the Paid plan, you can add HTTPS endpoints under Hooks to be notified as things happen, such as users being created, signing in, being updated or being deleted. See the list of events for everything you can receive.

Each event arrives as a POST request with a JSON body like this:

{
"id": "evt_…",
"seq": 1763380000000000,
"type": "user.created",
"timestamp": "2026-11-17T10:00:00.000Z",
"payload": { "user": { "id": "…", "standard_attributes": { "email": "ann@example.com" } } },
"context": { "app_id": "proj_…", "user_id": "…", "ip_address": "…", "triggered_by": "user" }
}

Each delivery is signed following the Standard Webhooks specification, using three headers:

  • webhook-id is the event’s ID. You can use it to ignore an event you’ve already handled.
  • webhook-timestamp is the time it was sent, in seconds since 1970. Rejecting old timestamps stops someone replaying an earlier delivery.
  • webhook-signature is v1,<base64>, an HMAC-SHA256 of <id>.<timestamp>.<body> made with your signing secret.

You create the signing secret under Hooks. It starts with whsec_ and is only shown once. Any Standard Webhooks library can check signatures for you:

import { Webhook } from "standardwebhooks";
const event = new Webhook(process.env.WEBHOOK_SECRET).verify(rawBody, headers);

If your endpoint doesn’t answer with a 2xx status, the delivery is tried again over about three days, making 10 attempts with gaps that grow from 5 seconds to 12 hours. An endpoint that’s failing never holds up anyone signing in, and every event is recorded in the audit log whether or not it was delivered.