Ownkube Usage API
The Usage API from Ownkube — 4 operation(s) for usage.
The Usage API from Ownkube — 4 operation(s) for usage.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/ownkube-io:ownkube-io-usage-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Ownkube CLI Usage API
version: 1.15.0
description: API for the Ownkube CLI tool. Authenticate via browser-based flow, then use x-api-key header for subsequent requests.
servers:
- url: /api/cli
security:
- apiKey: []
tags:
- name: Usage
paths:
/v1/usage/current:
get:
tags:
- Usage
summary: Get the live burn rate
description: Current metered vCPU + memory in use and the resulting hourly cost across everything the org runs.
security:
- apiKey: []
responses:
'200':
description: Live usage
content:
application/json:
schema:
$ref: '#/components/schemas/CurrentUsageResponse'
'400':
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Invalid or missing API key
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'409':
description: Conflict
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'412':
description: Precondition failed
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limited; retry after the Retry-After header's seconds
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: getV1UsageCurrent
x-operation-id-source: derived
/v1/usage/month-to-date:
get:
tags:
- Usage
summary: Get month-to-date usage and cost
description: Usage totals (vCPU-hours, memory-GiB-hours, egress) and the gross cost drawn from the wallet so far this calendar month.
security:
- apiKey: []
responses:
'200':
description: Month-to-date usage
content:
application/json:
schema:
$ref: '#/components/schemas/MonthToDateUsageResponse'
'400':
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Invalid or missing API key
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'409':
description: Conflict
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'412':
description: Precondition failed
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limited; retry after the Retry-After header's seconds
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: getV1UsageMonthToDate
x-operation-id-source: derived
/v1/usage/projected:
get:
tags:
- Usage
summary: Get the projected month cost
description: Naive straight-line projection of the month's wallet draw (month-to-date cost scaled to the full month). Volatile early in the month.
security:
- apiKey: []
responses:
'200':
description: Projected month cost
content:
application/json:
schema:
$ref: '#/components/schemas/ProjectedMonthCostResponse'
'400':
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Invalid or missing API key
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'409':
description: Conflict
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'412':
description: Precondition failed
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limited; retry after the Retry-After header's seconds
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: getV1UsageProjected
x-operation-id-source: derived
/v1/usage/history:
get:
tags:
- Usage
summary: Get the daily usage series
description: Per-day usage and cost for the current calendar month, zero-filled for a continuous series.
security:
- apiKey: []
responses:
'200':
description: Daily usage series
content:
application/json:
schema:
$ref: '#/components/schemas/UsageHistoryResponse'
'400':
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Invalid or missing API key
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'409':
description: Conflict
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'412':
description: Precondition failed
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limited; retry after the Retry-After header's seconds
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: getV1UsageHistory
x-operation-id-source: derived
components:
schemas:
ErrorResponse:
type: object
properties:
error:
type: string
description: Human-readable error message
code:
type: string
description: Machine-readable error code
required:
- error
- code
EgressRegionLine:
type: object
properties:
region:
type: string
description: Region id, e.g. `ap-south-1`.
label:
type: string
description: Human region name.
gb:
type: number
description: Outbound traffic from this region, in GB.
usd:
type: number
description: Cost of that traffic, in USD.
required:
- region
- label
- gb
- usd
UsageHistoryResponse:
type: object
properties:
points:
type: array
items:
$ref: '#/components/schemas/UsageHistoryPoint'
periodStart:
anyOf:
- type: string
- type: string
format: date-time
periodEnd:
anyOf:
- type: string
- type: string
format: date-time
isCurrentMonth:
type: boolean
description: True while the series covers the live month; false for a completed month.
required:
- points
- periodStart
- periodEnd
- isCurrentMonth
UsageHistoryPoint:
type: object
properties:
periodStart:
anyOf:
- type: string
- type: string
format: date-time
vcpuHours:
type: number
memoryGibHours:
type: number
egressGb:
type: number
egressUsd:
type: number
reservedUsd:
type: number
storageGbHours:
type: number
costUsd:
type: number
required:
- periodStart
- vcpuHours
- memoryGibHours
- egressGb
- egressUsd
- reservedUsd
- storageGbHours
- costUsd
CurrentUsageResponse:
type: object
properties:
vcpu:
type: number
description: Live metered vCPU in use.
memoryGiB:
type: number
description: Live metered memory (GiB).
hourlyCostUsd:
type: number
description: Current burn rate, in USD per hour, across everything.
activeClusters:
type: number
starterClusters:
type: number
description: Count of active flat-priced Starter clusters.
required:
- vcpu
- memoryGiB
- hourlyCostUsd
- activeClusters
- starterClusters
ProjectedMonthCostResponse:
type: object
properties:
projectedCostUsd:
type: number
description: Straight-line projected wallet draw for the month, in USD.
mtdCostUsd:
type: number
tier:
type: string
starterClusters:
type: number
periodStart:
anyOf:
- type: string
- type: string
format: date-time
periodEnd:
anyOf:
- type: string
- type: string
format: date-time
required:
- projectedCostUsd
- mtdCostUsd
- tier
- starterClusters
- periodStart
- periodEnd
additionalProperties:
nullable: true
MonthToDateUsageResponse:
type: object
properties:
vcpuHours:
type: number
memoryGibHours:
type: number
egressGb:
type: number
description: Outbound traffic this month, in GB.
egressCostUsd:
type: number
description: Outbound traffic cost this month, in USD.
egressByRegion:
type: array
items:
$ref: '#/components/schemas/EgressRegionLine'
description: Outbound traffic per region, billed per GB from the first GB at that region's rate. Costliest region first.
storageGbHours:
type: number
description: Database and workspace storage, in GB-hours.
costUsd:
type: number
description: Gross month-to-date cost drawn from the wallet, in USD.
tier:
type: string
starterClusters:
type: number
periodStart:
anyOf:
- type: string
- type: string
format: date-time
periodEnd:
anyOf:
- type: string
- type: string
format: date-time
required:
- vcpuHours
- memoryGibHours
- egressGb
- egressCostUsd
- egressByRegion
- storageGbHours
- costUsd
- tier
- starterClusters
- periodStart
- periodEnd
additionalProperties:
nullable: true
securitySchemes:
apiKey:
type: apiKey
in: header
name: x-api-key
description: API key issued by the browser-based CLI authorization flow.