---
title: "Lists of workspaces with flows in them and flow components."
method: GET
path: "/stats/workspaces"
tags: ["stats"]
---

# Lists of workspaces with flows in them and flow components.

`GET /stats/workspaces`

A user has to be a member of the Contract’s scope with the `global.stats.workspaces` permission or belong to the Tenant Admin users group

## Query parameters

- `contract_id` string

## Response `200`

OK

- object
  - `data` object[]
    - `id` string, required
    - `type` 'workspace-stats', required
    - `attributes` object, required
      - `name` string, required
      - `type` 'full' | 'limited', required
      - `flows` object[], required
        - `id` string
        - `name` string
        - `status` string
        - `type` string
        - `created_at` string
        - `updated_at` string
        - `components` object[]
          - `name` string, required
          - `component_id` string, required
          - `version` string, 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)
