List sessions
List sessions in the current environment, newest first. Filter by type, tags, task identifier, external id, status, and creation window. Use cursor-based pagination with page[after] and page[before] to navigate pages.
List rows omit triggerConfig; retrieve a single session to read it.
Authorizations
Use your project-specific Secret API key. Will start with tr_dev_, tr_prod, tr_stg, etc.
You can find your Secret API key in the API Keys section of your Trigger.dev project dashboard.
Our TypeScript SDK will default to using the value of the TRIGGER_SECRET_KEY environment variable if it is set. If you are using the SDK in a different environment, you can set the key using the configure function.
import { configure } from "@trigger.dev/sdk";
configure({ accessToken: "tr_dev_1234" });
Query Parameters
Paginate the results. Specify the number of sessions per page, and the ID of the session to start the page after or before.
For object fields like page, use the "form" encoding style. For example, to get the next page, use page[after]=session_1234.
Use this parameter to filter the sessions. You can filter by type, tags, task identifier, external id, status, and created at.
For array fields, you can provide multiple values to filter by using a comma-separated list. For example, to get ACTIVE and CLOSED sessions, you can use filter[status]=ACTIVE,CLOSED.
For object fields, you should use the "form" encoding style. For example, to filter by the period, you can use filter[createdAt][period]=1d.

