---
title: "Returns connector usage statistics for the specified Tenant"
method: GET
path: "/tenants/{tenant_id}/connector-usage"
tags: ["tenants"]
---

# Returns connector usage statistics for the specified Tenant

`GET /tenants/{tenant_id}/connector-usage`

Returns a paginated list of connectors used across all workspaces in the tenant,
including usage counts grouped by contract and workspace.
Results are sorted by total usage descending and cached for 5 minutes.
This endpoint is available to Tenant Admins only.

## Path parameters

- `tenant_id` string, required

## Query parameters

- `page[number]` integer
- `page[size]` integer
- `filter[active]` boolean

## Response `200`

OK

- object
  - `data` object[]
    - `component_id` string — Component (connector) ID
    - `component_name` string — Component title from the latest active build
    - `deployed_contract_id` string, nullable — ID of the contract that owns the component's repository
    - `deployed_contract_name` string, nullable — Name of the contract that owns the component's repository
    - `total_usage` integer — Total number of nodes using this component across all flows
    - `contracts` object[] — Usage breakdown by contract, sorted by usage_count descending
      - `contract_id` string, nullable
      - `contract_name` string, nullable
      - `usage_count` integer
      - `workspaces` object[]
        - `workspace_id` string
        - `workspace_name` string
        - `usage_count` integer
  - `meta` object
    - `page` integer — Current page number
    - `per_page` integer — Number of items per page
    - `total` integer — Total number of distinct components
    - `total_pages` integer — Total number of pages

## 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)
