---
agentTools:
  projectIndex: https://elai.readme.io/llms.txt
---

# Retrieve a video

Usable endpoint to retrieve a video's information, including rendering status.

```json Response Example
{
  "_id": "420c6769343dc7bb51513e63",
  "name": "Hello from API!",
  "slides": [
    {
      "id": 1,
      "canvas": {
        "objects": [
          {
            "type": "avatar",
            "left": 150,
            "top": 20,
            "fill": "#4868FF",
            "scaleX": 0.37,
            "scaleY": 0.37,
            "height": 1080,
            "width": 1080,
            "src": "https://elai-media.s3.eu-west-2.amazonaws.com/avatars/jade.png"
            "avatarType": "transparent",
            "animation": {
              "type": null
            }
          }
        ],
        "background": "#ffffff",
        "version": "4.4.0"
      },
      "avatar": {
       {
          "code": "jade",
          "gender": "female"
        }
      },
      "animation": "fade_in",
      "language": "English",
      "speech": "Hi there! It's my first video created by Elai API.",
      "voice": "en-US-AriaNeural",
      "voiceType": "text",
      "voiceProvider": "azure"
    }
  ],
  "tags": [
    "api",
    "test"
  ],
  "status": "rendering",
  "verified": false,
  "public": false,
  "thumbnail": "https://apis.elai.io/public/video/657b2dfba6a9d027b5a.jpg?s=56f11aa5dc06da00e40632fca008d80dd76f751bd6931aeec55f5abf0b737",
  "url": "https://apis.elai.io/public/video/657b2dfba6a9d027b5a.mp4?s=56f11aa5dc06da00885063008d80dd76f751bd6931aeec55f5abf0b737",
  "sourceId": "627be87f8017b119142bd3b7",
  "deleted": false,
  "status": "draft",
  "verified": false,
  "public": false,
  "userId": "1",
  "accountId": "1",
  "createdAt": "2022-08-29T07:14:49.354Z",
  "updatedAt": "2022-08-29T07:14:49.354Z"
}
```

# OpenAPI definition

