---
title: "GET /editor-agent/usage"
method: GET
path: "/editor-agent/usage"
tags: ["Editor Agent"]
---

# GET /editor-agent/usage

`GET /editor-agent/usage`

## Request

- Base URL: `https://app.openpo.st/api/v1`
- URL: `https://app.openpo.st/api/v1/editor-agent/usage`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `openpost_session`

## Query parameters

- `workspace_id` string, required

## Response `200`

OK

- EditorUsageOutputBody
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `calls` EditorCall[], nullable, required
    - `cost_microusd` integer, nullable, required
    - `created_at` string, date-time, required
    - `finished_at` string, date-time, nullable, required
    - `id` string, required
    - `input_tokens` integer, nullable, required
    - `model` string, required
    - `operation` string, required
    - `organization_id` string, required
    - `output_tokens` integer, nullable, required
    - `project_id` string, required
    - `provider` string, required
    - `provider_request_id` string, required
    - `requested_model` string, required
    - `run_id` string, required
    - `state` string, required
    - `step` integer, required
    - `total_tokens` integer, nullable, required
    - `user_id` string, required
    - `workspace_id` string, required

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `422`: Unprocessable Entity
- `500`: Internal Server Error

---

[API](https://skmtc.dev/openpo/apis/openpost-api.md) · [All operations](https://skmtc.dev/openpo/apis/openpost-api/llms.txt) · [OpenAPI document](https://skmtc.dev/openpo/apis/openpost-api/revisions/67d3964458a7?raw)
