---
title: "What this key may still do today"
method: GET
path: "/v1/quota"
tags: ["account"]
---

# What this key may still do today

`GET /v1/quota`

## Request

- Base URL: `https://api.briq.cloud`
- URL: `https://api.briq.cloud/v1/quota`
- Auth: HTTP bearer

## Response `200`

ok

- object
  - `plan` 'hobby' | 'pro' | 'team', required
  - `policy` object, required
    - `maxConcurrentBriqs` integer
    - `dailySpendCapCents` integer
    - `allowedSizes` string[]
    - `allowedRegistries` string[]
    - `maxSleep` string: The longest sleep this credential may give a briq, "never" included ("never": no bound of its own; the environment and the plan still apply)
    - `expiresAt` string, date-time, nullable
  - `spentTodayCents` number, required
  - `remainingTodayCents` number, required
  - `creditBalanceCents` number, required
  - `liveBriqs` number, required: Briqs creating or running that this credential started: what `maxConcurrentBriqs` counts
  - `teamLiveBriqs` number, required: Briqs creating or running in the whole team, whoever started them: what the briq list shows
  - `remainingConcurrency` number, required
  - `longestSleep` string, required: The longest sleep this credential may give a briq, every limit taken (environment, key, plan): "7d", or "never" when always on is allowed
  - `diskGb` number, required: Volume GB the team holds: every briq not destroyed, stopped and failed ones included
  - `maxDiskGb` number, required: The most volume GB the team's plan allows
  - `team` object, required
    - `id` string, required
    - `slug` string, required
    - `name` string, required
  - `key` object, nullable, required: The key or connected client (`oauth`) this call presents; null from a dashboard session
    - `id` string, required
    - `kind` 'key' | 'oauth', required
    - `name` string, required

## Other responses

- `400`: validation
- `401`: unauthorized
- `402`: policy_violation or quota_exceeded (the key's policy), or payment_required (no credits: retrying cannot help)
- `403`: forbidden, or plan_limit (the team's plan does not allow it)
- `404`: not found
- `409`: invalid_state: not possible in the briq's current state; the message says why
- `413`: validation: the body, the command or its output is too large
- `429`: rate limited: retry after the `retry-after` header
- `502`: provider_error: the infrastructure refused the change
- `503`: provider_error: the infrastructure did not answer; retry in a moment

---

[API](https://skmtc.dev/briq/apis/briq-api.md) · [All operations](https://skmtc.dev/briq/apis/briq-api/llms.txt) · [OpenAPI document](https://skmtc.dev/briq/apis/briq-api/revisions/609b424459cb?raw)