````json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Elai Public API",
    "version": "1.0",
    "description": "Every endpoint below is served under `https://apis.elai.io/api/v1`.\n\n## Authentication\n\nSend your workspace API token as a bearer token on every request:\n\n```\nAuthorization: Bearer <your-api-token>\n```\n\nGenerate and rotate the token in the Elai web app under **Settings → API**, or through\n`POST /generateToken`. The token is scoped to one **workspace** and authenticates as that\nworkspace's admin user — it is not tied to an individual person, and it carries admin rights\ninside that workspace.\n\nA request with a missing, unknown or revoked token gets a bare `401` with no response body.\n\n> **Organizations on the Unlimited plan cannot use the API.** Their requests are rejected with the\n> same bare `401` as an invalid token, with nothing to distinguish the two. If a valid, freshly\n> generated token returns `401` on every endpoint, check the plan first.\n\n## Errors\n\nFailures carry a JSON body of the shape `{ \"message\": \"...\" }`. Validation failures on the newer\nendpoints may add an `errors` array naming the offending fields. `401` is the exception: it has no\nbody at all.\n\nBoth render endpoints are **fire-and-forget** — they queue work and return immediately, so a\n`200` means \"accepted\", not \"rendered\". Render failures surface only through the `video_error`\nwebhook, never as an HTTP error on the call that started the render.\n\n## Scope\n\nThis reference is generated from the running code rather than maintained by hand, so it cannot\nquietly fall behind the API it describes. It documents 96 operations across the\n`/api/v1` surface.\n\nEndpoints are grouped by subject in the sidebar. If something you need is missing, or an endpoint\ndoes not behave as described here, tell us.\n\n---\n\n_Generated from `chore/web-4760/api-v1-reference-build` at `5289745d` on 2026-09-04._"
  },
  "servers": [
    {
      "url": "https://apis.elai.io/api/v1"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer",
        "x-default": "SECRET_KEY"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/videos/{videoId}": {
      "get": {
        "summary": "Retrieve a video",
        "description": "Usable endpoint to retrieve a video's information, including rendering status.",
        "operationId": "retrieve-video",
        "parameters": [
          {
            "name": "videoId",
            "in": "path",
            "description": "Video identifier",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "createMissingStories",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            },
            "description": "Backfill `story` data on slides that lack it, before returning the video (`videos-shared-api.js:334`). The escape hatch for applying the Story API to a video that was not created as a story — without it those slides have nothing for the story endpoints to work on."
          }
        ],
        "responses": {
          "200": {
            "description": "The full video document.\n\nFor render progress, poll `status`. It is the only field whose values are guaranteed vocabulary; treat the rest of the document as descriptive. Prefer the account webhook (`video_ready` / `video_error`) over polling where you can.",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": {
                      "_id": "420c6769343dc7bb51513e63",
                      "name": "Hello from API!",
                      "slides": [
                        {
                          "id": 1,
                          "canvas": {
                            "objects": [
                              {
                                "type": "avatar",
                                "version": 2,
                                "left": 150,
                                "top": 20,
                                "fill": "#4868FF",
                                "scaleX": 0.37,
                                "scaleY": 0.37,
                                "src": "https://elai-media.s3.eu-west-2.amazonaws.com/avatars/jade.png",
                                "avatarType": "transparent",
                                "animation": {
                                  "type": null
                                }
                              }
                            ],
                            "background": "#ffffff",
                            "version": "4.4.0"
                          },
                          "avatar": {
                            "code": "jade",
                            "name": "Jade",
                            "version": 2,
                            "gender": "female"
                          },
                          "animation": "fade_in",
                          "language": "English",
                          "speech": "Hi there! It's my first video created by Elai API.",
                          "voice": "en-US-AriaNeural",
                          "voiceType": "text",
                          "voiceProvider": "azure"
                        }
                      ],
                      "tags": [
                        "api",
                        "test"
                      ],
                      "status": "draft",
                      "verified": false,
                      "public": false,
                      "url": "https://elai-media.s3.eu-west-2.amazonaws.com/videos/628533740e4e642def3141ab/greetings.mp4",
                      "sourceId": "627be87f8017b119142bd3b7",
                      "deleted": false,
                      "userId": "1",
                      "accountId": "1",
                      "createdAt": "2022-08-29T07:14:49.354Z",
                      "updatedAt": "2022-08-29T07:14:49.354Z"
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "description": "Abridged: the response carries the whole video document, including `slides`.",
                  "additionalProperties": true,
                  "properties": {
                    "_id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "validating",
                        "rendering",
                        "moderation",
                        "ready",
                        "error"
                      ],
                      "description": "Render state.\n- `draft` — not rendering; editable.\n- `validating` — queued, pre-render checks running.\n- `rendering` — in progress.\n- `moderation` — held for manual review (paid plans) after a moderation hit.\n- `ready` — finished; `url` is populated.\n- `error` — failed; the reason is in `data.internalError`."
                    },
                    "url": {
                      "type": "string",
                      "description": "The rendered MP4. Populated once `status` is `ready`."
                    },
                    "thumbnail": {
                      "type": "string"
                    },
                    "duration": {
                      "type": "number",
                      "description": "Seconds. Set once rendered."
                    },
                    "slides": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "tags": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Creation source (`story`, `url`, `pptx`, `pdf`, …)."
                    },
                    "folderId": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "data": {
                      "type": "object",
                      "additionalProperties": true,
                      "description": "Assorted internals.",
                      "properties": {
                        "internalError": {
                          "type": "string",
                          "description": "Why the render failed. Present when `status` is `error`."
                        }
                      }
                    },
                    "exportsCount": {
                      "type": "integer",
                      "description": "How many times this video has been exported."
                    },
                    "lastExport": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": true,
                      "description": "The most recent export, or `null`."
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "403",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": {
                      "message": "Video is assigned to another account"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "404",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": {
                      "message": "Video not found"
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "tags": [
          "Videos"
        ]
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "tags": [
    {
      "name": "Videos",
      "description": "Create, read, update and delete videos, and read their exports, history and player payload."
    }
  ],
  "_id": {
    "buffer": {
      "0": 106,
      "1": 154,
      "2": 229,
      "3": 101,
      "4": 201,
      "5": 178,
      "6": 243,
      "7": 252,
      "8": 223,
      "9": 58,
      "10": 69,
      "11": 151
    }
  }
}
````