Trigger.dev Realtime HTTP API
- URL
-
https://api.trigger.dev/realtime/v1 - Docs
- https://trigger.dev/docs/realtime/overview
Authorization: Bearer <credential> Sign in to Trigger.dev Cloud, open your project, then go to the API Keys page in the dashboard to copy the environment-specific secret key (tr_dev_…, tr_prod_…, etc.). Use it server-side only. For preview branches, also copy the preview branch value and set TRIGGER_PREVIEW_BRANCH as documented on API keys.
Authorization: Bearer <credential> Generate a public access token from your backend using auth.createPublicToken(...) in the Realtime auth guide. Scope it to only the runs, tags, tasks, or sessions your client should access. These tokens are intended for frontend or limited client/backend realtime access, not full project administration.
Authorization: Bearer <credential> Generate a trigger token from your backend following the Realtime auth guide. These are single-use frontend-safe tokens for triggering tasks from React hooks and related realtime flows.