database

Get database statistics

Return collection, document, and storage-byte totals for one environment database.

Required permission: retrieval.manage.

get/v1/projects/{project_id}/database/{environment_id}/stats

Request

  • Base URL: https://api.connic.co
  • URL: https://api.connic.co/v1/projects/{project_id}/database/{environment_id}/stats
  • Auth: HTTP bearer

Path parameters

project_idstring uuid required

ID of the project the API key belongs to.

environment_idstring uuid required

Environment ID from GET /environments.

Response

Successful Response

total_collectionsinteger required

Number of collections in the environment.

total_documentsinteger required

Documents across all collections.

total_size_bytesinteger required

Storage used by all collections, including indexes, in bytes.

Changes

No recorded changes to this operation across all 2 revisions of this API.