v10

latestOpenAPI 3.1.02026-08-0375143791.1 KB
webdbs

WebDBs credit usage

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

get/webdbs/usage

Query parameters

fromstring date-time

Start of the usage period.

Start of the usage period.

tostring date-time

End of the usage period.

End of the usage period.

tagsstring[]

Optional tags for tracking usage. Up to 20 tags, each 1 to 50 characters.

Optional comma-separated caller-defined tags for tracking this request. Tags are recorded on the request's usage log and can be used to filter usage on the dashboard usage page. Up to 20 tags, each 1-50 characters.

[
  "production",
  "team-alpha"
]

Response

Usage summary

rows_totalinteger required

Current rows across all collections.

storage_gbnumber required

Snapshot storage used in gigabytes.

Example response

{
  "breakdown_by_collection": [
    {
      "collection_id": "col_123"
    }
  ]
}