v1

latestOpenAPI 3.0.3Lucid2026-07-14155181312.3 KB
Document Picker

Generate Document Picker Token

Generates a token that can be used to embed a document picker for the specified product. Only documents for the specified product are shown in the picker.

post/v1/documents/pickerToken

Request body

product'lucidchart' | 'lucidscale' | 'lucidspark'

Determines which product is used for the document picker. Only documents for this product are shown.

targetOriginstring

The domain that will be used to host the webpage in which the document picker will be embedded. This will be used as the targetOrigin parameter in a call to window.postMessage when the user selects a document.

Example request

{
  "product": "lucidchart",
  "targetOrigin": "https://example.com"
}

Response

OK - with valid token that can be used to embed a document picker.