---
title: "Get File Download Links"
method: POST
path: "/v1/files/download_links"
tags: ["File Service"]
---

# Get File Download Links

`POST /v1/files/download_links`

Get file download links. Populate the download request with a list of file IDs and the API responds with associated download links. Files do not exceed 20MB.

## Headers

- `x-on-behalf-of` string

## Request body

- DownloadLinksRequest
  - `file_ids` string[], required — List of file IDs to retrieve download links for.

## Response `200`

OK - Successfully get file download links.

- DownloadLinksResponse
  - `files` object[] — List of files with their download links.
    - `file_id` string, uuid, required — Unique identifier of the file.
    - `file_type` string, required — File extension type (e.g., `png`, `pdf`, `docx`).
    - `file_name` string, required — Original name of the file including extension.
    - `size` integer, required — File size in bytes.
    - `url` string, uri, required — Temporary download URL for the file.
  - `absent_files` string[] — List of file IDs that were requested but could not be found.

---

[API](https://skmtc.dev/uqpay/apis/authentication-api.md) · [All operations](https://skmtc.dev/uqpay/apis/authentication-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/uqpay/authentication-api/revisions/cef532a10777/schema)
