Перейти к содержимому

List Collections

GET
/v1/collections
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 отдаёт и их.

include_hidden
Include Hidden
boolean
x-hidden-token
Any of:
string

Successful Response

Media typeapplication/json
CollectionList
object
items
Items
Array<object>
CollectionOut
object
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
name_mode
Any of:
string
object_count
Object Count
integer
0
parent_id
Any of:
string format: uuid
theme_id
Any of:
string format: uuid
total
Total
integer
0
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>
ValidationError
object
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"
}
]
}