---
title: "Request a presigned URL for file upload"
method: POST
path: "/storage/uploads/request-url"
tags: ["Storage"]
---

# Request a presigned URL for file upload

`POST /storage/uploads/request-url`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/storage/uploads/request-url`
- Auth: none required

Returns a presigned GCS URL for direct upload. The client sends JSON
metadata here, then uploads the file directly to the returned URL.

## Request body

- UploadUrlRequest
  - `name` string, required: Original file name.
  - `size` integer, required: File size in bytes.
  - `contentType` string, required: MIME type of the file.
  - `domain` string: Product domain for file type allowlist enforcement (e.g. "prism", "terra", "vessels", "aegis", "lyte", "szl", "carlota-jo"). Omit or use "default" for the global allowlist.
  - `orgId` integer: Org ID for quota enforcement. Required when uploading on behalf of an org.

## Response `200`

Presigned upload URL generated.

- UploadUrlResponse
  - `uploadURL` string, uri, required: Presigned GCS URL for PUT upload.
  - `objectPath` string, required: Normalized object path (e.g. /objects/uploads/uuid). Store this in your database.
  - `metadata` UploadUrlRequest
    - `name` string, required: Original file name.
    - `size` integer, required: File size in bytes.
    - `contentType` string, required: MIME type of the file.
    - `domain` string: Product domain for file type allowlist enforcement (e.g. "prism", "terra", "vessels", "aegis", "lyte", "szl", "carlota-jo"). Omit or use "default" for the global allowlist.
    - `orgId` integer: Org ID for quota enforcement. Required when uploading on behalf of an org.

## Other responses

- `400`: Missing or invalid required fields.
- `500`: Failed to generate upload URL.

## Changes

- **2026-04-15** `b25c77d7653b`: 4 info
  - added the new optional request property `domain`
  - added the new optional request property `orgId`
  - added the optional property `metadata/domain` to the response with the `200` status
  - added the optional property `metadata/orgId` to the response with the `200` status
- **2026-04-15** `ee05a5224ed5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api/changes/storage/uploads/request-url/post.md)

---

[API](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api.md) - [All operations](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api/llms.txt) - [OpenAPI document](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api/revisions/6ad730b13e59?raw)
