Skip to main content
Opik Documentation

Search documentation

Type to search this documentation.

Get workspace token usage names

POST/v1/private/workspaces/token-usage/namesGet workspace 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

application/json
objectWorkspaceTokenUsageNamesRequest
project_idsarray of string · uuid

uniqueItems true

Show child attributes

uniqueItems true

Example request
{
  "project_ids": [
    "00000000-0000-0000-0000-000000000000"
  ]
}

Responses

200Token Usage names resourceapplication/json
objectTokenUsageNames
namesarray of string
Show child attributes
Example response
{
  "names": [
    "string"
  ]
}
400Bad Requestapplication/json
objectErrorMessage
codeinteger · int32
detailsstring
messagestring
Example response
{
  "code": 0,
  "details": "string",
  "message": "string"
}
Documentation menu