---
title: "Get/Export Document"
method: GET
path: "/v1/accounts/me/documents/{id}"
tags: ["Document Access"]
---

# Get/Export Document

`GET /v1/accounts/me/documents/{id}`

## Request

- Base URL: `https://api.lucid.co`
- URL: `https://api.lucid.co/v1/accounts/me/documents/{id}`
- Auth: one of:
  - HTTP bearer
  - OAuth 2
    - Authorization code: `https://lucid.app/oauth2/authorize`
    - Token URL: `https://api.lucid.co/oauth2/token` scopes: `lucid.document.content:admin.readonly`, `lucidchart.document.content:admin.readonly`, `lucidscale.document.content:admin.readonly`, `lucidspark.document.content:admin.readonly`

Retrieves information about a document or exports it as an image for an account owner or document admin. The document must belong to the requesting admin's account. A direct share is not required. Authenticate with an admin OAuth2 scope or a `DocumentAdmin` API key grant.

**Get Document:** Returns document metadata, including owner information.

**Export Document:** Exports a given document in a specified image format. When exporting oversized images, the resolution may be automatically scaled down to enable performant API requests.

## Path parameters

- `id` string, uuid, required

## Query parameters

- `page` number
- `pageId` string
- `crop` string
- `includePageFill` boolean

## Headers

- `Accept` string

## Response `200`

OK with Document resource containing information about the requested document or the binary data in the response body for exports. The Accept header specifies the type of image for exports.

- Document
  - `documentId` string, uuid, required: Unique ID of the document
  - `title` string, required: Title of the document
  - `editUrl` string, uri, required: Link to edit the document
  - `viewUrl` string, uri, required: Link to view the document
  - `version` integer, required: Most recent version
  - `pageCount` integer, required: Number of pages within the document
  - `canEdit` boolean, required: If requesting user can edit the document
  - `created` string, date-time, required: Date and time of when the document was created
  - `creatorId` integer, required: ID of user who created and owns the document
  - `lastModified` string, date-time, required: Date and time of when the document was last modified
  - `lastModifiedUserId` integer, required: ID of user who most recently modified the document
  - `customAttributes` CustomAttribute[], required: List of any custom attributes belonging to the document. Populated for Enterprise Accounts only.
    - `type` 'singleLineText' | 'multiLineText' | 'singleSelectDropdown' | 'multiSelectDropdown' | 'webLink' | 'numericalRange' | 'hierarchyDropdown', required: The custom attribute type
    - `name` string, nullable: Title of the custom attribute. hierarchyDropdown attributes do not have names.
    - `value` union: The value assigned to the custom attribute. The type of this value is determined by the Attribute Type.
      - string
      - number
      - union[]
        - union
          - DataPair: Object representing a key-value pair of data.
            - `name` string, required: Custom data key
            - `value` string, nullable, required: Custom data value
          - string
  - `customTags` string[], required: List of any custom tags assigned to the document
  - `product` 'lucidchart' | 'lucidscale' | 'lucidspark', required: The Lucid Suite product that a document was created in.
  - `status` string, nullable: Current assigned status of the document
  - `classification` string, nullable: Current assigned classification of the document
  - `classificationId` string, uuid, nullable: Current assigned classification ID of the document.
  - `trashed` string, date-time, nullable: If defined, the timestamp when the document was moved to the trash
  - `parent` integer, nullable: ID of the parent folder
  - `repository` Repository
    - `repositoryId` string: the ID of the repository
  - `accountId` integer, nullable, required: ID of Lucid account that owns the document
  - `owner` DocumentOwner
    - `id` number: Id of either the user or the account, depending on the type of the document user resource.
    - `type` string: Specifies if the owner resource is referring to a user or an account. Value will be either "user" or "account".
    - `name` string: Full name of the user that owns this document. This field is excluded if this document is owned by an account.

## Other responses

- `400`: Bad Request. More than one page and/or pageId was provided for export.
- `403`: Forbidden. The app making the request does not have permission to the document, or if the document has been deleted or does not exist.
- `404`: Not Found. The specified page or pageID could not be found for export.
- `406`: Not Acceptable. The specified image type is not supported for export.
- `429`: Too Many Requests. If the account makes more than 75 requests in 5 seconds.

## Changes

- **2026-11-03** `9c2c917ec59c`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/lucid/apis/lucid-rest-api/changes/v1/accounts/me/documents/:id/get.md)

---

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