GET
/
collections
curl --request GET \
  --url https://api.cloudglue.dev/v1/collections \
  --header 'Authorization: Bearer <token>'
{
  "object": "list",
  "data": [
    {
      "id": "<string>",
      "object": "collection",
      "name": "<string>",
      "description": "<string>",
      "extract_config": {
        "prompt": "<string>",
        "schema": {}
      },
      "created_at": 123,
      "file_count": 123
    }
  ],
  "total": 123,
  "limit": 123,
  "offset": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

limit
integer
default:50

Maximum number of collections to return

Required range: x <= 100
offset
integer
default:0

Number of collections to skip

order
enum<string>
default:created_at

Order the collections by a specific field

Available options:
name,
created_at
sort
enum<string>
default:desc

Sort the collections in ascending or descending order

Available options:
asc,
desc

Response

200
application/json
A list of collections
object
enum<string>
required

Object type, always 'list'

Available options:
list
data
object[]
required

Array of collection objects

total
integer
required

Total number of collections matching the query

limit
integer
required

Number of items returned in this response

offset
integer
required

Offset from the start of the list