Our docs got a big upgrade

Code samples with your project ref already in, dev keys in one click, and API requests you can send without leaving the docs.

Eric Allam

Eric Allam

CTO, Trigger.dev

Image for Our docs got a big upgrade

We just rolled out the biggest changes we've ever made to our docs.

Instead of being static pages, our docs are now interactive and they know who you're logged in as.

That means example code snippets come with your actual project ref.

And you can create a development key from within the docs and use it to make test API requests.

And we also have relevant docs within the dashboard side by side with our features.

Code samples use your own project

Pick a project from the menu in the top bar of the docs. Samples that use a project ref now show yours, so you can copy them straight into your code. If you switch projects, the samples show the new project's ref.

The project menu open in the docs, with the trigger.config.ts sample showing the selected project's ref

Code samples create a dev key in one click

Samples that need an API key now show a Create key button. One click creates a development key for your project with the access that sample needs, and fills it into the sample. The key is kept in that browser tab only.

A .env sample with a Create key button underneath it

Code samples open in your dashboard's Test page

Code samples that trigger a task now have a Test in dashboard button. It opens the Test page in your dashboard with the sample's payload already filled in.

API pages show which key you need and let you send the request

API pages that need a key show exactly which access that key needs. You can create a key with that access from the page, then click Try in Playground to send a real request.

The Playground for Trigger a task, using a docs key created for the Support agent project, with a 200 OK response and a new run ID

Code samples show types when you hover

SDK code samples are now typed, just like in your editor. Hover over a function or option to see its type and what it does.

Hovering over maxDuration in a task sample shows its type and description

Dashboard screens in the docs stay up to date

Screenshots go out of date every time the dashboard changes. So the dashboard screens in the docs are now drawn in code, and our docs checks flag a screen when the dashboard code behind it changes. They also match your light or dark theme, and your coding agent can read what's on them.

The Create a bulk action screen, drawn in code on the bulk actions page

Deploy your first agent today

Get set up in minutes, either on your own or with your coding assistant.

Start for free