Skip to main content

Trigger a tracking run

Enqueues a tracking job. Returns:

Poll job status

Returns:
status values: waiting, active, completed, failed, cancelled.

Internal cron endpoint

The web app’s cron route (/api/cron/daily-tracking) calls the server’s internal endpoint with a shared secret:
This loops over every brand in the org, picks brands due for refresh based on brand_platforms.check_frequency, and enqueues tracking jobs for them.
Vercel Cron triggers /api/cron/daily-tracking on a schedule defined in web/vercel.json. To run the same flow manually for testing, hit the server endpoint directly with the cron secret.

Latest results

For UI rendering, prefer the optimized RPC:
Returns the most recent prompt_results row per (prompt_id, platform) — much cheaper than SELECT … ORDER BY created_at DESC LIMIT 1 per prompt in app code.

Continue: Webhooks

Outbound webhooks for content briefs and lifecycle events.