---
title: "Download a file"
method: GET
path: "/v1/files/{file_id}/content"
tags: ["files"]
---

# Download a file

`GET /v1/files/{file_id}/content`

## Request

- Base URL: `https://api.niubai.vip` (the document declares no server; this is the origin it was published from)
- URL: `https://api.niubai.vip/v1/files/{file_id}/content`
- Auth: HTTP bearer

The bytes of an output, preview or uploaded document. The URL comes signed (`token`) from a response; no API key is needed and the link expires.

## Path parameters

- `file_id` string, required

## Query parameters

- `token` string, required

## Response `200`

Successful Response

## Other responses

- `400`: error.code is one of: invalid_request
- `401`: error.code is one of: unauthorized
- `404`: error.code is one of: not_found

---

[API](https://skmtc.dev/niubai/apis/pdf-edit-api-gateway.md) · [All operations](https://skmtc.dev/niubai/apis/pdf-edit-api-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/niubai/apis/pdf-edit-api-gateway/revisions/1ad0ce16ca04?raw)
