Skip to main content
GET
/
api
/
v2
/
tenants
/
{tenant}
/
databases
/
{database}
/
collections_count
Retrieves the total number of collections in a given database.
curl --request GET \
  --url https://api.trychroma.com/api/v2/tenants/{tenant}/databases/{database}/collections_count \
  --header 'x-chroma-token: <api-key>'
1

Authorizations

x-chroma-token
string
header
required

Path Parameters

tenant
string
required

Tenant ID

database
string
required

Database name to count collections from

Response

Count of collections

The response is of type integer<int32>.

Required range: x >= 0