---
title: "Get presigned URL for the file"
method: GET
path: "/files/{id}/url"
tags: ["Files"]
---

# Get presigned URL for the file

`GET /files/{id}/url`

## Response `200`

OK

- ApiResponseFileUrl
  - `success` boolean, required
  - `message` string, nullable
  - `timestamp` string, date-time, required
  - `data` FileUrl
    - `fileId` string, required
    - `name` string, required
    - `url` string, required
    - `expiresIn` integer, required
    - `expiresAt` string, date-time, required

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

---

[API](https://skmtc.net/lobehub/apis/lobechat-openapi.md) · [All operations](https://skmtc.net/lobehub/apis/lobechat-openapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lobehub/lobechat-openapi/versions/7be2ebcf191c/schema)
