---
title: "Get the public URL for a file in Ficheiros Publicos"
method: POST
path: "/api/multidrive/public-url"
tags: ["MultiDrive - Internal Storage"]
---

# Get the public URL for a file in Ficheiros Publicos

`POST /api/multidrive/public-url`

Returns the permanent public URL for a file in 'Ficheiros Publicos'.
Only works for files stored in the public multidrive bucket.

## Headers

- `x-api-token` string, nullable

## Request body

- DownloadRequest
  - `path` string, required
  - `expires_in` integer

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

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