GET
/
files
/
{file_id}
/
segmentations
List segmentations for a file
curl --request GET \
  --url https://api.cloudglue.dev/v1/files/{file_id}/segmentations \
  --header 'Authorization: Bearer <token>'
{
  "object": "list",
  "data": [
    {
      "segmentation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "status": "pending",
      "created_at": 1,
      "file_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "segmentation_config": {
        "strategy": "uniform",
        "uniform_config": {
          "window_seconds": 31,
          "hop_seconds": 30.5
        },
        "shot_detector_config": {
          "threshold": 1,
          "min_seconds": 31,
          "max_seconds": 31,
          "detector": "adaptive"
        },
        "start_time_seconds": 1,
        "end_time_seconds": 1
      },
      "total_segments": 1,
      "data": {
        "object": "list",
        "segments": [
          {
            "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "start_time": 123,
            "end_time": 123
          }
        ],
        "total": 123,
        "limit": 123,
        "offset": 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.

Path Parameters

file_id
string<uuid>
required

The ID of the file

Query Parameters

limit
integer
default:50

Number of segmentations to return

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

Offset from the start of the list

Required range: x >= 0

Response

200
application/json

List of segmentations

The response is of type object.