List Queues
GET
List all queues in your environment with pagination support.
secretKeyheader
AuthorizationBearer <token>Use a named environment API key. It starts with tr_dev_sk_, tr_prod_sk_, tr_stg_sk_, etc.
Create a named API key in the API Keys section of your Trigger.dev project dashboard. Choose the narrowest access preset that supports your integration.
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_sk_1234" });page?integerPage number of the queue listing (1-based)
perPage?integerNumber of queues per page
Successful request
application/json- response
data*array<>An array of queue objects
pagination*import { queues } from "@trigger.dev/sdk";// List all queuesconst allQueues = await queues.list();// With paginationconst pagedQueues = await queues.list({ page: 1, perPage: 20,});Example Response
{ "data": [ { "id": "queue_1234", "name": "my-task-id", "type": "task", "version": "V1", "running": 5, "queued": 10, "paused": false, "concurrencyLimit": 10, "concurrency": { "current": 10, "base": 10, "override": null, "overriddenAt": null, "overriddenBy": null } } ], "pagination": { "currentPage": 1, "totalPages": 5, "count": 50 }}Was this page helpful?
Last updated
Edit on GitHub