Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
Segmentation job parameters
Input video URL. Supports URIs of files uploaded to Cloudglue Files endpoint, public HTTP URLs, and S3 or Dropbox URIs which have been granted access to Cloudglue via data connectors.
⚠️ Important: YouTube URLs are NOT supported for the segments API. This includes both shot-based and narrative-based segmentation. For S3 and Dropbox URI support see our documentation on data connectors for setup information.
Segmentation criteria: • shot: Detect scene changes and shot boundaries using computer vision • narrative: Identify logical narrative segments and chapters using AI analysis
shot
, narrative
Configuration for shot-based segmentation. Only provide when criteria is 'shot'.
Configuration for narrative-based segmentation. Only provide when criteria is 'narrative'.
Response
Successful response
Unique identifier for the segment job
ID of the file this segment belongs to
Object type, always 'segments'
segments
Current status of the segment job
pending
, processing
, completed
, failed
Segment criteria used for this job
shot
, narrative
Unix timestamp of when the job was created
Configuration used for shot-based segmentation (only present when criteria is 'shot')
Configuration used for narrative-based segmentation (only present when criteria is 'narrative')
Total number of segments generated (only present when status is 'completed')
x >= 0
Array of generated segments (only present when status is 'completed')