---
title: "GET /api/v1/file-views/{spaceId}/download"
method: GET
path: "/api/v1/file-views/{spaceId}/download"
---

# GET /api/v1/file-views/{spaceId}/download

`GET /api/v1/file-views/{spaceId}/download`

## Request

- Base URL: `https://falconer.com` (the document declares no server; this is the origin it was published from)
- URL: `https://falconer.com/api/v1/file-views/{spaceId}/download`
- Auth: none declared

## Path parameters

- `spaceId` integer, required: Space id, from GET /spaces.

## Query parameters

- `path` string: Path relative to the Space root. Pass this or fileNodeId.
- `fileNodeId` string

## Headers

- `x-organization-id` string: Required when using OAuth bearer tokens.

## Response `200`

A URL that downloads the file

- SpaceFileDownload
  - `url` string, required
  - `filename` string, required
  - `expiresAt` string, nullable, required: When a signed url stops working; null for an inline data: url.

## Other responses

- `400`: Bad request, such as a missing parent folder
- `403`: Permission is missing
- `404`: Space not found, or file not found

---

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