---
title: "Get Team Stats"
method: GET
path: "/v2/teams/{team_id}/stats"
tags: ["v2 - Teams"]
---

# Get Team Stats

`GET /v2/teams/{team_id}/stats`

## Request

- Base URL: `https://api.jubjubapp.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.jubjubapp.com/v2/teams/{team_id}/stats`
- Auth: HTTP bearer

Get aggregated statistics for a team.

Calculates total_contents, total_launches, etc. by summing from all team workspaces.
This provides real-time stats without requiring denormalized counters.

User must be a member of the team.

## Path parameters

- `team_id` string, required

## Headers

- `Authorization` string
- `X-JubJub-Service-Key` string
- `X-JubJub-Agent-Key` string
- `X-JubJub-Platform-Key` string
- `Origin` string
- `Referer` string
- `X-JubJub-Trial-Token` string

## Response `200`

Successful Response

- TeamAggregatedStatsResponse: Aggregated statistics for a team, calculated from workspaces.
  - `team_id` string, required
  - `member_count` integer
  - `workspace_count` integer
  - `shared_credential_count` integer
  - `total_contents` integer
  - `total_launches` integer
  - `successful_launches` integer
  - `pending_launches` integer
  - `launch_success_rate` number, nullable
  - `last_activity_at` string, date-time, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/jubjubapp/apis/jubjub-api.md) - [All operations](https://skmtc.dev/jubjubapp/apis/jubjub-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jubjubapp/apis/jubjub-api/revisions/353157b296f2?raw)
