---
title: "Get a file download URL"
method: GET
path: "/drive/{id}/download-url"
tags: ["Drive"]
---

# Get a file download URL

`GET /drive/{id}/download-url`

## Request

- Base URL: `https://faivelo.com/api/v1`
- URL: `https://faivelo.com/api/v1/drive/{id}/download-url`
- Auth: HTTP bearer

Returns a short-lived presigned URL to download a Drive file by its id (from the list endpoint). The URL points at the raw file content and works without authentication until it expires. Requires scope `drive:read`.

## Path parameters

- `id` string, required

## Query parameters

- `disposition` 'attachment' | 'inline'

## Response `200`

Download URL

- object
  - `success` boolean
  - `data` DriveDownloadUrl: A short-lived presigned download URL for a Drive file
    - `url` string: Presigned URL; works without authentication until it expires
    - `name` string
    - `mimeType` string, nullable
    - `sizeBytes` integer

## Other responses

- `401`: Missing or invalid API key
- `402`: The account's plan does not include the API (`plan_required`)
- `403`: The key lacks the required scope
- `404`: Resource not found
- `429`: Rate limit exceeded

---

[API](https://skmtc.dev/faivelo/apis/faivelo-api.md) · [All operations](https://skmtc.dev/faivelo/apis/faivelo-api/llms.txt) · [OpenAPI document](https://skmtc.dev/faivelo/apis/faivelo-api/revisions/a7413ddea5d1?raw)
