List Collections
GET
/v1/collections
const url = 'https://api.cloud.agentums.ru/v1/collections?include_hidden=false';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.cloud.agentums.ru/v1/collections?include_hidden=false' \ --header 'Authorization: Bearer <token>'Плоский список папок владельца со счётчиками файлов (дерево клиент строит по
parent_id/theme_id). Счётчики — одним GROUP BY (без N+1). Скрытые папки
по умолчанию исключены (29-13); include_hidden=true отдаёт и их.
Authorizations
Заголовок раздела «Authorizations»Parameters
Заголовок раздела «Parameters»Query Parameters
Заголовок раздела «Query Parameters»include_hidden
Include Hidden
boolean
Header Parameters
Заголовок раздела «Header Parameters»Responses
Заголовок раздела «Responses»Successful Response
Media typeapplication/json
CollectionList
object
items
Items
Array<object>
CollectionOutobject
created_at
required
Created At
string format: date-time
has_note
Has Note
boolean
icon
Icon
string
id
required
Id
string format: uuid
is_hidden
Is Hidden
boolean
name
required
Name
string
object_count
Object Count
integer
total
Total
integer
Example
{ "items": [ { "has_note": false, "icon": "", "is_hidden": false, "object_count": 0 } ], "total": 0}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}