---
title: "Retrieve related object counts"
method: GET
path: "/api/v1/queues/{id}/related_objects_counts"
tags: ["Queue"]
---

# Retrieve related object counts

`GET /api/v1/queues/{id}/related_objects_counts`

<Callout type="warn">
This is an internal API method that can change without notice.
</Callout>

Get counts of selected related objects for a queue.

## Path parameters

- `id` integer, required

## Response `200`

OK

- object
  - `emails` integer — Number of email objects related to the queue.
  - `annotations` integer — Number of annotation objects related to the queue (purged annotations are excluded from this count).
  - `trained_dedicated_engines` integer — Number of dedicated engines using the queue for training.

## Other responses

- `400` — Invalid input data.
- `401` — The username/password is invalid or token is invalid (e.g. expired).
- `403` — Insufficient permission, missing authentication, invalid CSRF token and similar issue.
- `404` — The specified resource was not found.
- `409` — Conflict
- `429` — Request rate is too high, wait before sending more requests. See [Rate Limiting](/guides/overview#rate-limiting) for more details.
- `500` — Server failure while processing the request.
- `502` — Invalid response from the upstream server.
- `503` — We're temporarily offline for maintenance. Please try again later.
- `504` — Upstream server could not complete the request in time.

---

[API](https://skmtc.dev/rossum/apis/rossum-api.md) · [All operations](https://skmtc.dev/rossum/apis/rossum-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/rossum/rossum-api/revisions/f1b5a910991d/schema)
