---
operationId: listClipJobs
title: List the clip jobs of an analysis
url: "https://mediaseer.ai/docs/api/operations/listclipjobs/"
---

# List the clip jobs of an analysis

`GET /vod-analysis/{id}/clip-jobs`

URL: `api.mediaseer.ai/api/v1/vod-analysis/{id}/clip-jobs`

Newest first. Deleted jobs are not listed. Like `getClipJob`, reading brings the jobs’ states up to date.

## Authorizations

- **[apiKeyAuth](https://mediaseer.ai/docs/api/#apikeyauth)**

## Parameters

### Path Parameters

- `id` string, required: The analysis’s opaque `id`, returned by `createVodAnalysis` or `listVodAnalyses`.

### Query Parameters

- `limit` integer: Maximum number of items to return, newest first. The response can contain fewer items.

  `default: 20`, `>= 1`, `<= 100`

- `offset` integer: Number of items to skip, starting from the newest. Use the same limit when fetching later pages.

  `0`

## Responses

### 200

OK

Media type: application/json

object

- `items` Array\<object>, required: The jobs of this page, newest first.

  One request to cut an analysis’s video into clips, and its outcome.

  object

  - `id` string, required: Identifier of the clip job.

  - `analysisId` string, required: The `id` of the analysis whose video the clips are cut from.

  - `state` string, required: Where the job is. Brought up to date when the job is read.

    Allowed values: `SUBMITTING`, `PROCESSING`, `READY`, `FAILED`

  - `mode` string, required: What the job makes.

    Allowed values: `FULL_VERTICAL_CROP`, `PROMPTED_CLIPS`, `MICRODRAMA`

  - `prompt` string: The prompt given at create. Only set with `PROMPTED_CLIPS`.

  - `options` required: The options the job uses, defaults included.

    object

    - `subtitles` boolean: Burn subtitles of what is said into the clips.

      `default: true`

  - `createdAt` string, format: date-time, required: When the job was created.

  - `updatedAt` string, format: date-time, required: When the job last changed.

  - `finishedAt` string, format: date-time: When the job became `READY` or `FAILED`.

  - `error`: Why the job failed. Only set in state `FAILED`.

    object

    - `code` string, required: The reason, for clients to branch on.

      Allowed values: `SOURCE_REJECTED`, `UNAVAILABLE`, `BUSY`, `PIPELINE_FAILED`, `LAUNCH_FAILED`, `OUTCOME_UNKNOWN`

    - `message` string, required: The reason in words, safe to show to the user.

  - `episodes` Array\<object>: The clips, in order; their number is the episode count. Only set in state `READY`, and then with at least one clip.

    One clip of a `READY` job.

    object

    - `number` integer, required: Position of the clip in the job, counted from 1 without gaps. The `episode` of `getClipEpisodeMedia`.

      `>= 1`

    - `title` string: Title the clip service gave the clip. Absent when it gave none.

    - `editedAt` string, format: date-time: When the newest edit of the clip finished in the web app’s editor; get it with `getClipEpisodeMedia` and `version=EDITED`. Brought up to date when the job is read. Absent while the clip has no finished edit.

  - `editable` boolean: Whether the web app can open the job’s clips in its editor now: the job is `READY` and this environment offers the editor. Clips are edited only in the web app. Treat an absent `editable` as `false`.

- `total` integer, required: Total number of the analysis’s clip jobs, regardless of paging.

- `limit` integer, required: The `limit` this page was read with.

- `offset` integer, required: The `offset` this page was read with.

#### Example

```json
{
  "items": [
    {
      "id": "0b9e4d2c-5a1f-4e8b-b3c7-2f6a9d1e8c40",
      "analysisId": "7f3c2a1e-0b4d-4c7e-9a52-1d2e3f4a5b6c",
      "state": "SUBMITTING",
      "mode": "FULL_VERTICAL_CROP",
      "prompt": "The three funniest moments",
      "options": {
        "subtitles": true
      },
      "error": {
        "code": "SOURCE_REJECTED",
        "message": "This video can't be used for clips."
      },
      "episodes": [
        {
          "number": 1,
          "title": "The storm hits the harbour"
        }
      ]
    }
  ]
}
```

### 400

The request is malformed or fails validation (`VALIDATION`).

Media type: application/json

object

- `code` string, required: Stable machine-readable code. Clients branch on this, never on `message`.

  Allowed values: `VALIDATION`, `UNAUTHENTICATED`, `INVALID_TOKEN`, `FORBIDDEN`, `EMAIL_NOT_VERIFIED`, `NOT_FOUND`, `INVALID_STATE`, `UPLOAD_INCOMPLETE`, `QUOTA_EXCEEDED`, `RATE_LIMITED`, `UPSTREAM_ERROR`, `CLIPS_NOT_CONFIGURED`, `CLIPS_UNAVAILABLE`, `INTERNAL`

- `message` string, required: Human-readable, safe to show to the user. For `VALIDATION` with a single detail, it states that detail’s reason, naming the field where the reason needs it; with several, it is generic and `details` lists them.

- `details` Array\<object>: Optional field-level or limit-level detail.

  object

  - `field` string: The request field the detail refers to, if any; for `QUOTA_EXCEEDED`, the limit that was hit.
  - `message` string, required

#### Example

```json
{
  "code": "VALIDATION",
  "message": "The file is larger than the limit of 2147483648 bytes.",
  "details": [
    {
      "field": "sizeBytes",
      "message": "must be at most 2147483648"
    }
  ]
}
```

### 401

Missing, invalid or expired credentials (`UNAUTHENTICATED`).

Media type: application/json

object

- `code` string, required: Stable machine-readable code. Clients branch on this, never on `message`.

  Allowed values: `VALIDATION`, `UNAUTHENTICATED`, `INVALID_TOKEN`, `FORBIDDEN`, `EMAIL_NOT_VERIFIED`, `NOT_FOUND`, `INVALID_STATE`, `UPLOAD_INCOMPLETE`, `QUOTA_EXCEEDED`, `RATE_LIMITED`, `UPSTREAM_ERROR`, `CLIPS_NOT_CONFIGURED`, `CLIPS_UNAVAILABLE`, `INTERNAL`

- `message` string, required: Human-readable, safe to show to the user. For `VALIDATION` with a single detail, it states that detail’s reason, naming the field where the reason needs it; with several, it is generic and `details` lists them.

- `details` Array\<object>: Optional field-level or limit-level detail.

  object

  - `field` string: The request field the detail refers to, if any; for `QUOTA_EXCEEDED`, the limit that was hit.
  - `message` string, required

#### Example

```json
{
  "code": "VALIDATION",
  "message": "The file is larger than the limit of 2147483648 bytes.",
  "details": [
    {
      "field": "sizeBytes",
      "message": "must be at most 2147483648"
    }
  ]
}
```

### 404

No such resource for this caller (`NOT_FOUND`). Other users’ resources look the same.

Media type: application/json

object

- `code` string, required: Stable machine-readable code. Clients branch on this, never on `message`.

  Allowed values: `VALIDATION`, `UNAUTHENTICATED`, `INVALID_TOKEN`, `FORBIDDEN`, `EMAIL_NOT_VERIFIED`, `NOT_FOUND`, `INVALID_STATE`, `UPLOAD_INCOMPLETE`, `QUOTA_EXCEEDED`, `RATE_LIMITED`, `UPSTREAM_ERROR`, `CLIPS_NOT_CONFIGURED`, `CLIPS_UNAVAILABLE`, `INTERNAL`

- `message` string, required: Human-readable, safe to show to the user. For `VALIDATION` with a single detail, it states that detail’s reason, naming the field where the reason needs it; with several, it is generic and `details` lists them.

- `details` Array\<object>: Optional field-level or limit-level detail.

  object

  - `field` string: The request field the detail refers to, if any; for `QUOTA_EXCEEDED`, the limit that was hit.
  - `message` string, required

#### Example

```json
{
  "code": "VALIDATION",
  "message": "The file is larger than the limit of 2147483648 bytes.",
  "details": [
    {
      "field": "sizeBytes",
      "message": "must be at most 2147483648"
    }
  ]
}
```

### default

Unexpected error

Media type: application/json

object

- `code` string, required: Stable machine-readable code. Clients branch on this, never on `message`.

  Allowed values: `VALIDATION`, `UNAUTHENTICATED`, `INVALID_TOKEN`, `FORBIDDEN`, `EMAIL_NOT_VERIFIED`, `NOT_FOUND`, `INVALID_STATE`, `UPLOAD_INCOMPLETE`, `QUOTA_EXCEEDED`, `RATE_LIMITED`, `UPSTREAM_ERROR`, `CLIPS_NOT_CONFIGURED`, `CLIPS_UNAVAILABLE`, `INTERNAL`

- `message` string, required: Human-readable, safe to show to the user. For `VALIDATION` with a single detail, it states that detail’s reason, naming the field where the reason needs it; with several, it is generic and `details` lists them.

- `details` Array\<object>: Optional field-level or limit-level detail.

  object

  - `field` string: The request field the detail refers to, if any; for `QUOTA_EXCEEDED`, the limit that was hit.
  - `message` string, required

#### Example

```json
{
  "code": "VALIDATION",
  "message": "The file is larger than the limit of 2147483648 bytes.",
  "details": [
    {
      "field": "sizeBytes",
      "message": "must be at most 2147483648"
    }
  ]
}
```
