---
title: "Retrieve tabs and folders by document ID and workspace or version or microversion ID."
method: GET
path: "/documents/d/{did}/{wvm}/{wvmid}/contents"
tags: ["Document"]
---

# Retrieve tabs and folders by document ID and workspace or version or microversion ID.

`GET /documents/d/{did}/{wvm}/{wvmid}/contents`

## Request

- Base URL: `https://api.onshape.com/api/v17`
- URL: `https://api.onshape.com/api/v17/documents/d/{did}/{wvm}/{wvmid}/contents`
- Auth: OAuth 2 (authorization code, authorization URL `/oauth/authorize`, token URL `/oauth/token`, scopes: `OAuth2Read`) and HTTP basic

Returns information on tabs and folders in the document.

## Path parameters

- `did` string, required
- `wvm` 'w' | 'v' | 'm', required
- `wvmid` string, required

## Query parameters

- `linkDocumentId` string
- `elementType` 'PARTSTUDIO' | 'ASSEMBLY' | 'DRAWING' | 'FEATURESTUDIO' | 'BLOB' | 'APPLICATION' | 'TABLE' | 'BILLOFMATERIALS' | 'VARIABLESTUDIO' | 'PUBLICATIONITEM' | 'UNKNOWN'
- `elementId` string
- `withZipContents` boolean

## Response `default`

default response

---

[API](https://skmtc.dev/onshape/apis/onshape-rest-api.md) · [All operations](https://skmtc.dev/onshape/apis/onshape-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/onshape/apis/onshape-rest-api/revisions/a12d3ade22dd?raw)
