---
search:
  tags:
    - Usage
    - GET
seo:
  description: >-
    Returns what one tenant used hour by hour, with the hour in progress and
    the… Reference for the GET /_luna/tenants/{tenant}/usage endpoint in the
    Luna API.
sidebar:
  label: Get a tenant's usage
  badge: GET
title: Get a tenant's usage
type: openapi-operation
---
Returns what one tenant used hour by hour, with the hour in progress and the totals. Usage is in raw counts by meter. The totals are also split by package and by luna type.

`GET /_luna/tenants/{tenant}/usage`

**Responses**

- `200` — The tenant's usage.
- `default` — The request failed. The status says how and \`error.message\` says why.

Response example, 200:

```json
{
  "tenant": "string",
  "hours": [
    {
      "hour": 0,
      "startMs": 0,
      "usage": {
        "property1": 0,
        "property2": 0
      }
    }
  ],
  "currentHour": {
    "property1": 0,
    "property2": 0
  },
  "totals": {
    "property1": 0,
    "property2": 0
  },
  "packages": {
    "property1": {
      "property1": 0,
      "property2": 0
    },
    "property2": {
      "property1": 0,
      "property2": 0
    }
  },
  "types": {
    "property1": {
      "property1": 0,
      "property2": 0
    },
    "property2": {
      "property1": 0,
      "property2": 0
    }
  }
}
```
