---
title: "Get Cost"
method: GET
path: "/teams/cost/graph"
tags: ["TEAMS"]
---

# Get Cost

`GET /teams/cost/graph`

## Request

- Base URL: `https://api.myaltimate.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.myaltimate.com/teams/cost/graph`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

## Query parameters

- `teams` string[]
- `start_date` string
- `end_date` string
- `aggregate_by` 'day' | 'week' | 'month'
- `instance_id` string

## Headers

- `x-tenant` string, required

## Response `200`

Successful Response

- CostGraphResponse
  - `summary` CostSummary, required
    - `total_spend` number, required
    - `active_teams` integer, required
    - `average_daily_spend` number, required
    - `unaccounted_spend` number, required
    - `compute_spend` number, nullable
    - `storage_spend` number, nullable
    - `unaccounted_storage_spend` number, nullable
    - `storage_first_date` string, nullable
    - `storage_last_date` string, nullable
  - `spend_by_teams` DailyTeamSpend[], required
    - `date` string, required
    - `team_spends` object, required
    - `team_storage_spends` object, nullable
  - `meta` object, required: Period start and end dates

## Other responses

- `400`: Invalid data
- `403`: Not supported for public user
- `422`: Validation Error

## Changes

- **2026-10-30** `77a7dface13f`: 6 info
  - added the optional property `spend_by_teams/items/team_storage_spends` to the response with the `200` status
  - added the optional property `summary/compute_spend` to the response with the `200` status
  - added the optional property `summary/storage_first_date` to the response with the `200` status
  - added the optional property `summary/storage_last_date` to the response with the `200` status
  - …2 more
- **2026-09-15** `8a08bdb37cfa`: 1 breaking, 3 info
  - the `query` request parameter `aggregate_by` was restricted to a list of enum values
  - added the new enum value `day` to the `query` request parameter `aggregate_by`
  - added the new enum value `month` to the `query` request parameter `aggregate_by`
  - added the new enum value `week` to the `query` request parameter `aggregate_by`

[Operation history](https://skmtc.dev/myaltimate/apis/myaltimate-api/changes/teams/cost/graph/get.md)

---

[API](https://skmtc.dev/myaltimate/apis/myaltimate-api.md) - [All operations](https://skmtc.dev/myaltimate/apis/myaltimate-api/llms.txt) - [OpenAPI document](https://skmtc.dev/myaltimate/apis/myaltimate-api/revisions/727657ce54e9?raw)
