Skip to Content

List Queues

Required accessQueues: readread:queuesAny key with this access, from API keys
GET
/api/v1/queues

List all queues in your environment with pagination support.

Authorization

secretKey
headerAuthorizationBearer <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" });

Query Parameters

page?integer

Page number of the queue listing (1-based)

perPage?integer

Number of queues per page

Response Body

Successful request

application/json
  1. response
data*array<>

An array of queue objects

pagination*
Example Request
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