Embedding
Our embedding feature lets you integrate our document signing experience into your own application or website. Whether you’re building with React, Preact, Vue, Svelte, Solid, Angular, or using generalized web components, this guide will help you get started with embedding Documenso.Availability
Embedding is currently available for all users on a Teams Plan and above, as well as Early Adopter’s within a team (Early Adopters can create a team for free). Our Platform Plan offers enhanced customization features including:- Custom CSS and styling variables
- Dark mode controls
- The removal of Documenso branding from the embedding experience
How Embedding Works
Embedding with Documenso allows you to handle document signing in two main ways:- Using Direct Templates: Using direct templates you can have an evergreen template that upon completion will create a new document within Documenso.
- Using a Signing Token: A more advanced option for those running rich integrations with Documenso already. Given a recipients signing token you can embed the signing experience in your application rather than direct the recipient to Documenso.
Customization Options
Styling and Theming
Platform customers have access to advanced styling options to customize the embedding experience:- Custom CSS: You can provide custom CSS to style the embedded component:
- CSS Variables: Fine-tune the appearance using CSS variables for colors, spacing, and more:
- Dark Mode Control: Disable dark mode if it doesn’t match your application’s theme:
Supported Frameworks
We support embedding across a range of popular JavaScript frameworks, including:| Framework | Package |
|---|---|
| React | @documenso/embed-react |
| Preact | @documenso/embed-preact |
| Vue | @documenso/embed-vue |
| Svelte | @documenso/embed-svelte |
| Solid | @documenso/embed-solid |
| Angular | @documenso/embed-angular |
| Web Components | @documenso/embed-webcomponent |
Embedding with Direct Templates
Instructions
To get started with embedding using a Direct Template we will need the URL segment which is also referred to as the token for the template. You can find your URL/Token by performing the following steps:- Navigate to your team’s templates within Documenso
- Click on the direct link template you want to embed
https://stg-app.documenso.com/d/-WoSwWVT-fYOERS2MI37k
For the above url the token is -WoSwWVT-fYOERS2MI37k
- Provide the token to the
EmbedDirectTemplatecomponent in your frameworks SDK
Converting a regular template to a direct link template If you don’t currently have any direct link templates you can easily create one by selecting the “Direct Link” option within the actions dropdown on the templates table. This will show a dialog which will ask you to configure which recipient should be used as the direct link signer.
Embedding with Signing Tokens
To embed the signing process for an ordinary document, you’ll need a document signing token for the recipient. This token provides the necessary access to load the document and facilitate the signing process securely.Instructions
- Retrieve the signing token for the recipient document you want to embed
With the signing url on our clipboard we can extract the token the same way we did for the direct link template.
So https://stg-app.documenso.com/sign/lm7Tp2_yhvFfzdeJQzYQF will become lm7Tp2_yhvFfzdeJQzYQF
- Provide the token to the
EmbedSignDocumentcomponent in your frameworks SDK

