# Get team financial totals `GET /api/v1/teams/summary` Returns combined financial totals for teams in the workspace or in a single sport. ## Permissions Send your API key in `X-API-Key`. Required permissions are **Teams → Read, Subscriptions → Read, and Payments → Read**. ## Headers - `X-Sport-Id` (integer) — Limits the result to one sport. Omit it for the workspace-wide view. ## Query parameters - `status` (string) — Use `archived` for archived teams. The default covers active teams. ## Request Set ASDINCLOUD_API_KEY and SPORT_ID before running. ```sh curl --request GET \ --url "https://api.asdincloud.com/api/v1/teams/summary" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" \ --header "X-Sport-Id: $SPORT_ID" ``` ## Response **200 OK** Returns `total`, `paid`, and `left` as numbers in `data`. Text search, sorting, and pagination do not affect these totals. Example with fictional data and selected fields. ```json { "status": "success", "data": { "total": 200, "paid": 125, "left": 75 } } ``` ## Errors - `401` — The API key is missing or invalid. - `403` — The API key lacks one or more required permissions.