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

# Retrieve signed URL

API to retrieve signed URL to upload media directly to our storage

```curl Request
curl -X GET 'https://apis.elai.io/api/v1/uploads/signedUrl?name=<name>&mimetype=<mimetype>' \
  -H 'Authorization: Bearer YOUR_API_TOKEN'
```

```json Response 200
{
  "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=AKIAW6FMUIGA6NPIQQ5B%2F20230626%2Fus-east-2%2Fs3%2Faws4_request&X-Amz-Date=20230626T083440Z&X-Amz-Expires=600&X-Amz-Signature=2daea7a215583185e5720f934350fecb7d44644640045b67aaf04130c8ac138&X-Amz-SignedHeaders=host"
}
```

**Next:** [`upload-confirm`](https://elai.readme.io/reference/upload-confirm) — the signed URL is only half of the upload.

# 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/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=AKIAW6FMUIGA6NPIQQ5B%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=AKIAW6FMUIGA6NPIQQ5B%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"
        ]
      }
    }
  },
  "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
    }
  }
}
````