---
title: "Invocation usage for a period"
method: GET
path: "/api/v1/computers/usage"
tags: ["computers"]
---

# Invocation usage for a period

`GET /api/v1/computers/usage`

## Request

- Base URL: `https://api.maritime.sh` (the document declares no server; this is the origin it was published from)
- URL: `https://api.maritime.sh/api/v1/computers/usage`
- Auth: HTTP bearer

## Query parameters

- `from` string, date-time, nullable
- `to` string, date-time, nullable
- `externalUserId` string, nullable

## Response `200`

Successful Response

- UsageOut
  - `from` string, date-time, required
  - `to` string, date-time, required
  - `invocations` integer
  - `wallSeconds` integer
  - `actions` integer
  - `screenshots` integer
  - `computers` ComputerUsageOut[]
    - `computerId` string, required
    - `externalUserId` string, nullable
    - `invocations` integer
    - `wallSeconds` integer
    - `actions` integer
    - `screenshots` integer

## Other responses

- `402`: Plan or quota refusal
- `409`: A person is in control of the computer
- `422`: Validation Error
- `503`: Computers disabled or no capacity

---

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