Retrieve Database Usage
Fetch activity usage for a database in a given time period.
get/v1/organizations/{organizationSlug}/databases/{databaseName}/usage
Request
- Base URLhttps://api.turso.tech
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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
Changes
No recorded changes to this operation across all 3 revisions of this API.