Skip to main content
POST
/
workspaces
/
{uid}
/
usage
Get a workspace usage
curl --request POST \
  --url https://eu-gcp-api.vg-stuff.com/v3/workspaces/{uid}/usage \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "uiTimeRange": "<unknown>",
  "range": {
    "start": 123,
    "end": 123
  },
  "logsPage": 123
}
'
{}

Example Request

{
  "range": {
    "start": 1700000000000,
    "end": 1700086400000
  },
  "logsPage": 1
}
Timestamps should be in Unix milliseconds format. Use range to specify custom date ranges.
Monitor your workspace usage to track costs, message volumes, and API consumption over time.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

uid
string
required

The unique identifier of the workspace

Body

application/json
uiTimeRange
any

Predefined time range selector

range
object

Custom time range for usage data

logsPage
number

Page number for paginated usage logs

Response

Successful response

Usage statistics including message counts, token usage, and cost data

{key}
any