---
title: "List all usages"
method: GET
path: "/compute/{connection_id}/usage"
tags: ["compute", "usage"]
---

# List all usages

`GET /compute/{connection_id}/usage`

## Request

- Base URL: `https://api.unified.to`
- URL: `https://api.unified.to/compute/{connection_id}/usage`
- Auth: API key in header `authorization`

## Path parameters

- `connection_id` string, required

## Query parameters

- `limit` number
- `offset` number
- `updated_gte` string
- `sort` string
- `order` string
- `query` string
- `instance_id` string
- `start_gte` string
- `end_lt` string
- `fields` string[]
- `raw` string

## Response `200`

Successful

- ComputeUsage[]
  - `id` string: Unique identifier for the usage record
  - `created_at` string, date-time: When the usage record was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `updated_at` string, date-time: When the usage record was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `start_at` string, date-time: Start of the usage period (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `end_at` string, date-time: End of the usage period (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `instance_id` string: The instance the usage belongs to, when per-instance
  - `category` 'GPU' | 'CPU' | 'MEMORY' | 'STORAGE' | 'NETWORK' | 'OTHER': What was consumed
  - `quantity` number: Amount consumed, in unit
  - `unit` 'GPU_HOUR' | 'VCPU_SECOND' | 'GB_SECOND' | 'GB_MONTH' | 'BYTE' | 'SECOND' | 'OTHER': Unit of quantity
  - `cost_amount` number: Cost of the usage, when the vendor reports it
  - `currency` string: Currency of cost_amount (ISO 4217)
  - `metadata` ComputeMetadata[]
    - `id` string: The label, tag or metadata identifier
    - `slug` string: The label, tag or metadata key
    - `value` union: The label, tag or metadata value
      - object
      - string
      - number
      - boolean
      - union[]
        - union
          - object
          - string
          - number
          - boolean
    - `namespace` string: The origin of the value (eg. labels, tags, metadata)
    - `format` 'TEXT' | 'NUMBER' | 'DATE' | 'BOOLEAN' | 'ARRAY' | 'OBJECT': The data type of the value
    - `extra_data` union: Additional data about the value
      - object
      - string
      - number
      - boolean
      - union[]
        - union
          - object
          - string
          - number
          - boolean
  - `raw` object: Raw data from integration

## Changes

- **2026-10-19** `39502239a975`: 2 info
  - added the enum value `metadata` to the property `items/` of the `query` request parameter `fields`
  - added the optional property `items/metadata` to the response with the `200` status
- **2026-10-12** `32f1e856a6c9`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/unified/apis/unified-to-api/changes/compute/:connection_id/usage/get.md)

---

[API](https://skmtc.dev/unified/apis/unified-to-api.md) · [All operations](https://skmtc.dev/unified/apis/unified-to-api/llms.txt) · [OpenAPI document](https://skmtc.dev/unified/apis/unified-to-api/revisions/88a1fc7820d6?raw)
