v1

latestOpenAPI 3.0.1MIT2026-07-134925112.4 KB

Retrieve Database Usage

Fetch activity usage for a database in a given time period.

get/v1/organizations/{organizationSlug}/databases/{databaseName}/usage

Path parameters

organizationSlugstring required

The slug of the organization or user account.

databaseNamestring required

The name of the database.

Query parameters

fromstring date-time

The datetime to retrieve usage from in ISO 8601 format. Defaults to the current calendar month if not provided. Example: 2023-01-01T00:00:00Z

tostring date-time

The datetime to retrieve usage to in ISO 8601 format. Defaults to the current calendar month if not provided. Example: 2023-02-01T00:00:00Z

Response

Successful response