> This page is for Developer Documentation.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.benchling.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.benchling.com/_mcp/server.

# Get DocumentPartUnstructuredTable by ID

GET https://{tenant_name}.benchling.com/api/v3/document-part-unstructured-table/{document_part_unstructured_table_id}

Get a single DocumentPartUnstructuredTable by ID.

Reference: https://docs.benchling.com/docs/api/benchling-api/document-part-unstructured-table/get

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Path parameters

- `document_part_unstructured_table_id` (string, required) — ID of the DocumentPartUnstructuredTable.

### Query parameters

- `returning` (list of string, optional) — Comma-separated list of top-level fields to include in each returned item. Cannot overlap with omit.
- `omit` (list of string, optional) — Comma-separated list of top-level fields to omit from each returned item. Cannot overlap with returning.

### Headers

- `EARLY-ACCESS` (string, optional) — Set to true to access beta operations via /api/v3.

## Response

### 200

OK

- `__typename` (string, optional)
- `caption` (Caption, optional, nullable) — Specifies the rich text caption displayed with the table. Null if the table has no caption.
- `columnDefinitions` (list of TableColumnDefinition, optional) — Lists column definitions for the table.
- `createdAt` (string, optional) — Timestamp inherited from the document content backing this part. For entry and document content, this can reflect when the containing document was created, not when the DocumentPart identifier was created.
- `id` (string, optional) — Identifies the document part.
- `indentation` (integer, optional) — Specifies the indentation level for this content within the document.
- `isEvaluated` (boolean, optional) — Specifies whether formula evaluation has been applied to the table.
- `modifiedAt` (string, optional) — Specifies when this document part was last modified.
- `modifier` (PrincipalRef, optional, nullable) — Identifies who last modified this document part.
- `name` (string, optional) — Specifies the display name of the table.
- `rowCount` (integer, optional) — Specifies the number of rows in the table.
- `rows` (string, optional) — Lists rows in the table, in row order.
- `versionMetadata` (DocumentLikeVersionMetadata, optional) — Specifies version metadata for the parent document.

## Errors

### 400 Bad Request Error

Bad Request

- `detail` (GeneralErrorDetail, required, nullable)
- `instance` (string, required)
- `status` (integer, required)
- `title` (string, required, nullable)
- `type` (string, required)
- `invalidId` (string, optional)

### 403 Forbidden Error

Forbidden

- `detail` (GeneralErrorDetail, required, nullable)
- `instance` (string, required)
- `status` (integer, required)
- `title` (string, required, nullable)
- `type` (string, required)
- `invalidId` (string, optional)

### 404 Not Found Error

Not Found

- `detail` (GeneralErrorDetail, required, nullable)
- `instance` (string, required)
- `status` (integer, required)
- `title` (string, required, nullable)
- `type` (string, required)
- `invalidId` (string, optional)

### 429 Too Many Requests Error

Too Many Requests

- `detail` (TooManyRequestsErrorDetail, required, nullable)
- `instance` (string, required)
- `status` (integer, required)
- `title` (string, required, nullable)
- `type` (string, required)
- `invalidId` (string, optional)

### 500 Internal Server Error

Internal Server Error

- `detail` (InternalServerErrorDetail, required, nullable)
- `instance` (string, required)
- `status` (integer, required)
- `title` (string, required, nullable)
- `type` (string, required)
- `errorId` (string, optional)

## Types

### Caption

A rich text caption attached to a piece of document content, such as a table or an attachment.

- `__typename` (string, optional)
- `formats` (list of TextFormat, optional)
- `links` (list of LinkSpan, optional)
- `mentions` (list of Mention, optional)
- `text` (string, optional)

### TableColumnDefinition

Specifies a column definition within an unstructured table.

- `__typename` (string, optional)
- `isLocked` (boolean, optional) — Specifies whether the column width is locked against resizing.
- `name` (string, optional) — Specifies the column display name.
- `width` (integer, optional, nullable) — Specifies the column width in pixels. Defaults to 100 when unset.

### PrincipalRef

- `__typename` (string, optional)
- `id` (string, optional)

### DocumentLikeVersionMetadata

Version metadata for a document such as an entry, template, or subtemplate. Identifies a specific content revision and records when that revision was produced. Use this to detect changes, pin a revision, or reference a particular version without loading the full version record.

- `__typename` (string, optional)
- `createdAt` (string, optional, nullable) — Specifies when this version was created. Versions are immutable; this is the time the parent document was last edited to produce this revision.
- `versionId` (string, optional) — Identifies this version of the document.

### GeneralErrorDetail

- string
- map from string to any

### TooManyRequestsErrorDetail

- string
- map from string to any

### InternalServerErrorDetail

- string
- map from string to any

### TextFormat

Specifies inline styling applied to a character range within rich text.

- `__typename` (string, optional)
- `backgroundColor` (string, optional, nullable) — Specifies the background color applied to the character range, when set.
- `end` (integer, optional) — Specifies the exclusive end index of the character range within the plain-text body.
- `foregroundColor` (string, optional, nullable) — Specifies the text color applied to the character range, when set.
- `properties` (list of enum, optional) — Specifies the character style properties applied to the range: bold, italic, underline, strikethrough, subscript, superscript, and monospace.
  - Allowed values: `BOLD`, `ITALIC`, `UNDERLINE`, `STRIKETHROUGH`, `SUBSCRIPT`, `SUPERSCRIPT`, `MONOSPACE`
- `start` (integer, optional) — Specifies the inclusive start index of the character range within the plain-text body.

### LinkSpan

Specifies a hyperlink applied to a character range within rich text content.

- `__typename` (string, optional)
- `end` (integer, optional) — Specifies the exclusive end index of the character range within the plain-text body.
- `start` (integer, optional) — Specifies the inclusive start index of the character range within the plain-text body.
- `url` (string, optional) — Specifies the URL of the hyperlink.

### Mention

Represents an inline mention of another Benchling item within text content.

- `__typename` (string, optional)
- `itemId` (string, optional) — Identifies the referenced Benchling item.
- `position` (integer, optional) — Specifies the zero-based insertion index within the plain-text body where this mention appears. Mentions do not occupy characters in the plain-text body for purposes of format range start and end positions.

## Examples

**Response**

```json
{
  "__typename": "string",
  "caption": {
    "__typename": "string",
    "formats": [
      {
        "__typename": "string",
        "backgroundColor": null,
        "end": 1,
        "foregroundColor": null,
        "properties": [
          "BOLD"
        ],
        "start": 1
      }
    ],
    "links": [
      {
        "__typename": "string",
        "end": 1,
        "start": 1,
        "url": "string"
      }
    ],
    "mentions": [
      {
        "__typename": "string",
        "itemId": "string",
        "position": 1
      }
    ],
    "text": "string"
  },
  "columnDefinitions": [
    {
      "__typename": "string",
      "isLocked": true,
      "name": "string",
      "width": null
    }
  ],
  "createdAt": "string",
  "id": "string",
  "indentation": 1,
  "isEvaluated": true,
  "modifiedAt": "string",
  "modifier": {
    "__typename": "string",
    "id": "string"
  },
  "name": "string",
  "rowCount": 1,
  "rows": "string",
  "versionMetadata": {
    "__typename": "string",
    "createdAt": null,
    "versionId": "string"
  }
}
```

**SDK Code**

```python
import requests

url = "https://{tenant_name}.benchling.com/api/v3/document-part-unstructured-table/document_part_unstructured_table_id"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://{tenant_name}.benchling.com/api/v3/document-part-unstructured-table/document_part_unstructured_table_id';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```