Create a new collection to organize and process video files
curl --request POST \
--url https://api.cloudglue.dev/v1/collections \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"describe_config": {
"enable_summary": true,
"enable_speech": true,
"enable_scene_text": true,
"enable_visual_scene_description": true,
"enable_audio_description": true,
"prompt": "<string>"
},
"extract_config": {
"prompt": "<string>",
"schema": {},
"enable_video_level_entities": true,
"enable_segment_level_entities": true,
"enable_transcript_mode": true,
"enable_metadata_mode": true
},
"transcribe_config": {
"enable_summary": true,
"enable_speech": true,
"enable_scene_text": true,
"enable_visual_scene_description": true,
"enable_audio_description": true
},
"face_detection_config": {
"thumbnails_config": {
"enable_frame_thumbnails": true
}
}
}
'import requests
url = "https://api.cloudglue.dev/v1/collections"
payload = {
"name": "<string>",
"description": "<string>",
"describe_config": {
"enable_summary": True,
"enable_speech": True,
"enable_scene_text": True,
"enable_visual_scene_description": True,
"enable_audio_description": True,
"prompt": "<string>"
},
"extract_config": {
"prompt": "<string>",
"schema": {},
"enable_video_level_entities": True,
"enable_segment_level_entities": True,
"enable_transcript_mode": True,
"enable_metadata_mode": True
},
"transcribe_config": {
"enable_summary": True,
"enable_speech": True,
"enable_scene_text": True,
"enable_visual_scene_description": True,
"enable_audio_description": True
},
"face_detection_config": { "thumbnails_config": { "enable_frame_thumbnails": True } }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
description: '<string>',
describe_config: {
enable_summary: true,
enable_speech: true,
enable_scene_text: true,
enable_visual_scene_description: true,
enable_audio_description: true,
prompt: '<string>'
},
extract_config: {
prompt: '<string>',
schema: {},
enable_video_level_entities: true,
enable_segment_level_entities: true,
enable_transcript_mode: true,
enable_metadata_mode: true
},
transcribe_config: {
enable_summary: true,
enable_speech: true,
enable_scene_text: true,
enable_visual_scene_description: true,
enable_audio_description: true
},
face_detection_config: {thumbnails_config: {enable_frame_thumbnails: true}}
})
};
fetch('https://api.cloudglue.dev/v1/collections', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cloudglue.dev/v1/collections",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'description' => '<string>',
'describe_config' => [
'enable_summary' => true,
'enable_speech' => true,
'enable_scene_text' => true,
'enable_visual_scene_description' => true,
'enable_audio_description' => true,
'prompt' => '<string>'
],
'extract_config' => [
'prompt' => '<string>',
'schema' => [
],
'enable_video_level_entities' => true,
'enable_segment_level_entities' => true,
'enable_transcript_mode' => true,
'enable_metadata_mode' => true
],
'transcribe_config' => [
'enable_summary' => true,
'enable_speech' => true,
'enable_scene_text' => true,
'enable_visual_scene_description' => true,
'enable_audio_description' => true
],
'face_detection_config' => [
'thumbnails_config' => [
'enable_frame_thumbnails' => true
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.cloudglue.dev/v1/collections"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"describe_config\": {\n \"enable_summary\": true,\n \"enable_speech\": true,\n \"enable_scene_text\": true,\n \"enable_visual_scene_description\": true,\n \"enable_audio_description\": true,\n \"prompt\": \"<string>\"\n },\n \"extract_config\": {\n \"prompt\": \"<string>\",\n \"schema\": {},\n \"enable_video_level_entities\": true,\n \"enable_segment_level_entities\": true,\n \"enable_transcript_mode\": true,\n \"enable_metadata_mode\": true\n },\n \"transcribe_config\": {\n \"enable_summary\": true,\n \"enable_speech\": true,\n \"enable_scene_text\": true,\n \"enable_visual_scene_description\": true,\n \"enable_audio_description\": true\n },\n \"face_detection_config\": {\n \"thumbnails_config\": {\n \"enable_frame_thumbnails\": true\n }\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.cloudglue.dev/v1/collections")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"describe_config\": {\n \"enable_summary\": true,\n \"enable_speech\": true,\n \"enable_scene_text\": true,\n \"enable_visual_scene_description\": true,\n \"enable_audio_description\": true,\n \"prompt\": \"<string>\"\n },\n \"extract_config\": {\n \"prompt\": \"<string>\",\n \"schema\": {},\n \"enable_video_level_entities\": true,\n \"enable_segment_level_entities\": true,\n \"enable_transcript_mode\": true,\n \"enable_metadata_mode\": true\n },\n \"transcribe_config\": {\n \"enable_summary\": true,\n \"enable_speech\": true,\n \"enable_scene_text\": true,\n \"enable_visual_scene_description\": true,\n \"enable_audio_description\": true\n },\n \"face_detection_config\": {\n \"thumbnails_config\": {\n \"enable_frame_thumbnails\": true\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cloudglue.dev/v1/collections")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"describe_config\": {\n \"enable_summary\": true,\n \"enable_speech\": true,\n \"enable_scene_text\": true,\n \"enable_visual_scene_description\": true,\n \"enable_audio_description\": true,\n \"prompt\": \"<string>\"\n },\n \"extract_config\": {\n \"prompt\": \"<string>\",\n \"schema\": {},\n \"enable_video_level_entities\": true,\n \"enable_segment_level_entities\": true,\n \"enable_transcript_mode\": true,\n \"enable_metadata_mode\": true\n },\n \"transcribe_config\": {\n \"enable_summary\": true,\n \"enable_speech\": true,\n \"enable_scene_text\": true,\n \"enable_visual_scene_description\": true,\n \"enable_audio_description\": true\n },\n \"face_detection_config\": {\n \"thumbnails_config\": {\n \"enable_frame_thumbnails\": true\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"object": "collection",
"name": "<string>",
"collection_type": "media-descriptions",
"created_at": 123,
"file_count": 123,
"description": "<string>",
"moments_config": {
"criteria": [
{
"attachment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"criterion_name": "<string>",
"criterion_hash": "<string>",
"backfill_status": "pending",
"criterion": {
"name": "<string>",
"instructions": "<string>",
"moment_schema": {},
"finding_schema": {},
"anchors": {},
"scoring": {
"key": "<string>",
"min": 123,
"max": 123,
"higher_is_better": true,
"description": "<string>"
}
},
"options": {
"signals_required": [
"<string>"
],
"boundary_policy": "sentence",
"speaker_filter": {},
"min_duration_seconds": 123,
"max_duration_seconds": 123
},
"files_total": 123,
"files_completed": 123,
"files_failed": 123,
"created_at": 123
}
]
},
"extract_config": {
"prompt": "<string>",
"schema": {},
"enable_video_level_entities": true,
"enable_segment_level_entities": true,
"enable_transcript_mode": true,
"enable_metadata_mode": true
},
"transcribe_config": {
"enable_summary": true,
"enable_speech": true,
"enable_scene_text": true,
"enable_visual_scene_description": true,
"enable_audio_description": true
},
"describe_config": {
"enable_summary": true,
"enable_speech": true,
"enable_scene_text": true,
"enable_visual_scene_description": true,
"enable_audio_description": true,
"prompt": "<string>"
},
"default_segmentation_config": {
"strategy": "uniform",
"uniform_config": {
"window_seconds": 60.5,
"hop_seconds": 60.5
},
"shot_detector_config": {
"detector": "adaptive",
"threshold": 123,
"min_seconds": 300.3,
"max_seconds": 300.5,
"fill_gaps": true
},
"manual_config": {
"segments": [
{
"start_time": 123,
"end_time": 123
}
]
},
"narrative_config": {
"prompt": "<string>",
"strategy": "comprehensive",
"number_of_chapters": 2,
"min_chapters": 2,
"max_chapters": 2
},
"keyframe_config": {
"frames_per_segment": 4,
"max_width": 2232
},
"start_time_seconds": 1,
"end_time_seconds": 1
},
"default_thumbnails_config": {
"enable_segment_thumbnails": true
},
"face_detection_config": {
"frame_extraction_config": {
"strategy": "uniform",
"uniform_config": {
"frames_per_second": 15.05,
"max_width": 2080
}
},
"thumbnails_config": {
"enable_frame_thumbnails": true
}
}
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Common Collection Operations
Create Collection
Create a new collection to organize and process video files. Collections are used to group files together and process them in a consistent way.
POST
/
collections
Create a new collection to organize and process video files
curl --request POST \
--url https://api.cloudglue.dev/v1/collections \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"describe_config": {
"enable_summary": true,
"enable_speech": true,
"enable_scene_text": true,
"enable_visual_scene_description": true,
"enable_audio_description": true,
"prompt": "<string>"
},
"extract_config": {
"prompt": "<string>",
"schema": {},
"enable_video_level_entities": true,
"enable_segment_level_entities": true,
"enable_transcript_mode": true,
"enable_metadata_mode": true
},
"transcribe_config": {
"enable_summary": true,
"enable_speech": true,
"enable_scene_text": true,
"enable_visual_scene_description": true,
"enable_audio_description": true
},
"face_detection_config": {
"thumbnails_config": {
"enable_frame_thumbnails": true
}
}
}
'import requests
url = "https://api.cloudglue.dev/v1/collections"
payload = {
"name": "<string>",
"description": "<string>",
"describe_config": {
"enable_summary": True,
"enable_speech": True,
"enable_scene_text": True,
"enable_visual_scene_description": True,
"enable_audio_description": True,
"prompt": "<string>"
},
"extract_config": {
"prompt": "<string>",
"schema": {},
"enable_video_level_entities": True,
"enable_segment_level_entities": True,
"enable_transcript_mode": True,
"enable_metadata_mode": True
},
"transcribe_config": {
"enable_summary": True,
"enable_speech": True,
"enable_scene_text": True,
"enable_visual_scene_description": True,
"enable_audio_description": True
},
"face_detection_config": { "thumbnails_config": { "enable_frame_thumbnails": True } }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
description: '<string>',
describe_config: {
enable_summary: true,
enable_speech: true,
enable_scene_text: true,
enable_visual_scene_description: true,
enable_audio_description: true,
prompt: '<string>'
},
extract_config: {
prompt: '<string>',
schema: {},
enable_video_level_entities: true,
enable_segment_level_entities: true,
enable_transcript_mode: true,
enable_metadata_mode: true
},
transcribe_config: {
enable_summary: true,
enable_speech: true,
enable_scene_text: true,
enable_visual_scene_description: true,
enable_audio_description: true
},
face_detection_config: {thumbnails_config: {enable_frame_thumbnails: true}}
})
};
fetch('https://api.cloudglue.dev/v1/collections', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cloudglue.dev/v1/collections",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'description' => '<string>',
'describe_config' => [
'enable_summary' => true,
'enable_speech' => true,
'enable_scene_text' => true,
'enable_visual_scene_description' => true,
'enable_audio_description' => true,
'prompt' => '<string>'
],
'extract_config' => [
'prompt' => '<string>',
'schema' => [
],
'enable_video_level_entities' => true,
'enable_segment_level_entities' => true,
'enable_transcript_mode' => true,
'enable_metadata_mode' => true
],
'transcribe_config' => [
'enable_summary' => true,
'enable_speech' => true,
'enable_scene_text' => true,
'enable_visual_scene_description' => true,
'enable_audio_description' => true
],
'face_detection_config' => [
'thumbnails_config' => [
'enable_frame_thumbnails' => true
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.cloudglue.dev/v1/collections"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"describe_config\": {\n \"enable_summary\": true,\n \"enable_speech\": true,\n \"enable_scene_text\": true,\n \"enable_visual_scene_description\": true,\n \"enable_audio_description\": true,\n \"prompt\": \"<string>\"\n },\n \"extract_config\": {\n \"prompt\": \"<string>\",\n \"schema\": {},\n \"enable_video_level_entities\": true,\n \"enable_segment_level_entities\": true,\n \"enable_transcript_mode\": true,\n \"enable_metadata_mode\": true\n },\n \"transcribe_config\": {\n \"enable_summary\": true,\n \"enable_speech\": true,\n \"enable_scene_text\": true,\n \"enable_visual_scene_description\": true,\n \"enable_audio_description\": true\n },\n \"face_detection_config\": {\n \"thumbnails_config\": {\n \"enable_frame_thumbnails\": true\n }\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.cloudglue.dev/v1/collections")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"describe_config\": {\n \"enable_summary\": true,\n \"enable_speech\": true,\n \"enable_scene_text\": true,\n \"enable_visual_scene_description\": true,\n \"enable_audio_description\": true,\n \"prompt\": \"<string>\"\n },\n \"extract_config\": {\n \"prompt\": \"<string>\",\n \"schema\": {},\n \"enable_video_level_entities\": true,\n \"enable_segment_level_entities\": true,\n \"enable_transcript_mode\": true,\n \"enable_metadata_mode\": true\n },\n \"transcribe_config\": {\n \"enable_summary\": true,\n \"enable_speech\": true,\n \"enable_scene_text\": true,\n \"enable_visual_scene_description\": true,\n \"enable_audio_description\": true\n },\n \"face_detection_config\": {\n \"thumbnails_config\": {\n \"enable_frame_thumbnails\": true\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cloudglue.dev/v1/collections")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"describe_config\": {\n \"enable_summary\": true,\n \"enable_speech\": true,\n \"enable_scene_text\": true,\n \"enable_visual_scene_description\": true,\n \"enable_audio_description\": true,\n \"prompt\": \"<string>\"\n },\n \"extract_config\": {\n \"prompt\": \"<string>\",\n \"schema\": {},\n \"enable_video_level_entities\": true,\n \"enable_segment_level_entities\": true,\n \"enable_transcript_mode\": true,\n \"enable_metadata_mode\": true\n },\n \"transcribe_config\": {\n \"enable_summary\": true,\n \"enable_speech\": true,\n \"enable_scene_text\": true,\n \"enable_visual_scene_description\": true,\n \"enable_audio_description\": true\n },\n \"face_detection_config\": {\n \"thumbnails_config\": {\n \"enable_frame_thumbnails\": true\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"object": "collection",
"name": "<string>",
"collection_type": "media-descriptions",
"created_at": 123,
"file_count": 123,
"description": "<string>",
"moments_config": {
"criteria": [
{
"attachment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"criterion_name": "<string>",
"criterion_hash": "<string>",
"backfill_status": "pending",
"criterion": {
"name": "<string>",
"instructions": "<string>",
"moment_schema": {},
"finding_schema": {},
"anchors": {},
"scoring": {
"key": "<string>",
"min": 123,
"max": 123,
"higher_is_better": true,
"description": "<string>"
}
},
"options": {
"signals_required": [
"<string>"
],
"boundary_policy": "sentence",
"speaker_filter": {},
"min_duration_seconds": 123,
"max_duration_seconds": 123
},
"files_total": 123,
"files_completed": 123,
"files_failed": 123,
"created_at": 123
}
]
},
"extract_config": {
"prompt": "<string>",
"schema": {},
"enable_video_level_entities": true,
"enable_segment_level_entities": true,
"enable_transcript_mode": true,
"enable_metadata_mode": true
},
"transcribe_config": {
"enable_summary": true,
"enable_speech": true,
"enable_scene_text": true,
"enable_visual_scene_description": true,
"enable_audio_description": true
},
"describe_config": {
"enable_summary": true,
"enable_speech": true,
"enable_scene_text": true,
"enable_visual_scene_description": true,
"enable_audio_description": true,
"prompt": "<string>"
},
"default_segmentation_config": {
"strategy": "uniform",
"uniform_config": {
"window_seconds": 60.5,
"hop_seconds": 60.5
},
"shot_detector_config": {
"detector": "adaptive",
"threshold": 123,
"min_seconds": 300.3,
"max_seconds": 300.5,
"fill_gaps": true
},
"manual_config": {
"segments": [
{
"start_time": 123,
"end_time": 123
}
]
},
"narrative_config": {
"prompt": "<string>",
"strategy": "comprehensive",
"number_of_chapters": 2,
"min_chapters": 2,
"max_chapters": 2
},
"keyframe_config": {
"frames_per_segment": 4,
"max_width": 2232
},
"start_time_seconds": 1,
"end_time_seconds": 1
},
"default_thumbnails_config": {
"enable_segment_thumbnails": true
},
"face_detection_config": {
"frame_extraction_config": {
"strategy": "uniform",
"uniform_config": {
"frames_per_second": 15.05,
"max_width": 2080
}
},
"thumbnails_config": {
"enable_frame_thumbnails": true
}
}
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Authorizations
Body
application/json
Collection creation parameters
Type of collection, determines how videos are processed and what data is extracted.
Collection Types:
- media-descriptions: Generate comprehensive media descriptions with speech, visual, and text analysis (use
describe_config) - entities: Extract structured data/entities from videos (requires
extract_config) - rich-transcripts: Generate rich transcriptions with speech and visual descriptions (use
transcribe_config). For backward compatibility only, new collections should usemedia-descriptionsinstead. - face-analysis: Detect and index faces in videos for face matching and search (use
face_detection_config) - metadata: Index connector source metadata + user metadata into file-level search documents WITHOUT downloading or processing the media. Free to index. Supports google-drive, dropbox, zoom, gong, recall, grain, and iconik URLs. No processing configs are accepted.
⚠️ Important: Only provide the config that matches your collection_type. Other configs will be ignored.
Available options:
media-descriptions, entities, rich-transcripts, face-analysis, metadata, moments Response
Successful collection creation