Skip to main content
GET
/
quotas
/
{metric}
Get quota usage for a specific metric
curl --request GET \
  --url https://api.akua.dev/v1/quotas/{metric} \
  --header 'Authorization: Bearer <token>'
{
  "metric": "compute/machines",
  "type": "allocation",
  "display_name": "Compute machines",
  "unit": "count",
  "limit": 1,
  "usage": 0,
  "remaining": 1,
  "resets_at": 1
}

Documentation Index

Fetch the complete documentation index at: https://docs.akua.dev/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

workspace API token (sk_akua_...) or OAuth2 JWT. Create tokens at https://akua.dev/developers/api-tokens

Path Parameters

metric
string
required

Quota metric (URL-encoded service/resource).

Example:

"compute/machines"

Response

Quota info

metric
string
required

Metric: service/resource

Example:

"compute/machines"

type
enum<string>
required

Allocation = max owned, rate = max per time window, concurrency = max in-flight.

Available options:
allocation,
rate,
concurrency
Example:

"allocation"

display_name
string
required
Example:

"Compute machines"

unit
enum<string>
required

Unit the limit/usage numbers are measured in.

Available options:
count,
cores,
bytes,
seconds,
count/day,
count/minute,
cents/day
Example:

"count"

limit
number
required
Example:

1

usage
number
required
Example:

0

remaining
number
required
Example:

1

resets_at
integer

For rate quotas: Unix timestamp (seconds) reset time

Required range: x >= 0