Create a webhook for database events

automation & ci

// what it does

Registers a URL to receive JSON events when things happen in a database — a branch becomes ready, a deploy request opens, deploys, or errors. This is how PlanetScale pushes into your Slack bot, CI trigger, or internal tooling without polling.

// shell

$ pscale webhook create mydb --url https://ci.example.com/hooks/pscale --events branch.ready,deploy_request.opened

// gotcha

Your endpoint must respond quickly and verify the webhook signature before trusting payloads. Start with the exact event list you need — every event type you subscribe to is traffic your endpoint must handle.

// resources