Hooks
Run your own code when someone signs up or pays, on a schedule, or behind your own API routes.
What it does
Your own code on events and schedules
Typed functions for 23 events in one file you own, retried for about a day.
Guards that can turn away a sign-up or a new organisation.
Scheduled jobs and your own API routes, checked by role or plan.
Every run in the admin, with its error, Retry now and Replay.
Hooks
How it works
Open it in the demo account and follow the steps.
The demo is a shared read-only account: every screen opens, but nothing you change is saved.
Step 01
Write a function
Register a typed function for an event, such as user.signed_up, in the hooks file in your own folder.
Step 02
Try it locally
Fire the event at your local database with pnpm hooks:fire, and watch your code run before you deploy.
Step 03
Watch it run
Every run is in Admin → Developers, with its attempts, its error, Retry now and Replay.
Read the docs
Hooks: run your code when things happenRelated features
Works well with Hooks
- Run
Webhooks and alerts
Send sign-ups, first payments and form answers to Zapier, Make or your server, with alerts in Slack.
See the feature - Run
Automations
A weekly report, publish notices and a weekly audit of the whole site.
See the feature - Run
Agents and the API
Connect Claude Code or Cursor, and let agents draft and test while you approve.
See the feature



