get
https://api.lucid.co/embeds
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.
| Property | Type | Description |
|---|---|---|
| type | String | "LucidEmbedEvent" |
| event | String | "EmbedCreated" |
| documentId | UUID | ID of the selected document. |
| embedId | String | ID of the newly created document embed. |
| signature | String | Signature of the newly created document embed. |
The SettingsClosed event
Fired when the embed settings are updated by the user.
| Property | Type | Description |
|---|---|---|
| type | String | "LucidEmbedEvent" |
| event | String | "SettingsClosed" |
| settingsUpdated | Boolean | true if the user changed the embed settings. |
The OpenCustomSettings event
Fired when the "Settings for
| Property | Type | Description |
|---|---|---|
| type | String | "LucidEmbedEvent" |
| event | String | "OpenCustomSettings" |
401Unauthorized. The token is missing or invalid.
403Forbidden. The access to the embed is forbidden.
404Not Found. The embed id is not found.