---
title: "Get workspace token usage names"
method: POST
path: "/v1/private/workspaces/token-usage/names"
tags: ["Workspaces"]
---

# Get workspace token usage names

`POST /v1/private/workspaces/token-usage/names`

Gets the distinct span token usage key names aggregated across the workspace. When project_ids is empty, all projects in the workspace are included; otherwise only the given projects.

## Request body

- WorkspaceTokenUsageNamesRequest
  - `project_ids` string[]

## Response `200`

Token Usage names resource

- TokenUsageNames
  - `names` string[]

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/comet-ml/apis/opik-rest-api.md) · [All operations](https://skmtc.net/comet-ml/apis/opik-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/comet-ml/opik-rest-api/versions/4ed2fbc97cc3/schema)
