---
title: "Get Integration Stats"
method: GET
path: "/api/workspace-integrations/{integration_id}/stats"
tags: ["workspace-integrations", "workspace-integrations"]
---

# Get Integration Stats

`GET /api/workspace-integrations/{integration_id}/stats`

## Request

- Base URL: `https://api.dialogbrain.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dialogbrain.com/api/workspace-integrations/{integration_id}/stats`
- Auth: none declared

Aggregate call-volume + latency + error metrics for one external
integration over the given window. Reads from
`trace_tool_executions` in ClickHouse.

Window values: `24h`, `7d`, `30d`. Anything else falls back to 7d.

Workspace isolation enforced via the standard pre-check — the
target integration must belong to the caller's workspace.
Aggregation itself filters by `tool_name LIKE 'ext<id>_%'` since
integration_ids are globally unique and the dispatcher never lets
a foreign workspace call a non-owned tool.

## Path parameters

- `integration_id` integer, required

## Query parameters

- `period` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway.md) · [All operations](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/revisions/d84e7dc9977d?raw)
