---
title: "Get a safe file download URL"
method: GET
path: "/storage/{storage_id}/file-download-url/{path}"
tags: ["storage"]
---

# Get a safe file download URL

`GET /storage/{storage_id}/file-download-url/{path}`

## Request

- Base URL: `https://api.cloud.wherobots.com`
- URL: `https://api.cloud.wherobots.com/storage/{storage_id}/file-download-url/{path}`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

Authenticate to obtain downloadUrl, then GET that URL without X-API-Key, Authorization, or other platform credentials. The response is not cacheable. The URL expires at expiresAt (or earlier if its storage credentials expire).

## Path parameters

- `storage_id` string, required
- `path` string, required

## Response `200`

Successful Response

- DownloadUrlResponse: Short-lived storage location, to be fetched without platform credentials.
  - `downloadUrl` string, required
  - `expiresAt` string, date-time, required

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `422`: Validation Error
- `500`: Internal Server Error

## Changes

- **2026-10-31** `54fa857fb12d`: 7 warning
  - added the new `SCRIPT_OWNER_MISMATCH` enum value to the `errors/items/code` response property for the response status `400`
  - added the new `SCRIPT_OWNER_MISMATCH` enum value to the `errors/items/code` response property for the response status `401`
  - added the new `SCRIPT_OWNER_MISMATCH` enum value to the `errors/items/code` response property for the response status `403`
  - added the new `SCRIPT_OWNER_MISMATCH` enum value to the `errors/items/code` response property for the response status `404`
  - …3 more
- **2026-10-28** `bd4db9c535c1`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/wherobots/apis/wherobots-cloud-api/changes/storage/:storage_id/file-download-url/:path/get.md)

---

[API](https://skmtc.dev/wherobots/apis/wherobots-cloud-api.md) - [All operations](https://skmtc.dev/wherobots/apis/wherobots-cloud-api/llms.txt) - [OpenAPI document](https://skmtc.dev/wherobots/apis/wherobots-cloud-api/revisions/54fa857fb12d?raw)
