Collections
Fetches all users' collection metadata sorted by last update time by default.
Fetches all users' collection metadata sorted by last update time by default. This is for admin use only and includes private, public, and shared collections in the result.
get/collections/all
Request
- Base URLhttps://h2ogpte.genai.h2o.ai/api/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
offsetinteger
How many collections to skip before returning.
limitinteger
How many collections to return.
sort_column'name' | 'document_count' | 'document_size' | 'updated_at' | 'sessions_count' | 'username' | 'expiry_date' | 'status' | 'inactivity_interval' | 'archived_at'
Sort column.
ascendingboolean
When true, returns sorted by sort_column in ascending order.
filterstring
Filter collections by name, ID, or username.
Response
Successful operation
Example response
[
{
"id": "123e4567-e89b-12d3-a456-426655440000",
"name": "My sci-fi library",
"description": "Collection of my favourite sci-fi books",
"embedding_model": "BAAI/bge-large-en-v1.5",
"prompt_template_id": "4e400991-c459-455f-995c-dc6f55ffdb90"
}
]Changes
No recorded changes to this operation across all 1 revision of this API.