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

# List demos

` GET /api/v1/demos `

List demos

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

### ` project_id ` (query, optional)

- ` value `: type ` string `

### ` status ` (query, optional)

- ` value `: type ` string `

  - enum: ` ["pending","recording","refreshing","ready","failed"] `

## Responses

### ` 200 ` — Demo list

Content type: ` application/json `

- ` value `: type ` object `

  - Required fields: ` demos `

  - ` demos `: type ` array `

    - ` array item `: 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

## Request examples

### cURL

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

### JavaScript

```javascript
const response = await fetch('https://littledemo.com/api/v1/demos', {
  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', headers=headers)
print(response.json())
```