---
title: "Get usage of the tenant for specific region"
method: GET
path: "/_api/billing/region/{region}/usage"
tags: ["Billing"]
---

# Get usage of the tenant for specific region

`GET /_api/billing/region/{region}/usage`

## Request

- The document declares no server URL.
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/macrometa/apis/macrometa-api-reference/docs/_api/billing/region/:region/usage/get.ts> (a function with typed inputs; its response is checked against the schema)

Fetch usage of a tenant in specific date range for a specific region. If no query parameters are specified, usage from start date of the month to current date is returned.

**Note**: This API is not applicable for system tenants.

## Path parameters

- `region` string, string, required

## Query parameters

- `startDate` string, string
- `endDate` string, string

## Headers

- `tenant` string, string

## Response `200`

Successfully fetched usage of tenant.

- ResponseUsageGet
  - `code` integer: HTTP response code.
  - `error` boolean: Flag if there is an error in response. *False* for this response.
  - `data` object[]: Message from server
    - `_key` string
    - `tenant` string
    - `from` integer: The date from where usage is tracked
    - `to` integer: The date to which usage is tracked
    - `region` string
    - `records` object[]
      - `name` string
      - `type` integer
      - `value` string

## Other responses

- `400`: Failed due to missing or malformed data. Verify that all parameters are complete.
- `401`: Failed because you do not have administrator permissions.

---

[API](https://skmtc.dev/macrometa/apis/macrometa-api-reference.md) - [All operations](https://skmtc.dev/macrometa/apis/macrometa-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/macrometa/apis/macrometa-api-reference/revisions/2006b6d7f31d?raw)
