---
title: "Get costs for an Organization"
method: GET
path: "/costs"
tags: ["Cost"]
---

# Get costs for an Organization

`GET /costs`

## Query parameters

- `timespan` 'DAY' | 'WEEK' | 'MONTH' | 'QUARTER' | 'YEAR'
- `granularity` 'DAILY' | 'HOURLY'
- `organizationId` string, required
- `projectIds` string
- `accumulated` string

## Response `200`

- CostApiGetOrganizationCostsResponse
  - `costDataPoints` CostApiGroupedCloudCost[], required
    - `date` string, required
    - `providersCost` object, required
      - `AWS` number
      - `GCP` number
      - `AZURE` number
    - `groupKey` string, required
  - `errors` CostApiCostError[], required
    - `type` 'AWS' | 'GCP' | 'AZURE', required
    - `errorMessage` string, required
    - `id` string, required
  - `staleProjectIds` string[]

---

[API](https://skmtc.dev/envzero/apis/env0-api.md) · [All operations](https://skmtc.dev/envzero/apis/env0-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/envzero/env0-api/revisions/513441cbe9dc/schema)
