Elai.io Uploads API

The media library: images, video, audio and logos.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 11

POST /uploads Confirm upload #
GET /uploads List media library assets #
DELETE /uploads/bulk Delete several assets #
PATCH /uploads/bulk/move Move several assets into a folder #
POST /uploads/checkUploadUsage Check whether assets are used in videos #
GET /uploads/frames List avatar frames #
GET /uploads/music List background-music assets #
POST /uploads/music/{videoId} Upload a background-music track for a video #
GET /uploads/signedUrl Retrieve signed URL #
DELETE /uploads/{uploadId} Delete one asset #
PATCH /uploads/{uploadId}/move Move one asset into a folder #

Specifications

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/elaiio:elaiio-uploads-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

elaiio-uploads-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Elai Public Uploads API
  version: '1.0'
  description: 'Every endpoint below is served under `https://apis.elai.io/api/v1`.


    ## Authentication


    Send your workspace API token as a bearer token on every request:


    ```

    Authorization: Bearer

    ```


    Generate and rotate the token in the Elai web app under **Settings → API**, or through

    `POST /generateToken`. The token is scoped to one **workspace** and authenticates as that

    workspace''s admin user — it is not tied to an individual person, and it carries admin rights

    inside that workspace.


    A request with a missing, unknown or revoked token gets a bare `401` with no response body.


    > **Organizations on the Unlimited plan cannot use the API.** Their requests are rejected with the

    > same bare `401` as an invalid token, with nothing to distinguish the two. If a valid, freshly

    > generated token returns `401` on every endpoint, check the plan first.


    ## Errors


    Failures carry a JSON body of the shape `{ "message": "..." }`. Validation failures on the newer

    endpoints may add an `errors` array naming the offending fields. `401` is the exception: it has no

    body at all.


    Both render endpoints are **fire-and-forget** — they queue work and return immediately, so a

    `200` means "accepted", not "rendered". Render failures surface only through the `video_error`

    webhook, never as an HTTP error on the call that started the render.


    ## Scope


    This reference is generated from the running code rather than maintained by hand, so it cannot

    quietly fall behind the API it describes. It documents 94 operations across the

    `/api/v1` surface.


    Endpoints are grouped by subject in the sidebar. If something you need is missing, or an endpoint

    does not behave as described here, tell us.


    ---


    _Generated from `HEAD` at `2a2222fdbe` on 2026-11-25._'
servers:
- url: https://apis.elai.io/api/v1
security:
- sec0: []
tags:
- name: Uploads
  description: 'The media library: images, video, audio and logos.'
