Skip to main content
GET
/
api
/
v2
/
tenants
/
{tenant}
/
databases
/
{database}
/
collections
/
{collection_id}
/
count
cURL
curl --request GET \
  --url https://api.trychroma.com/api/v2/tenants/{tenant}/databases/{database}/collections/{collection_id}/count \
  --header 'x-chroma-token: <api-key>'
1

Authorizations

x-chroma-token
string
header
required

Path Parameters

tenant
string
required

Tenant UUID

database
string
required

Database name

collection_id
string
required

Collection UUID

Response

Number of records in the collection

The response is of type integer<int32>.

Required range: x >= 0