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

# Confirm upload

Confirm that a file has been uploaded successfully

```json Response
{
    "name": "photo.jpg",
    "type": "image",
    "status": "ready",
    "url": "https://d3u63mhbhkevz8.cloudfront.net/development/production/uploads/64b903f625ea32a67d82a05b/photo_xwdv9i.jpg?Expires=1710712800&Policy=eyJdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9kM3U2M21oYmhrZXZ6OC5jbG91ZGZyb250Lm5ldC9kZXZlbG9wbWVudC9wcm9kdWN0aW9uL3VwbG9hZHMvNjRiOTAyZjYyNWVhMzJhNjdkODJhMDViL3Bob3RvX3h3ZHY5aS5qcGciLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE3MTA3MTI4MDB9fX1dfQ__&Signature=m240XS7PXqWwvC4r2AWPGzHHKhv27widRuOsyqzNFBu78tMthGA40ZYbTqmISsB6N26fWrBG%7EEOCEYO8y%7Ez29ZKppA2FxfUC6ZVOFb5fc0vzZ78cD%7EkbqFvP1vn-Qtiqkb9KdH4RYUsclitNNDixbxRnlTxipp-OB-09gRy4YGRzNWYudpbyrGY2Pqneobq9naL5rXjcyaLQzniT5%7E6bP7O2wvG1VeNdCBJkJgMnH9kNsJ8nXletuRTeOtHn64Zi70YuGFYlApREnswofrvEHenEN0eRr2piPgeep-SpP6H8Yo7IamwWB07Vl5N-gP2tDLgJj2KzImU-Alj8fkMjCg__&Key-Pair-Id=K1Y7U91AR6T7E5",
    "thumbnail": "https://d3u63mhbhkevz8.cloudfront.net/development/uploads/64b903f625ea32a67d82a05b/photo_xwdv9i_thumbnail.jpg?Expires=1710712800&Policy=eyJdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9kM3U2M21oYmhrZXZ6OC5jbG91ZGZyb250Lm5ldC9kZXZlbG9wbWVudC91cGxvYWRzLzY0YjkwMmY2MjVlYTMyYTY3ZDgyYTA1Yi9waG90b194d2R2OWlfdGh1bWJuYWlsLmpwZyIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTcxMDcxMjgwMH19fV19&Signature=bh2rNuUt2YDghxAgnACvI-haBMvJCCdusWJOpVuC8EDYqUbDC85NThhDt9r8paSe7Y4dwIdFIQ6BWzHFzJLFoilOBxIEBrvSyk-mAq-584vlG0k85AAfyf585%7ESXNkeGbtMPnKPbMutUvusuMXhNc3BIOJeqsgbkHN-%7EfcNH64ALXczJu4RAyPID2AoDGw5iUdLff1iGoJqQXOWtJmup6TGQSnTwpv9d9yA2qvIHdFc11GQx7SXWYbf%7EkzbRT5sdvdqHyZdYsbOg%7EXOZ9WIAD2T7hQuQvigU5i4%7EbArMShl8Dmhnc2c%7ETQh-xhnU2zF%7ES062rHMaM5PVn2PGQ3wbYQ__&Key-Pair-Id=K1Y7U91AR6T7E5",
    "userId": "64b902f625ea32a67d82a05b",
    "accountId": "64b902f625ea32a67d82a05c",
    "_id": "65f45455422e2668f5460448",
    "createdAt": "2024-03-15T13:59:49.230Z",
    "updatedAt": "2024-03-15T13:59:49.230Z",
    "__v": 0
}
```

# 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": {
    "/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."
                  },
                  "frame": {
                    "type": "boolean",
                    "description": "Register the asset as an avatar frame rather than an ordinary upload."
                  },
                  "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"
        ]
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "tags": [
    {
      "name": "Uploads",
      "description": "The media library: images, video, audio and logos."
    }
  ],
  "_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
    }
  }
}
````