paths:
  /uploads:
    post:
      summary: Confirm upload
      description: Confirm that a file has been uploaded successfully
      operationId: upload-confirm
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
              - signedUrl
              properties:
                signedUrl:
                  type: string
                uploadFolderId:
                  type: string
                  description: File the asset into this folder. The only way to place an upload in a folder over the API — see `GET /uploads/folders`.
                base64:
                  type: string
                  description: Inline file contents, as an alternative to the signed-URL flow.
                logo:
                  type: boolean
                  description: Register the asset as a logo.
                logoId:
                  type: string
                  description: Replace an existing logo instead of adding one.
                brandKitId:
                  type: string
                  description: Attach the asset to a brand kit.
                invisible:
                  type: boolean
                  description: Keep the asset out of the media library listing.
                screenRecord:
                  type: boolean
                  description: Mark the asset as a screen recording.
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Result:
                  value:
                    name: photoroom_20210227_195335_1687768863148.png
                    type: image
                    status: ready
                    url: https://d3u63mhbhkevz8.cloudfront.net/production/uploads/627a7bfac1806e45fa2ab26f/photoroom_20210227_195335_1687768863148.png?Expires=1688331600&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9kM3U2M21oYmhrZXZ6OC5jbG91ZlbG9wbWVudC91cGxvYWRzLzYyN2E3YmZhYzE4MDZlNDVmYTJhYjI2Zi9waG90b3Jvb21fMjAyMTAyMjdfMTk1MzM1XzE2ODc3Njg4NjMxNDgucG5nIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNjg4MzMxNjAwfX19XX0_&Signature=qpRchHxHmSwjSQ-wd6T2VNY~RiEfpl18HEEXyBfMhs3mUE3lqWYp6XomQYdAXO7mUhAaIvv3AnSSafZrMz8~0zqgShTaXeUnP0-XXTZP4L12UO6vCl0Xkx2ydU9Vn8-FkT7EX38KZo842iMQkycxPXpubQp0ROInf-xZAxhnB26jmESD9Nu0EsEXnype6krJaCye-3uvxQwV9D0KKd9dqwdFZr2rCZquuggFNGvZZTACnvNSR08WsDrmTaPDC-QZjrX9kWv1HdfQNr-akuRDZqQLOvmM4zQVQNnWAmdnMGjxDAqdvcxBpQlf-RlCsgLfUkdrEEXvgGcCpTUktZB8ww__&Key-Pair-Id=K1Y7U91AR6T7E5
                    thumbnail: https://d3u63mhbhkevz8.cloudfront.net/production/uploads/627a7bfac1806e45fa2ab26f/photoroom_20210227_195335_1687768863148_thumbnail.png?Expires=1688331600&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9kM3U2M250Lm5ldC9kZXZlbG9wbWVudC91cGxvYWRzLzYyN2E3YmZhYzE4MDZlNDVmYTJhYjI2Zi9waG90b3Jvb21fMjAyMTAyMjdfMTk1MzM1XzE2ODc3Njg4NjMxNDhfdGh1bWJuYWlsLnBuZyIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTY4ODMzMTYwMH19fV19&Signature=p2Eucsy8iiNZS25wYpcnfsEWzy8OEzfm4QKnQLqd6pttlA5Y~GhQP6QLlRVhVG0XjU3as~LyT5sYA0uuVNSFD0ZIs5Odg3TvfkYnO0FDrb7lJM51dQ~KEyYhkt-KIv57S1kPsP9AovKmaSlUpj~uv9riEPyMsE3P1La3WqwcKYqiXlvP0puO8JOJUqt8IVzzilDReEz~w3c7-KWo510hTBfX9jzrdrqGnbklrfoTEIBn9dU2EjBUhFABAzcL6~tG6k7CUH2lwaRgQzs-rJUquW9r~tRGWA60q4wlDSMfiF-XwksANYznTFVTUNrXxkC03iTaQaitvOjTinAxdpa4nA__&Key-Pair-Id=K1Y7U91AR6T7E5
                    userId: 627a7bf221806e45fa2ab26f
                    accountId: 627a33fac1806e45fa2ab270
                    _id: 64994f31abeb444453f1b17e
                    createdAt: '2023-06-26T08:41:21.340Z'
                    updatedAt: '2023-06-26T08:41:21.340Z'
                    __v: 0
              schema:
                type: object
                properties:
                  name:
                    type: string
                    example: photoroom_20210227_195335_1687768863148.png
                  type:
                    type: string
                    example: image
                  status:
                    type: string
                    example: ready
                  url:
                    type: string
                    example: https://d3u63mhbhkevz8.cloudfront.net/production/uploads/627a7bfac1806e45fa2ab26f/photoroom_20210227_195335_1687768863148.png?Expires=1688331600&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9kM3U2M21oYmhrZXZ6OC5jbG91ZlbG9wbWVudC91cGxvYWRzLzYyN2E3YmZhYzE4MDZlNDVmYTJhYjI2Zi9waG90b3Jvb21fMjAyMTAyMjdfMTk1MzM1XzE2ODc3Njg4NjMxNDgucG5nIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNjg4MzMxNjAwfX19XX0_&Signature=qpRchHxHmSwjSQ-wd6T2VNY~RiEfpl18HEEXyBfMhs3mUE3lqWYp6XomQYdAXO7mUhAaIvv3AnSSafZrMz8~0zqgShTaXeUnP0-XXTZP4L12UO6vCl0Xkx2ydU9Vn8-FkT7EX38KZo842iMQkycxPXpubQp0ROInf-xZAxhnB26jmESD9Nu0EsEXnype6krJaCye-3uvxQwV9D0KKd9dqwdFZr2rCZquuggFNGvZZTACnvNSR08WsDrmTaPDC-QZjrX9kWv1HdfQNr-akuRDZqQLOvmM4zQVQNnWAmdnMGjxDAqdvcxBpQlf-RlCsgLfUkdrEEXvgGcCpTUktZB8ww__&Key-Pair-Id=K1Y7U91AR6T7E5
                  thumbnail:
                    type: string
                    example: https://d3u63mhbhkevz8.cloudfront.net/production/uploads/627a7bfac1806e45fa2ab26f/photoroom_20210227_195335_1687768863148_thumbnail.png?Expires=1688331600&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9kM3U2M250Lm5ldC9kZXZlbG9wbWVudC91cGxvYWRzLzYyN2E3YmZhYzE4MDZlNDVmYTJhYjI2Zi9waG90b3Jvb21fMjAyMTAyMjdfMTk1MzM1XzE2ODc3Njg4NjMxNDhfdGh1bWJuYWlsLnBuZyIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTY4ODMzMTYwMH19fV19&Signature=p2Eucsy8iiNZS25wYpcnfsEWzy8OEzfm4QKnQLqd6pttlA5Y~GhQP6QLlRVhVG0XjU3as~LyT5sYA0uuVNSFD0ZIs5Odg3TvfkYnO0FDrb7lJM51dQ~KEyYhkt-KIv57S1kPsP9AovKmaSlUpj~uv9riEPyMsE3P1La3WqwcKYqiXlvP0puO8JOJUqt8IVzzilDReEz~w3c7-KWo510hTBfX9jzrdrqGnbklrfoTEIBn9dU2EjBUhFABAzcL6~tG6k7CUH2lwaRgQzs-rJUquW9r~tRGWA60q4wlDSMfiF-XwksANYznTFVTUNrXxkC03iTaQaitvOjTinAxdpa4nA__&Key-Pair-Id=K1Y7U91AR6T7E5
                  userId:
                    type: string
                    example: 627a7bf221806e45fa2ab26f
                  accountId:
                    type: string
                    example: 627a33fac1806e45fa2ab270
                  _id:
                    type: string
                    example: 64994f31abeb444453f1b17e
                  createdAt:
                    type: string
                    example: '2023-06-26T08:41:21.340Z'
                  updatedAt:
                    type: string
                    example: '2023-06-26T08:41:21.340Z'
                  __v:
                    type: integer
                    example: 0
                    default: 0
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Result:
                  value: {}
              schema:
                type: object
                properties: {}
      deprecated: false
      tags:
      - Uploads
    get:
      tags:
      - Uploads
      summary: List media library assets
      description: 'Lists the workspace''s uploaded assets, newest-updated first by default. `frame`, `audio` and `logo` assets are always excluded — use `GET /uploads/frames` and `GET /uploads/music` for those.


        When no `uploadFolderId`, `q` or `type` filter is given, only assets at the **root** of the media library are returned (those with no folder). Supplying any of those three filters searches across folders instead.


        Every returned `url` and `thumbnail` is a time-limited signed URL — fetch the bytes promptly rather than storing the URL.'
      parameters:
      - name: offset
        in: query
        schema:
          type: integer
          default: 0
          minimum: 0
        description: Assets to skip.
      - name: limit
        in: query
        schema:
          type: integer
          default: 30
        description: Assets per page. Not capped by the endpoint.
      - name: q
        in: query
        schema:
          type: string
        description: Case-insensitive substring match on the asset name. Interpreted as a regular expression.
      - name: type
        in: query
        schema:
          type: string
          enum:
          - images
          - vectors
          - videos
          - gifs
        description: Asset class. `images` excludes SVGs; `vectors` selects only SVGs. An unrecognised value is ignored rather than rejected.
      - name: excludeType
        in: query
        schema:
          type: string
        description: Additional raw `type` value to exclude (on top of `frame`, `audio`, `logo`).
      - name: uploadFolderId
        in: query
        schema:
          type: string
        description: Restrict to one media-library folder.
      - name: sort
        in: query
        schema:
          type: string
          enum:
          - CREATED_AT_DESCEND
          - CREATED_AT_ASCEND
          - UPDATED_AT_DESCEND
          - UPDATED_AT_ASCEND
          - NAME_ASCEND
          - NAME_DESCEND
          default: UPDATED_AT_DESCEND
        description: Sort order. An unrecognised value silently falls back to `UPDATED_AT_DESCEND`.
      responses:
        '200':
          description: A page of assets.
          content:
            application/json:
              schema:
                type: object
                properties:
                  uploads:
                    type: array
                    items:
                      $ref: '#/components/schemas/Upload'
                  hasMore:
                    type: boolean
                    description: True when more assets match beyond this page.
      operationId: list-uploads
  /uploads/bulk:
    delete:
      tags:
      - Uploads
      summary: Delete several assets
      description: 'Permanently deletes the listed assets, including the underlying files in object storage. Videos that reference a deleted asset are **not** updated — check `POST /uploads/checkUploadUsage` first.


        If one of the assets is the workspace''s primary logo, the next available logo is promoted automatically.


        Validation is all-or-nothing; the deletions themselves run in parallel and are not transactional, so a mid-flight failure can leave some assets deleted.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                uploadIds:
                  type: array
                  items:
                    type: string
                  minItems: 1
              required:
              - uploadIds
            example:
              uploadIds:
              - 66a1f0c2b7cd13032a9c6001
      responses:
        '200':
          description: Assets deleted. The response body is empty.
          content:
            application/json:
              schema:
                type: object
        '400':
          $ref: '#/components/responses/BadRequest'
        '404':
          description: At least one asset was not found in this workspace.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: delete-uploads
      x-readme:
        explorer-enabled: false
  /uploads/bulk/move:
    patch:
      tags:
      - Uploads
      summary: Move several assets into a folder
      description: 'Moves every listed asset into `uploadFolderId`. Omit `uploadFolderId` (or send `null`) to move the assets back to the root of the media library.


        The move is all-or-nothing at validation time: if any id is malformed, any asset is missing, or any asset belongs to another workspace, nothing is moved. The `updateMany` that follows is not transactional.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                uploadIds:
                  type: array
                  items:
                    type: string
                  minItems: 1
                  description: Asset ids to move. Must be 24-char hex ObjectIds.
                uploadFolderId:
                  type:
                  - string
                  - 'null'
                  description: Destination folder, or `null`/omitted for the media-library root.
              required:
              - uploadIds
            example:
              uploadIds:
              - 66a1f0c2b7cd13032a9c6001
              - 66a1f0c2b7cd13032a9c6002
              uploadFolderId: 66a1f0c2b7cd13032a9c6100
      responses:
        '200':
          description: Assets moved.
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  movedCount:
                    type: integer
              example:
                message: Successfully moved 2 uploads
                movedCount: 2
        '400':
          description: '`uploadIds` empty or not an array, an id is not a valid ObjectId, or the destination folder does not belong to this workspace.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                message: uploadIds must be a non-empty array
        '404':
          description: At least one asset was not found in this workspace.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                message: Some uploads not found or access denied
      operationId: move-uploads
  /uploads/checkUploadUsage:
    post:
      tags:
      - Uploads
      summary: Check whether assets are used in videos
      description: Given a list of asset URLs, reports which of them are referenced by at least one video in the workspace. Use it before deleting assets to warn about breaking existing videos.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                urls:
                  type: array
                  items:
                    type: string
                  description: Asset URLs (the stored `url` values, not signed URLs).
              required:
              - urls
            example:
              urls:
              - uploads/627a7bfac1806e45fa2ab26f/logo.png
      responses:
        '200':
          description: Which of the supplied URLs are in use.
          content:
            application/json:
              schema:
                type: object
                properties:
                  used:
                    type: array
                    items:
                      type: string
                    description: The subset of the input URLs that are referenced by a video.
      operationId: check-upload-usage
  /uploads/frames:
    get:
      tags:
      - Uploads
      summary: List avatar frames
      description: 'Lists `frame` assets — the decorative frames that can be placed around an avatar.


        Unlike the other upload endpoints this one is **not scoped to your workspace**: it returns every frame in the installation, because frames are shared catalog content.'
      parameters:
      - name: offset
        in: query
        schema:
          type: integer
          default: 0
      - name: limit
        in: query
        schema:
          type: integer
          default: 30
      - name: q
        in: query
        schema:
          type: string
        description: Case-insensitive substring match on frame name.
      responses:
        '200':
          description: Frame assets.
          content:
            application/json:
              schema:
                type: object
                properties:
                  uploads:
                    type: array
                    items:
                      $ref: '#/components/schemas/Upload'
                  hasMore:
                    type: boolean
      operationId: list-avatar-frames
  /uploads/music:
    get:
      tags:
      - Uploads
      summary: List background-music assets
      description: Returns up to **100** audio assets for the workspace, sorted by most recently updated. Not paginated — `offset` and `limit` are ignored.
      responses:
        '200':
          description: Audio assets.
          content:
            application/json:
              schema:
                type: object
                properties:
                  uploads:
                    type: array
                    items:
                      $ref: '#/components/schemas/Upload'
                  hasMore:
                    type: boolean
      operationId: list-music-tracks
  /uploads/music/{videoId}:
    post:
      tags:
      - Uploads
      summary: Upload a background-music track for a video
      description: 'Uploads an audio file as a background-music asset for the given video.


        Non-MP3 input is transcoded to MP3 with ffmpeg before storage, so WAV, M4A and similar formats are accepted. The stored asset is keyed by file name: uploading a file whose name already exists in the workspace **overwrites that asset''s record** rather than creating a second one.


        Send the file as `multipart/form-data` under the field name `file`. Counts against the workspace''s asset limit.'
      parameters:
      - name: videoId
        in: path
        required: true
        schema:
          type: string
        description: Video the track is uploaded for. Determines the storage path.
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  type: string
                  format: binary
                  description: Audio file. Transcoded to MP3 unless it already is one.
              required:
              - file
      responses:
        '200':
          description: The created or updated audio asset.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Upload'
        '400':
          description: No file supplied, or the asset limit for the plan is reached.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: upload-music-track
  /uploads/signedUrl:
    get:
      summary: Retrieve signed URL
      description: API to retrieve signed URL to upload media directly to our storage
      operationId: retrieve-signed-url
      parameters:
      - name: name
        in: query
        description: File name
        required: true
        schema:
          type: string
      - name: mimetype
        in: query
        description: MIME type of the file. **Images and videos only** — anything else is rejected with `400 Wrong file type, only images, gifs and videos supported` (controllers/uploads/uploads.js:105). Both `name` and `mimetype` are required.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Result:
                  value:
                    signedUrl: https://elai-us-prod.s3.us-east-2.amazonaws.com/production/uploads/627a7bfac1806e45fa2ab26f/file.file?Content-Type=image%2Fjpeg&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=REDACTED_AWS_ACCESS_KEY_ID%2F20230626%2Fus-east-2%2Fs3%2Faws4_request&X-Amz-Date=20230626T083440Z&X-Amz-Expires=600&X-Amz-Signature=2daea7a215583185e5720f934350fecb7d44644640045b67aaf04130c8ac138&X-Amz-SignedHeaders=host
              schema:
                type: object
                properties:
                  signedUrl:
                    type: string
                    example: https://elai-us-prod.s3.us-east-2.amazonaws.com/production/uploads/627a7bfac1806e45fa2ab26f/file.file?Content-Type=image%2Fjpeg&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=REDACTED_AWS_ACCESS_KEY_ID%2F20230626%2Fus-east-2%2Fs3%2Faws4_request&X-Amz-Date=20230626T083440Z&X-Amz-Expires=600&X-Amz-Signature=2daea7a215583185e5720f934350fecb7d44644640045b67aaf04130c8ac138&X-Amz-SignedHeaders=host
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Result:
                  value: {}
              schema:
                type: object
                properties: {}
      deprecated: false
      tags:
      - Uploads
  /uploads/{uploadId}:
    delete:
      tags:
      - Uploads
      summary: Delete one asset
      description: 'Permanently deletes an asset and its stored file. Videos referencing it are not updated.


        If the asset is the workspace''s primary logo, the next available logo is promoted automatically.'
      parameters:
      - name: uploadId
        in: path
        required: true
        schema:
          type: string
        description: 24-char hex ObjectId of the asset.
      responses:
        '200':
          description: Asset deleted. The response body is empty.
          content:
            application/json:
              schema:
                type: object
        '400':
          description: '`uploadId` is not a valid ObjectId.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                message: Invalid upload id
        '403':
          description: The asset belongs to another workspace.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                message: Upload is assigned to another user
        '404':
          description: Asset not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                message: Not found
      operationId: delete-upload
      x-readme:
        explorer-enabled: false
  /uploads/{uploadId}/move:
    patch:
      tags:
      - Uploads
      summary: Move one asset into a folder
      description: Moves a single asset. Omit `uploadFolderId` (or send `null`) to move it to the root of the media library.
      parameters:
      - name: uploadId
        in: path
        required: true
        schema:
          type: string
        description: 24-char hex ObjectId of the asset.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                uploadFolderId:
                  type:
                  - string
                  - 'null'
                  description: Destination folder, or `null`/omitted for the root.
            example:
              uploadFolderId: 66a1f0c2b7cd13032a9c6100
      responses:
        '200':
          description: Asset moved.
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
              example:
                message: Upload moved successfully
        '400':
          description: '`uploadId` is not a valid ObjectId, or the destination folder does not belong to this workspace.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Asset not found in this workspace.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: move-upload
