Get collection stats
GET/api/v1/collections/:collection-id/stats
Get collection statistics for a given collection.
Request
Path Parameters
collection-id stringrequired
Collection ID
Responses
- 200
- 401
- 403
- 404
Successful response
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
result
object
required
users numberrequired
Number of users in the collection
chunks_count numberrequired
Number of chunks in the collection
characters numberrequired
data_stats
object[]
required
Aggregated statistics for the files in the collection, grouped by status.
status stringrequired
Possible values: [pending
, indexed
, error
]
Status of the files
files numberrequired
Number of files in this status
bytes numbernullable
Storage size, in bytes, of the files in this status.
{
"result": {
"users": 0,
"chunks_count": 0,
"characters": 0,
"data_stats": [
{
"status": "pending",
"files": 0,
"bytes": 0
}
]
}
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
error
object
required
message stringrequired
Human readable error message
data nullable
Further details on the error
{
"error": {
"message": "string"
}
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
error
object
required
message stringrequired
Human readable error message
data nullable
Further details on the error
{
"error": {
"message": "string"
}
}
Not found
- application/json
- Schema
- Example (from schema)
Schema
error
object
required
message stringrequired
Human readable error message
data nullable
Further details on the error
{
"error": {
"message": "string"
}
}
Loading...