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

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

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

Retrieves the path information (the hierarchy from the root folder) for the requested document.

By default, Amazon WorkDocs returns a maximum of 100 levels upwards from the requested document and only includes the IDs of the parent folders in the path. You can limit the maximum number of levels. You can also request the names of the parent folders.

## Path parameters

- `DocumentId` string, required

## Query parameters

- `limit` integer
- `fields` string
- `marker` string

## Headers

- `Authentication` string, password

## Response `200`

Success

- GetDocumentPathResponse
  - `Path` object — The path information.
    - `Components` ResourcePathComponent[] — The components of the resource path.
      - `Id` string — The ID of the resource path.
      - `Name` string, password — The name of the resource path.

## Other responses

- `480` — EntityNotExistsException
- `481` — UnauthorizedOperationException
- `482` — UnauthorizedResourceAccessException
- `483` — FailedDependencyException
- `484` — ServiceUnavailableException

---

[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)
