---
title: "GET /api/company-documents/{id}"
method: GET
path: "/api/company-documents/{id}"
tags: ["Company Documents"]
---

# GET /api/company-documents/{id}

`GET /api/company-documents/{id}`

Get one document with its permission rows and privacy status. A document the caller cannot see — someone else's private one, or one they archived — answers 404. The body is the document itself, not wrapped in { data, metadata }: both frontends read it that way.

## Path parameters

- `id` string, required

## Response `200`

Default Response

- object
  - `id` string, required
  - `companyId` string, nullable, required
  - `ownerCompanyId` string, nullable, required
  - `name` string, required
  - `documentTypeId` string, nullable, required
  - `fileId` string, nullable, required
  - `fileUrl` string, nullable, required
  - `originalFileUrl` string, nullable, required
  - `fileType` string, nullable, required
  - `fileContentType` string, nullable, required
  - `isPublic` union, required
    - boolean
    - number
  - `type` string, nullable, required
  - `createdAt` string, date-time, nullable, required
  - `updatedAt` string, date-time, nullable, required
  - `permissions` object[], required
    - `documentId` string, required
    - `documentOwnerCompanyId` string, nullable, required
    - `sharedWithCompanyId` string, required
    - `sharedWithCompanyName` string, nullable, required
    - `requestedAt` string, date-time, nullable, required
    - `approvedAt` string, date-time, nullable, required
  - `privacyStatus` object, required
    - `status` 'public' | 'shared' | 'shared_to' | 'shared_by' | 'private' | 'private_requests', required
    - `requests` integer
    - `approvedRequests` integer

## Other responses

- `401` — Default Response
- `403` — Default Response
- `404` — Default Response

## Changes

> 56 revisions in range; 1 not diffed.

- **2026-09-29** `bd9b2edd83c6` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/retraced/apis/api-reference/changes/api/company-documents/:id/get.md)

---

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