Skip to content

API: Account

Show today's processing budget

What the account has spent today and what is left, in seconds of processing time, and when the budget resets. unlimited is true when no daily budget applies.

GET/api/v1/usage

Authentication#

Send your API key as Authorization: Bearer <key>. The X-API-Key header works too, and Authorization wins when both are present. Any valid key works: no ability is needed.

Responses#

200 OK#

Content type application/json. Schema: UsageView.

NameTypeRequiredDescription
budget_secondsinteger (int64)-Today's budget in seconds of processing time. 0 when unlimited
remaining_secondsinteger (int64)-What is left today, in seconds. 0 when unlimited or spent: read unlimited to tell them apart
resets_atstring (date-time)-When the next day's budget starts (midnight UTC)
spent_secondsinteger (int64)-Processing time spent today, in seconds
stored_bytesinteger (int64)-Bytes of yours that are stored and have not expired: uploads and results
stored_limit_bytesinteger (int64)-The most bytes an account may store at once. 0 when there is no cap
unlimitedboolean-True when no daily budget applies to this account

401 Unauthorized#

Content type application/problem+json. Error (RFC 9457 problem details). Schema: Problem.

The error follows RFC 9457. See Errors.

Any other status#

Content type application/problem+json. Error (RFC 9457 problem details). Schema: Problem.

The error follows RFC 9457. See Errors.

curl -X GET "http://localhost:3000/api/v1/usage" \
  -H "Authorization: Bearer $VUKEM_TOOLS_API_KEY"

Response examples

{
  "budget_seconds": 1800,
  "remaining_seconds": 1680,
  "resets_at": "2026-01-06T00:00:00Z",
  "spent_seconds": 120,
  "unlimited": false
}

The examples are built from the schemas, so every value is a placeholder of its type. The tables above hold the fields that carry the real values.