---
title: "Returns the specified company file as PDF."
method: GET
path: "/companies/{companyId}/files/{fileId}/pdf"
tags: ["companyFiles"]
---

# Returns the specified company file as PDF.

`GET /companies/{companyId}/files/{fileId}/pdf`

## Request

- Base URL: `https://api.awork.com/api/v1`
- URL: `https://api.awork.com/api/v1/companies/{companyId}/files/{fileId}/pdf`
- Auth: HTTP bearer

<Check title="Required Permissions" icon="key">Any authenticated user.</Check>

## Path parameters

- `companyId` string, uuid, required
- `fileId` string, uuid, required

## Query parameters

- `inline` boolean

## Response `200`

OK

- string, binary

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not Found

## Changes

- **2026-09-20** `5332322ffca3`: 4 info
  - api operation id `companyFiles_GetCompanyFileContent` removed and replaced with `companyFiles_GetFilesPdfByCompanyNameAndCompanyIdAndFileId`
  - added the non-success response with the status `400`
  - added the non-success response with the status `401`
  - added the non-success response with the status `404`
- **2026-09-17** `1556e0487867`: 1 warning, 1 info
  - deleted the `header` request parameter `Authorization`
  - the endpoint scheme security `oauth2` was added to the API
- **2026-09-12** `8e46cf415581`: 1 info
  - api operation id `GetCompanyFileContent` removed and replaced with `companyFiles_GetCompanyFileContent`

[Operation history](https://skmtc.dev/awork-io/apis/api-v1-reference/changes/companies/:companyId/files/:fileId/pdf/get.md)

---

[API](https://skmtc.dev/awork-io/apis/api-v1-reference.md) · [All operations](https://skmtc.dev/awork-io/apis/api-v1-reference/llms.txt) · [OpenAPI document](https://skmtc.dev/awork-io/apis/api-v1-reference/revisions/81151fac7e79?raw)
