# Get API usage

> GET /v1/usage — Current billing-period API usage: requests used/remaining against the plan's monthly quota, the reset instant, and the per-key burst limit. Polling…

Page: https://getbioflow.com/docs/api-reference/getUsage

{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}



## GET /v1/usage

Current billing-period API usage: requests used/remaining against the plan's monthly quota, the reset instant, and the per-key burst limit. Polling this endpoint never consumes quota.

Requires scope: pages:read or pages:write or analytics:read or contacts:read or files:read or publish. Plan entitlement: public_api (Creator and Pro).

```json
{
  "servers": [
    {
      "url": "https://app.getbioflow.com"
    }
  ],
  "paths": {
    "/v1/usage": {
      "get": {
        "operationId": "getUsage",
        "summary": "Get API usage",
        "description": "Current billing-period API usage: requests used/remaining against the plan's monthly quota, the reset instant, and the per-key burst limit. Polling this endpoint never consumes quota.\n\nRequires scope: pages:read or pages:write or analytics:read or contacts:read or files:read or publish. Plan entitlement: public_api (Creator and Pro).",
        "security": [
          {
            "apiKeyBearer": []
          },
          {
            "apiKeyHeader": []
          }
        ],
        "x-scopes": [
          "pages:read",
          "pages:write",
          "analytics:read",
          "contacts:read",
          "files:read",
          "publish"
        ],
        "x-entitlement": "public_api",
        "x-meter-cost": 0,
        "x-idempotent": false,
        "responses": {
          "200": {
            "description": "Current usage",
            "headers": {
              "X-Request-Id": {
                "description": "Unique request identifier — quote it in support requests.",
                "schema": {
                  "type": "string",
                  "example": "req_01abc"
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 rate-limit policy (structured field).",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 rate-limit state (structured field).",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Usage"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed (invalid_request)",
            "headers": {
              "X-Request-Id": {
                "description": "Unique request identifier — quote it in support requests.",
                "schema": {
                  "type": "string",
                  "example": "req_01abc"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key (invalid_api_key)",
            "headers": {
              "X-Request-Id": {
                "description": "Unique request identifier — quote it in support requests.",
                "schema": {
                  "type": "string",
                  "example": "req_01abc"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "Denied: insufficient_scope, feature_not_enabled, or test_key_read_only",
            "headers": {
              "X-Request-Id": {
                "description": "Unique request identifier — quote it in support requests.",
                "schema": {
                  "type": "string",
                  "example": "req_01abc"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited: rate_limited (per-key burst) or quota_exhausted (monthly)",
            "headers": {
              "X-Request-Id": {
                "description": "Unique request identifier — quote it in support requests.",
                "schema": {
                  "type": "string",
                  "example": "req_01abc"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected failure (internal_error)",
            "headers": {
              "X-Request-Id": {
                "description": "Unique request identifier — quote it in support requests.",
                "schema": {
                  "type": "string",
                  "example": "req_01abc"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Usage": {
        "type": "object",
        "properties": {
          "plan": {
            "type": "string",
            "description": "Workspace plan id, e.g. CREATOR"
          },
          "period_start": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "example": "2026-07-20T12:00:00.000Z"
          },
          "period_end": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "example": "2026-07-20T12:00:00.000Z",
            "description": "When the meter resets"
          },
          "meters": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "example": "api_requests"
                },
                "used": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "limit": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "remaining": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "name",
                "used",
                "limit",
                "remaining"
              ],
              "additionalProperties": false
            }
          },
          "burst": {
            "type": "object",
            "properties": {
              "per_minute": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991,
                "description": "Per-key burst limit for this plan"
              }
            },
            "required": [
              "per_minute"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "plan",
          "period_start",
          "period_end",
          "meters",
          "burst"
        ],
        "additionalProperties": false
      },
      "Problem": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "Docs URL, https://getbioflow.com/docs/api/errors/<code>"
          },
          "title": {
            "type": "string",
            "description": "Human summary — never parse"
          },
          "status": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "HTTP status, mirrored in the body"
          },
          "detail": {
            "description": "Human detail — never parse",
            "type": "string"
          },
          "instance": {
            "type": "string",
            "example": "urn:request:req_01abc"
          },
          "code": {
            "type": "string",
            "enum": [
              "invalid_request",
              "invalid_api_key",
              "insufficient_scope",
              "feature_not_enabled",
              "test_key_read_only",
              "resource_not_found",
              "stale_snapshot",
              "endorsements_unconfirmed",
              "idempotency_in_progress",
              "idempotency_key_reused",
              "endpoint_verification_failed",
              "endpoint_limit_reached",
              "rate_limited",
              "quota_exhausted",
              "internal_error",
              "query_timeout"
            ],
            "description": "The stable machine-readable code — branch on this"
          },
          "request_id": {
            "type": "string",
            "example": "req_01abc"
          },
          "errors": {
            "description": "Field-level validation errors (400 only)",
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "pointer": {
                  "type": "string",
                  "example": "/title"
                },
                "code": {
                  "type": "string"
                },
                "message": {
                  "type": "string"
                }
              },
              "required": [
                "pointer",
                "code",
                "message"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "type",
          "title",
          "status",
          "instance",
          "code",
          "request_id"
        ],
        "additionalProperties": false,
        "description": "RFC 9457 problem details"
      }
    }
  }
}
```
