Trigger a tracking run
Poll job status
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:
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: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.