components:
  schemas:
    Upload:
      type: object
      description: A media library asset.
      properties:
        _id:
          type: string
        name:
          type: string
        type:
          type: string
          description: '`image`, `video`, `gif`, `audio`, `frame` or `logo`.'
        status:
          type: string
          default: ready
        url:
          type: string
          description: Signed download URL when returned from a list endpoint; the stored path elsewhere.
        thumbnail:
          type: string
          description: Signed thumbnail URL.
        size:
          type: string
        duration:
          type: number
          description: Seconds, for audio and video.
        isPrimary:
          type: boolean
          description: True for the workspace's primary logo.
        brandKitId:
          type: string
        uploadFolderId:
          type:
          - string
          - 'null'
          description: Containing folder; absent or null at the media-library root.
        userId:
          type: string
        accountId:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    Error:
      type: object
      properties:
        message:
          type: string
          description: Human-readable explanation of the failure.
  responses:
    BadRequest:
      description: The request was rejected. `message` explains why.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    sec0:
      type: apiKey
      in: header
      name: Authorization
      x-bearer-format: bearer
      x-default: SECRET_KEY
x-provenance:
  method: searched
  source: https://elai.readme.io/reference
  harvested: '2026-12-01'
  tool: harvest-readme-openapi.py
  note: Assembled verbatim from the OpenAPI definition ReadMe embeds in each operation page of the provider's developer portal; paths and components merged by API title, nothing authored.
  assembled_from:
  - https://elai.readme.io/reference/apply-brand-kit.md
  - https://elai.readme.io/reference/apply-template.md
  - https://elai.readme.io/reference/avatars-list.md
  - https://elai.readme.io/reference/build-outline-video.md
  - https://elai.readme.io/reference/build-quiz-question.md
  - https://elai.readme.io/reference/build-video-lesson.md
  - https://elai.readme.io/reference/check-upload-usage.md
  - https://elai.readme.io/reference/choose-lesson-template.md
  - https://elai.readme.io/reference/copy-video-by-template.md
  - https://elai.readme.io/reference/copy-video.md
  - https://elai.readme.io/reference/create-from-pptx.md
  - https://elai.readme.io/reference/create-from-text-url.md
  - https://elai.readme.io/reference/create-outline.md
  - https://elai.readme.io/reference/create-upload-folder.md
  - https://elai.readme.io/reference/create-user.md
  - https://elai.readme.io/reference/create-video.md
  - https://elai.readme.io/reference/create-voice-customization.md
  - https://elai.readme.io/reference/delete-upload-folder.md
  - https://elai.readme.io/reference/delete-upload.md
  - https://elai.readme.io/reference/delete-uploads.md
  - https://elai.readme.io/reference/delete-user.md
  - https://elai.readme.io/reference/delete-video.md
  - https://elai.readme.io/reference/delete-voice-customization.md
  - https://elai.readme.io/reference/download-scorm-package.md
  - https://elai.readme.io/reference/generate-api-token.md
  - https://elai.readme.io/reference/generate-outline-chapters.md
  - https://elai.readme.io/reference/generate-outline-quiz.md
  - https://elai.readme.io/reference/generate-outline-script.md
  - https://elai.readme.io/reference/generate-quiz-from-video.md
  - https://elai.readme.io/reference/generate-slides.md
  - https://elai.readme.io/reference/get-slide-screenshots.md
  - https://elai.readme.io/reference/get-speech-duration.md
  - https://elai.readme.io/reference/inspect-presentation.md
  - https://elai.readme.io/reference/list-avatar-frames.md
  - https://elai.readme.io/reference/list-custom-voices.md
  - https://elai.readme.io/reference/list-fonts.md
  - https://elai.readme.io/reference/list-lesson-templates.md
  - https://elai.readme.io/reference/list-music-tracks.md
  - https://elai.readme.io/reference/list-templates.md
  - https://elai.readme.io/reference/list-upload-folder-names.md
  - https://elai.readme.io/reference/list-uploads.md
  - https://elai.readme.io/reference/list-users.md
  - https://elai.readme.io/reference/list-video-edit-history.md
  - https://elai.readme.io/reference/list-video-exports.md
  - https://elai.readme.io/reference/list-videos.md
  - https://elai.readme.io/reference/list-voice-customizations.md
  - https://elai.readme.io/reference/llm-generate-speech.md
  - https://elai.readme.io/reference/llm-rewrite-speech.md
  - https://elai.readme.io/reference/move-upload.md
  - https://elai.readme.io/reference/move-uploads.md
  - https://elai.readme.io/reference/paste-story-html.md
  - https://elai.readme.io/reference/preview-lesson-template-layouts.md
  - https://elai.readme.io/reference/preview-video-lesson-restyle.md
  - https://elai.readme.io/reference/preview-voice-customization.md
  - https://elai.readme.io/reference/rebuild-video-lesson.md
  - https://elai.readme.io/reference/regenerate-outline-quiz.md
  - https://elai.readme.io/reference/regenerate-outline-speech.md
  - https://elai.readme.io/reference/regenerate-quiz-question.md
  - https://elai.readme.io/reference/render-personalized.md
  - https://elai.readme.io/reference/render-video.md
  - https://elai.readme.io/reference/restyle-video-lesson.md
  - https://elai.readme.io/reference/retrieve-api-config.md
  - https://elai.readme.io/reference/retrieve-avatar.md
  - https://elai.readme.io/reference/retrieve-current-user.md
  - https://elai.readme.io/reference/retrieve-lesson-template.md
  - https://elai.readme.io/reference/retrieve-outline.md
  - https://elai.readme.io/reference/retrieve-player-payload.md
  - https://elai.readme.io/reference/retrieve-signed-url.md
  - https://elai.readme.io/reference/retrieve-template.md
  - https://elai.readme.io/reference/retrieve-upload-folder-breadcrumbs.md
  - https://elai.readme.io/reference/retrieve-upload-folder-info.md
  - https://elai.readme.io/reference/retrieve-upload-folder.md
  - https://elai.readme.io/reference/retrieve-video-lesson-design.md
  - https://elai.readme.io/reference/retrieve-video-source-links.md
  - https://elai.readme.io/reference/retrieve-video.md
  - https://elai.readme.io/reference/revoke-api-token.md
  - https://elai.readme.io/reference/rewrite-outline-speech.md


# --- truncated at 32 KB (33 KB total) ---
# Full source: https://artifacts.apis.io/elaiio/openapi/elaiio-uploads-api-openapi.yml