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

# Get demo details

` GET /api/v1/demos/{id} `

Get demo details

## Servers

- ` https://littledemo.com ` — Production

## Authentication

The operation accepts these alternatives. Schemes within one alternative are required together.

### Alternative 1

- ` bearerAuth `: ` http `

  - HTTP scheme: ` bearer `

  - Live API key, for example `Authorization: Bearer ld_live_...`.

### Alternative 2

- ` cookieAuth `: ` apiKey `

  - Credential: ` better-auth.session_token ` in ` cookie `

  - Dashboard session cookie.

## Parameters

### ` id ` (path, required)

- ` value `: type ` string `

## Responses

### ` 200 ` — Demo detail

Content type: ` application/json `

- ` value `: type ` unknown `

  - ` allOf constraint 1 `: type ` object `

    - Required fields: ` id `, ` project_id `, ` prompt `, ` status `, ` title `, ` action_script `, ` ai_plan `, ` snapshots `, ` video_key `, ` gif_key `, ` thumbnail_key `, ` duration_ms `, ` recording_log `, ` format `, ` resolution `, ` duration_target `, ` context `, ` presentation `, ` version `, ` error `, ` created_at `, ` updated_at `

    - ` id `: type ` string `

    - ` project_id `: type ` string `

    - ` prompt `: type ` string `

    - ` status `: type ` string `

    - ` title `: type ` string `; nullable

    - ` action_script `: type ` string `; nullable — JSON-encoded recorder script. Present after planning succeeds.

    - ` ai_plan `: type ` string `; nullable — JSON-encoded action plan generated by AI.

    - ` snapshots `: type ` string `; nullable — JSON-encoded snapshot metadata array.

    - ` video_key `: type ` string `; nullable

    - ` gif_key `: type ` string `; nullable

    - ` thumbnail_key `: type ` string `; nullable

    - ` duration_ms `: type ` number `; nullable

    - ` recording_log `: type ` string `; nullable — JSON-encoded per-step recorder execution log.

    - ` format `: type ` string `

    - ` resolution `: type ` string `

    - ` duration_target `: type ` string `; nullable

    - ` context `: type ` string `; nullable

    - ` context_hash `: type ` string `; nullable

    - ` presentation `: type ` string `; nullable — JSON-encoded presentation config, including recordingTemplate metadata.

    - ` recorder_variants `: type ` string `; nullable — JSON-encoded recorder variant status map.

    - ` version `: type ` number `

    - ` error `: type ` string `; nullable

    - ` source `: type ` string ` — How the video was produced: 'generated' (AI pipeline) or 'upload' (locally recorded, uploaded). Uploaded demos cannot be refreshed or restyled.

      - enum: ` ["generated","upload"] `

    - ` created_at `: type ` string `

    - ` updated_at `: type ` string `

    - ` refreshed_at `: type ` string `; nullable

  - ` allOf constraint 2 `: type ` object `

    - Required fields: ` latestJob `, ` refreshHistory `

    - ` latestJob `: type ` object `; nullable

      - Required fields: ` id `, ` status `, ` step `, ` started_at `, ` completed_at `, ` error `

      - ` id `: type ` string `

      - ` status `: type ` string `

      - ` step `: type ` string `; nullable

      - ` started_at `: type ` string `; nullable

      - ` completed_at `: type ` string `; nullable

      - ` error `: type ` string `; nullable

    - ` refreshHistory `: type ` array `

      - ` array item `: type ` object `

        - Required fields: ` id `, ` triggered_by `, ` result `, ` old_version `, ` new_version `, ` error `, ` created_at `

        - ` id `: type ` string `

        - ` triggered_by `: type ` string `

        - ` result `: type ` string `

        - ` old_version `: type ` number `; nullable

        - ` new_version `: type ` number `; nullable

        - ` error `: type ` string `; nullable

        - ` created_at `: type ` string `

### ` 404 ` — Not found

Content type: ` application/json `

- ` value `: type ` object `

  - Required fields: ` error `

  - ` error `: type ` string `

## Request examples

### cURL

```curl
curl -X GET 'https://littledemo.com/api/v1/demos/string' \
  -H 'Authorization: Bearer YOUR_API_TOKEN'
```

### JavaScript

```javascript
const response = await fetch('https://littledemo.com/api/v1/demos/string', {
  method: 'GET',
  headers: {
      "Authorization": "Bearer YOUR_API_TOKEN"
  }
});

const data = await response.json();
console.log(data);
```

### Python

```python
import requests

headers = {
    'Authorization': 'Bearer YOUR_API_TOKEN'
}

response = requests.get('https://littledemo.com/api/v1/demos/string', headers=headers)
print(response.json())
```