POST
/
collections
curl --request POST \
  --url https://api.cloudglue.dev/v1/collections \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "description": "<string>",
  "extract_config": {
    "prompt": "<string>",
    "schema": {}
  }
}'
{
  "id": "<string>",
  "object": "collection",
  "name": "<string>",
  "description": "<string>",
  "extract_config": {
    "prompt": "<string>",
    "schema": {}
  },
  "created_at": 123,
  "file_count": 123
}

Authorizations

Authorization
string
header
required

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

Body

application/json
Collection creation parameters
name
string
required

Name of the collection (must be unique within an organization)

description
string | null

Description of the collection's purpose or contents, null if none provided

extract_config
object

Configuration for automatic entity extraction from videos

Response

200
application/json
Successful collection creation
id
string
required

Unique identifier for the collection

object
enum<string>
required

Object type, always 'collection'

Available options:
collection
name
string
required

Name of the collection

created_at
integer
required

Unix timestamp of when the collection was created

file_count
integer
required

Number of files in the collection

description
string | null

Description of the collection's purpose or contents, null if none provided

extract_config
object

Configuration for automatic entity extraction from videos