# Webhooks

> Stripe billing webhooks and Apify scrape completion hooks.

# Webhooks

## Stripe

`POST /api/webhook/stripe`

Keeps workspace plan, video limit, and `hasAccess` in sync with Checkout and subscription events.

## Apify

`POST /api/webhooks/apify?job_id=...`

Receives actor run completion, fetches the dataset, normalizes metrics, writes `metric_snapshots`, and marks videos/accounts `active` or `error`.
