---
title: "GET /api/v1/documents/{DocumentId}"
method: GET
path: "/api/v1/documents/{DocumentId}"
---

# GET /api/v1/documents/{DocumentId}

`GET /api/v1/documents/{DocumentId}`

Retrieves details of a document.

## Path parameters

- `DocumentId` string, required

## Query parameters

- `includeCustomMetadata` boolean

## Headers

- `Authentication` string, password

## Response `200`

Success

- GetDocumentResponse
  - `Metadata` object — The metadata details of the document.
    - `Id` string — The ID of the document.
    - `CreatorId` string — The ID of the creator.
    - `ParentFolderId` string — The ID of the parent folder.
    - `CreatedTimestamp` string, date-time — The time when the document was created.
    - `ModifiedTimestamp` string, date-time — The time when the document was updated.
    - `LatestVersionMetadata` object — The latest version of the document.
      - `Id` string — The ID of the version.
      - `Name` string, password — The name of the version.
      - `ContentType` string — The content type of the document.
      - `Size` integer — The size of the document, in bytes.
      - `Signature` string — The signature of the document.
      - `Status` 'INITIALIZED' | 'ACTIVE' — The status of the document.
      - `CreatedTimestamp` string, date-time — The timestamp when the document was first uploaded.
      - `ModifiedTimestamp` string, date-time — The timestamp when the document was last uploaded.
      - `ContentCreatedTimestamp` string, date-time — The timestamp when the content of the document was originally created.
      - `ContentModifiedTimestamp` string, date-time — The timestamp when the content of the document was modified.
      - `CreatorId` string — The ID of the creator.
      - `Thumbnail` object — The thumbnail of the document.
      - `Source` object — The source of the document.
    - `ResourceState` 'ACTIVE' | 'RESTORING' | 'RECYCLING' | 'RECYCLED' — The resource state.
    - `Labels` SharedLabel[] — List of labels on the document.
  - `CustomMetadata` object — The custom metadata on the document.

## Other responses

- `480` — EntityNotExistsException
- `481` — UnauthorizedOperationException
- `482` — UnauthorizedResourceAccessException
- `483` — InvalidArgumentException
- `484` — FailedDependencyException
- `485` — ServiceUnavailableException
- `486` — InvalidPasswordException

---

[API](https://skmtc.net/aws/apis/workdocs.md) · [All operations](https://skmtc.net/aws/apis/workdocs/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/workdocs/versions/8a533af4e1ef/schema)
