---
title: "Get one instance's usage"
method: GET
path: "/v1/usage/instances/{id}"
tags: ["public", "usage"]
---

# Get one instance's usage

`GET /v1/usage/instances/{id}`

## Request

- Base URL: `https://api.vozora.io`
- URL: `https://api.vozora.io/v1/usage/instances/{id}`
- Auth: API key in header `Authorization`

Running time and estimated cost for a single server, over the same billing period GET /v1/usage reports, with its session history. The path parameter is the instance id and appears in the body as service_id — they are the same identifier. FOUR cases all answer 404 and are deliberately indistinguishable: an id that is not a uuid, an instance belonging to another account, an instance of yours that has never run, and an offset past the end of an instance's history. Treat a 404 here as "no usage on this page", not as "no such server" — ask GET /v1/instances/{id} if you need to know whether it exists, and do not use a 404 as the stop condition when walking history.

## Path parameters

- `id` string, required

## Query parameters

- `limit` integer
- `offset` integer

## Response `200`

OK

- MeteringPublicInstanceUsage
  - `components` MeteringPublicComponentUsage[]
    - `component` string
    - `estimated_cost_minor` integer
    - `minutes` integer
    - `product_id` string
    - `rate_minor_per_minute` integer
    - `seconds` integer: Seconds is the seconds THIS component accrued; a disk's is the time the disk existed, which is longer than the server ran. Components' seconds are not addable.
    - `unit` string
  - `currency` string
  - `current_session` MeteringPublicSessionRecord
    - `component` string
    - `ended_at` string
    - `id` string
    - `resource` MeteringPublicUsageResource
      - `id` string
      - `kind` string
    - `seconds` integer
    - `started_at` string
    - `state` 'open' | 'closed' | 'under_review': State: a session awaiting staff review of its true end (billing frozen) is under_review.
  - `history` MeteringPublicSessionRecord[]
    - `component` string
    - `ended_at` string
    - `id` string
    - `resource` MeteringPublicUsageResource
      - `id` string
      - `kind` string
    - `seconds` integer
    - `started_at` string
    - `state` 'open' | 'closed' | 'under_review': State: a session awaiting staff review of its true end (billing frozen) is under_review.
  - `period_end` string
  - `period_estimated_cost_minor` integer
  - `period_seconds` integer: PeriodSeconds is the seconds the SERVER RAN — compute's seconds, never the sum across components (BAN-1615). Per-component figures are in "components".
  - `period_start` string
  - `resource` MeteringPublicUsageResource
    - `id` string
    - `kind` string
  - `service_id` string

## Other responses

- `401`: invalid or missing API key
- `403`: the key lacks usage:read
- `404`: no usage for this instance, or no such instance
- `500`: Internal Server Error
- `503`: usage_rate_unknown: a tier in use has no rate for the period

---

[API](https://skmtc.dev/vozora/apis/vozora-api.md) · [All operations](https://skmtc.dev/vozora/apis/vozora-api/llms.txt) · [OpenAPI document](https://skmtc.dev/vozora/apis/vozora-api/revisions/56f15734fc5a?raw)
