> ## Documentation Index
> Fetch the complete documentation index at: https://docs.camb.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# List Video Personalization Runs

> Lists the video personalization runs of your workspace, newest first, with each run's status and progress.

## Listing Your Runs

Every personalization you start, from the API or from Studio, appears here with its `run_id`, the prompt it was created with, and where it is in the pipeline (`status`, `progress_pct`, `stage`). This is what you build a dashboard on: it needs no task IDs, so you can show progress for runs your service did not submit itself.

Use `limit` and `offset` to page through the list. Runs come back newest first.

Once a run's `status` is `completed`, fetch its files from [`/personalize-video-result/{run_id}`](get-personalize-video-result) or publish it with [`/personalize-video-share/{run_id}`](create-personalize-video-share).

## Request Example

```python Python SDK theme={null}
import os
from camb.client import CambAI

client = CambAI(api_key=os.environ["CAMB_API_KEY"])

runs = client.personalize.list_runs(limit=20, offset=0)
for run in runs.runs:
    print(f"{run.run_id}  {run.status:<10} {run.progress_pct:>3}%  {run.stage:<12} {run.title}")
```

```typescript TypeScript SDK theme={null}
import { CambClient } from "@camb-ai/sdk";

const client = new CambClient({ apiKey: process.env.CAMB_API_KEY });

const runs = await client.personalize.listRuns({ limit: 20, offset: 0 });
for (const run of runs.runs) {
    console.log(`${run.run_id}  ${run.status}  ${run.progress_pct}%  ${run.stage}  ${run.title}`);
}
```

```python requests theme={null}
import os
import requests

response = requests.get(
    "https://client.camb.ai/apis/personalize-video-runs",
    headers={"x-api-key": os.environ["CAMB_API_KEY"]},
    params={"limit": 20, "offset": 0},
)
response.raise_for_status()
for run in response.json()["runs"]:
    print(run["run_id"], run["status"], run["progress_pct"], run["title"])
```

```bash cURL theme={null}
curl "https://client.camb.ai/apis/personalize-video-runs?limit=20&offset=0" \
  -H "x-api-key: $CAMB_API_KEY"
```


## OpenAPI

````yaml get /personalize-video-runs
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://client.camb.ai/apis
security: []
paths:
  /personalize-video-runs:
    get:
      tags:
        - Apis
        - Video Personalization
      summary: List Video Personalization Runs
      description: >-
        List the video personalization runs of the API key's workspace, newest
        first, with each run's status and progress.
      operationId: list_personalize_video_runs_personalize_video_runs_get
      parameters:
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 50
            title: Limit
          description: Maximum number of runs to return.
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
            default: 0
            title: Offset
          description: Number of runs to skip, for paging.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PersonalizeVideoRunsOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    PersonalizeVideoRunsOut:
      type: object
      title: PersonalizeVideoRunsOut
      properties:
        runs:
          type: array
          items:
            $ref: '#/components/schemas/PersonalizeVideoRunSummary'
          title: Runs
          default: []
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PersonalizeVideoRunSummary:
      type: object
      title: PersonalizeVideoRunSummary
      required:
        - run_id
        - title
        - status
        - progress_pct
        - stage
      properties:
        run_id:
          type: integer
          title: Run Id
        title:
          type: string
          title: Title
          description: The run's `project_name`, or the generated name.
        prompt:
          type:
            - string
            - 'null'
          title: Prompt
          default: null
          description: The personalization prompt the run was created with.
        status:
          type: string
          enum:
            - queued
            - processing
            - completed
            - failed
          title: Status
        progress_pct:
          type: integer
          title: Progress Pct
          description: Progress from 0 to 100.
        stage:
          type: string
          title: Stage
          description: >-
            The stage the run is in, for example `transcribing`, `personalizing`
            or `completed`.
        duration_secs:
          type:
            - number
            - 'null'
          title: Duration Secs
          default: null
          description: Length of the source video in seconds, once known.
        source_language:
          type:
            - string
            - 'null'
          title: Source Language
          default: null
          description: Detected source locale tag, once known.
        target_language:
          type:
            - string
            - 'null'
          title: Target Language
          default: null
          description: Output locale tag, once known.
        keep_music:
          type: boolean
          title: Keep Music
          default: true
        created_at:
          type:
            - string
            - 'null'
          format: date-time
          title: Created At
          default: null
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        The `x-api-key` is a custom header required for authenticating requests
        to our API. Include this header in your request with the appropriate API
        key value to securely access our endpoints. You can find your API key(s)
        in the 'API' section of our studio website.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.