Authentication and your secret keys

When you trigger a task from your backend code, you need to set the TRIGGER_SECRET_KEY environment variable.

Each environment has its own secret key. You can find the value on the API keys page in the Trigger.dev dashboard: