---
title: "Get Company File"
method: GET
path: "/api/v1/files/{fileId}"
tags: ["Company Files", "Public API"]
---

# Get Company File

`GET /api/v1/files/{fileId}`

Downloads a company file by its ID. The response body is the raw file content. The `Content-Type` header reflects the file's MIME type and `Content-Disposition` is set to `attachment` with the original filename. Access is permitted if the file or its category is shared with employees, shared directly with the requesting user, or the user has view permission on the file section.

OAuth Scopes: company_file

## Path parameters

- `fileId` integer, required

## Response `200`

The raw file content. The Content-Type header reflects the file's MIME type.

## Other responses

- `403` — The API user does not have permission to access this file.
- `404` — No file exists with the given ID.

---

[API](https://skmtc.net/bamboohr/apis/bamboohr-api.md) · [All operations](https://skmtc.net/bamboohr/apis/bamboohr-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bamboohr/bamboohr-api/revisions/19ebf391a399/schema)
