Tenancy
Show a workspace's spend for a month, split into operator-funded and organization-funded
GET /v1/workspaces/{id}/spend · SDK getWorkspaceSpend · CLI deployments workspace spend
GET
Requires spend:read.
platformBearerheader
AuthorizationBearer <token>Platform bearer credential accepted as an opaque API key or JWT.
id*stringMatch
^[0-7][0-9A-HJKMNP-TV-Z]{25}$month?stringUTC calendar month as YYYY-MM, no later than the current month. Default: the current month.
Match
^\d{4}-(?:0[1-9]|1[0-2])$x-deployments-environment*stringMatch
^[0-7][0-9A-HJKMNP-TV-Z]{25}$WorkspaceSpendResponse
application/json- response
asOf*stringMatch
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$Format
date-timemonth*stringThe UTC calendar month, as YYYY-MM.
Match
^\d{4}-(?:0[1-9]|1[0-2])$operatorFundedUsdMicros*integerSpend the installation paid for: model calls on its own provider keys and every other metered cost.
Range
0 <= valueorganizationFundedUsdMicros*integerModel calls on the organization's own provider keys, at the catalog price.
Range
0 <= valueperiodStart*stringMatch
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$Format
date-timetotalUsdMicros*integeroperatorFundedUsdMicros plus organizationFundedUsdMicros.
Range
0 <= valueenvironmentId*stringMatch
^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$workspaceId*stringMatch
^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$curl -X GET "https://example.com/v1/workspaces/string/spend" \ -H "x-deployments-environment: string"{ "asOf": "2019-08-24T14:15:22Z", "month": "string", "operatorFundedUsdMicros": 0, "organizationFundedUsdMicros": 0, "periodStart": "2019-08-24T14:15:22Z", "totalUsdMicros": 0, "environmentId": "string", "workspaceId": "string"}