Skip to navigation

Get Collection Statistics

Retrieve statistics about a collection’s contents and usage.

Provides insights into:

  • Document distribution by source type
  • Number of associated chats

Useful for understanding collection composition and usage patterns.

Authentication

AuthorizationBearer

API key or access token, sent as Authorization: Bearer <token>. The simplest option: create an API key in your dashboard under Settings, then paste it here.

OR
AuthorizationBearer

API key or access token, sent as Authorization: Bearer <token>. The simplest option: create an API key in your dashboard under Settings, then paste it here.

Path parameters

collection_idstringRequired
org_idstringRequiredformat: "uuid"
The unique identifier of the organization.
project_idstringRequiredformat: "uuid"
The unique identifier of the project.

Response

Collection statistics
documents_by_sourcelist of objects
number_of_chatsinteger

Errors

400
Bad Request Error
403
Forbidden Error
422
Unprocessable Entity Error