These docs are for v1.0. Click to read the latest docs for v1.3.

Embed Viewer

Document Embedding Event

Below is a list of possible events via postMessage sent to the parent window:

The EmbedCreated event

Fired when a new embed is created by the user.

PropertyTypeDescription
typeString"LucidEmbedEvent"
eventString"EmbedCreated"
documentIdUUIDID of the selected document.
embedIdStringID of the newly created document embed.
signatureStringSignature of the newly created document embed.

The SettingsClosed event

Fired when the embed settings are updated by the user.

PropertyTypeDescription
typeString"LucidEmbedEvent"
eventString"SettingsClosed"
settingsUpdatedBooleantrue if the user changed the embed settings.

The OpenCustomSettings event

Fired when the "Settings for " button is clicked by the user.

PropertyTypeDescription
typeString"LucidEmbedEvent"
eventString"OpenCustomSettings"
Query Params
string
required
Headers
string
required
Defaults to 1
Responses

401

Unauthorized. The token is missing or invalid.

403

Forbidden. The access to the embed is forbidden.

404

Not Found. The embed id is not found.

Language
Credentials
OAuth2
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
text/html