Skip to main content
GET
Retrieve the current state of a segmentation job

Authorizations

Authorization
string
header
required

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

Path Parameters

job_id
string<uuid>
required

The unique identifier of the segmentation job

Response

Successful response with job details

job_id
string<uuid>
required

Unique identifier for the segment job

file_id
string<uuid>
required

ID of the file this segment belongs to

object
enum<string>
required

Object type, always 'segments'

Available options:
segments
status
enum<string>
required

Current status of the segment job

Available options:
pending,
processing,
completed,
failed
criteria
enum<string>
required

Segment criteria used for this job

Available options:
shot,
narrative
created_at
integer
required

Unix timestamp in milliseconds when the job was created

shot_config
object

Configuration used for shot-based segmentation (only present when criteria is 'shot')

narrative_config
object

Configuration used for narrative-based segmentation (only present when criteria is 'narrative')

total_segments
integer

Total number of segments generated (only present when status is 'completed')

Required range: x >= 0
total_shots
integer

Total number of shots in the original video (only present when criteria is 'shot')

Required range: x >= 0
total_chapters
integer

Total number of chapters in the video (only present when criteria is 'narrative')

Required range: x >= 0
segments
object[]

Array of generated segments (only present when status is 'completed')

shots
object[]

Array of shots in the original video (only present when criteria is 'shot')

chapters
object[]

Array of narrative chapters in the video (only present when criteria is 'narrative')