> ## 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.

# Get Video Personalization Result

> Retrieves the personalized video, its voiceover audio and the source video for a completed run.

## Retrieving the Personalized Video

Once your task status shows `SUCCESS`, call this endpoint with the `run_id` to get download links:

* **`video_url`**: the personalized video, with the new voiceover mixed under the original footage.
* **`audio_url`**: the personalized voiceover on its own, useful when you want to lay it under your own edit.
* **`original_video_url`**: the source video you submitted.

The response also carries the run's `status` (`queued`, `processing`, `completed` or `failed`). `video_url` and `audio_url` are `null` until the status is `completed`.

> [!NOTE]
>
> The download URLs are time-limited. If one expires, call this endpoint again for a fresh link instead of caching it.

## Request Example

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

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

result = client.personalize.get_result(12345)
if result.status == "completed":
    print(f"Video: {result.video_url}")
    print(f"Audio: {result.audio_url}")
```

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

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

const result = await client.personalize.getResult({ run_id: 12345 });
if (result.status === "completed") {
    console.log(`Video: ${result.video_url}`);
    console.log(`Audio: ${result.audio_url}`);
}
```

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

response = requests.get(
    "https://client.camb.ai/apis/personalize-video-result/12345",
    headers={"x-api-key": os.environ["CAMB_API_KEY"]},
)
response.raise_for_status()
result = response.json()
if result["status"] == "completed":
    print(result["video_url"])
```

```bash cURL theme={null}
curl "https://client.camb.ai/apis/personalize-video-result/12345" \
  -H "x-api-key: $CAMB_API_KEY"
```

## Next Steps

Publish the finished video with [`/personalize-video-share/{run_id}`](create-personalize-video-share), or list every run in the workspace with [`/personalize-video-runs`](list-personalize-video-runs).


## OpenAPI

````yaml get /personalize-video-result/{run_id}
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://client.camb.ai/apis
security: []
paths:
  /personalize-video-result/{run_id}:
    get:
      tags:
        - Apis
        - Video Personalization
      summary: Get Video Personalization Result
      description: >-
        Retrieve the personalized video, its voiceover audio and the source
        video for a run. The output URLs are set once the run's `status` is
        `completed`.
      operationId: get_personalize_video_result_personalize_video_result__run_id__get
      parameters:
        - name: run_id
          in: path
          required: true
          schema:
            $ref: '#/components/schemas/RunIDParam'
          description: >-
            The `run_id` reported by the status endpoint once the task
            succeeded.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PersonalizeVideoResult'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    RunIDParam:
      type: integer
      title: Run ID
      description: >-
        The unique identifier for the run, which was generated during the
        creation process and returned upon task completion.
    PersonalizeVideoResult:
      type: object
      title: PersonalizeVideoResult
      required:
        - status
      properties:
        status:
          type: string
          enum:
            - queued
            - processing
            - completed
            - failed
          title: Status
          description: Run state. The output URLs are set only once it is `completed`.
        video_url:
          type:
            - string
            - 'null'
          title: Video Url
          default: null
          description: >-
            Presigned URL of the personalized video. `null` until the run has
            completed. Call this endpoint again if the URL expires.
        audio_url:
          type:
            - string
            - 'null'
          title: Audio Url
          default: null
          description: >-
            Presigned URL of the personalized voiceover audio. `null` until the
            run has completed. Call this endpoint again if the URL expires.
        original_video_url:
          type:
            - string
            - 'null'
          title: Original Video Url
          default: null
          description: Presigned URL of the source video that was personalized.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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.