---
title: "Returns the amount of messages in input queues of all flows in the defined workspace."
method: GET
path: "/stats/queues/workspace/{workspace_id}"
tags: ["stats"]
---

# Returns the amount of messages in input queues of all flows in the defined workspace.

`GET /stats/queues/workspace/{workspace_id}`

This request is authorized for any member of the given workspace.

## Path parameters

- `workspace_id` string, required

## Response `200`

OK

- object
  - `data` object, required
    - `attributes` object[], required
      - `id` string, required — Flow ID
      - `totalMessages` integer, required

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

---

[API](https://skmtc.net/elastic/apis/elastic-io-rest-api-documentation-v2.md) · [All operations](https://skmtc.net/elastic/apis/elastic-io-rest-api-documentation-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elastic/elastic-io-rest-api-documentation-v2/revisions/411f9f98c01e/schema)
