Overview
The embed package editor feature allows you to integrate our package editor directly into your web application. This provides a seamless experience for users, enabling them to modify and template packages before they are sent without leaving your platform.Package state
When embedding the package editor, it is recommended to set the package state to either add or draft.
Add add
By creating the package in an add state the package editor will guide the user through the package properties and templating the documents just like the native add package experience.
Draft draft
If you are adding all the signers and documents or disabling the editing of the package properties,
then creating the package in a draft state with focusTemplating embed option is the preferred approach.
Steps
1
Add package
When you want to embed the package editor, you have to create a package with
generateEditLink and the embedded package option set to true.Request
Response
Embed options
You can customize the embedded package editor experience by setting additionalembed options.2
Embed edtior
To embed the package edtior in an iframe, you need to use the
editLink.link provided in the add package response or by calling the Packages link API endpoint directly.3
Process embed messages
When embedding the package editor, you may want to handle certain events such as when the package is sent by the user.
You can achieve this by listening for messages from the iframe.See the Embed messaging guide for more information.
Redirecting
If your workflow does not allow for embedding viaiframe you can optionally redirect your users to the package edit link
and have it redirect back to your site by setting the options.embed.returnUrl to a valid URL during the call to add package.
Request