---
title: "Get Queues (getTenantQueuesByServiceType)"
method: GET
path: "/api/queues"
tags: ["queue-controller"]
---

# Get Queues (getTenantQueuesByServiceType)

`GET /api/queues`

Returns a page of queues registered in the platform. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. 

Available for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.

## Query parameters

- `serviceType` 'TB-RULE-ENGINE' | 'TB-CORE' | 'TB-TRANSPORT' | 'JS-EXECUTOR', required
- `pageSize` integer, required
- `page` integer, required
- `textSearch` string
- `sortProperty` 'createdTime' | 'name' | 'topic'
- `sortOrder` 'ASC' | 'DESC'

## Response `200`

OK

- PageDataQueue
  - `data` Queue[] — Array of the entities
    - `id` QueueId
      - `id` string, uuid, required — ID of the entity, time-based UUID v1
      - `entityType` 'QUEUE', required — string
    - `createdTime` integer — Entity creation timestamp in milliseconds since Unix epoch
    - `tenantId` TenantId
      - `id` string, uuid, required — ID of the entity, time-based UUID v1
      - `entityType` 'TENANT', required — string
    - `name` string
    - `topic` string
    - `pollInterval` integer
    - `partitions` integer
    - `consumerPerPartition` boolean
    - `packProcessingTimeout` integer
    - `submitStrategy` SubmitStrategy
      - `type` 'BURST' | 'BATCH' | 'SEQUENTIAL_BY_ORIGINATOR' | 'SEQUENTIAL_BY_TENANT' | 'SEQUENTIAL'
      - `batchSize` integer
    - `processingStrategy` ProcessingStrategy
      - `type` 'SKIP_ALL_FAILURES' | 'SKIP_ALL_FAILURES_AND_TIMED_OUT' | 'RETRY_ALL' | 'RETRY_FAILED' | 'RETRY_TIMED_OUT' | 'RETRY_FAILED_AND_TIMED_OUT'
      - `retries` integer
      - `failurePercentage` number, double
      - `pauseBetweenRetries` integer
      - `maxPauseBetweenRetries` integer
    - `additionalInfo` unknown
  - `totalPages` integer — Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria
  - `totalElements` integer — Total number of elements in all available pages
  - `hasNext` boolean — 'false' value indicates the end of the result set

---

[API](https://skmtc.net/thingsboard/apis/thingsboard-rest-api.md) · [All operations](https://skmtc.net/thingsboard/apis/thingsboard-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/thingsboard/thingsboard-rest-api/revisions/40169ccdec5c/schema)
