---
title: "WebDBs credit usage"
method: GET
path: "/webdbs/usage"
tags: ["webdbs"]
---

# WebDBs credit usage

`GET /webdbs/usage`

Returns WebDB credit, row, sync, and storage usage.

## Query parameters

- `from` string, date-time — Start of the usage period.
- `to` string, date-time — End of the usage period.
- `tags` string[] — Optional tags for tracking usage. Up to 20 tags, each 1 to 50 characters.

## Response `200`

Usage summary

- WebdbsUsageResponse — Credit, row, sync, and storage usage for WebDBs.
  - `credits` object, required — Credit balance and period usage.
    - `balance` number, required — Current organization credit balance.
    - `consumed_period` number, required — WebDB credits used in the requested period.
  - `breakdown_by_collection` object[], required — Usage grouped by collection.
    - `collection_id` string, required — Collection ID.
    - `name` string, required — Collection name.
    - `credits` number, required — Credits used by this collection in the requested period.
    - `rows` integer, required — Current rows in this collection.
    - `syncs` integer, required — Syncs in the requested period.
  - `rows_total` integer, required — Current rows across all collections.
  - `storage_gb` number, required — Snapshot storage used in gigabytes.
  - `key_metadata` object — API key usage for this request.
    - `credits_consumed` integer, required — The number of credits consumed by this request.
    - `credits_remaining` integer, required — The number of credits remaining for your organization after this request.

## Other responses

- `401` — Unauthorized

## Changes

> 26 revisions in range; 19 could not be searched.

- **2026-07-31** `f5c503b03f98` — 4 warning
  - added the new `BATCH_LIMIT_EXCEEDED` enum value to the `error_code` response property for the response status `401`
  - added the new `BATCH_NOT_CANCELLABLE` enum value to the `error_code` response property for the response status `401`
  - added the new `BATCH_NOT_COMPLETED` enum value to the `error_code` response property for the response status `401`
  - added the new `IDEMPOTENCY_KEY_CONFLICT` enum value to the `error_code` response property for the response status `401`
- **2026-07-26** `35f1d8d4ea26` — 2 warning
  - added the new `MONITOR_NO_WEBHOOK` enum value to the `error_code` response property for the response status `401`
  - added the new `PAID_PLAN_REQUIRED` enum value to the `error_code` response property for the response status `401`
- **2026-07-21** `3764d9c86493` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/context/apis/context-dev/changes/webdbs/usage/get.md)

---

[API](https://skmtc.dev/context/apis/context-dev.md) · [All operations](https://skmtc.dev/context/apis/context-dev/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/context/context-dev/revisions/1febe5476266/schema)
