BoldSign AI Assistant
Chat with the BoldSign AI AssistantCreate embedded cloned template
The embedded cloned template link allows users to prepare the cloned templates on your website or mobile app using an iFrame, popup window, or a new tab.
Clone Template
Cloning creates a new template using an existing template’s data, but assigns it a new template ID. Form field values can be included in the cloned template by setting IncludeFormFieldValues to true. This API generates an embedded link for the newly cloned template.
Create embedded cloned template link
post/v1-beta/template/createEmbeddedCloneUrlThe embedded cloned template link has additional properties to customize the embedded process.
Code snippet
curl -X 'POST' \
'https://api.boldsign.com/v1-beta/template/createEmbeddedCloneUrl?templateId=be5cbb00-xxxx-xxxx-xxxx-bafa580exxxx' \
-H 'accept: application/json' \
-H 'X-API-KEY: {your API Key}' \
-H 'Content-Type: multipart/form-data' \
-F 'ViewOption=PreparePage' \
-F 'ShowSaveButton=true' \
-F 'ShowCreateButton=true' \
-F 'ShowPreviewButton=true' \
-F 'ShowNavigationButtons=true' \
-F 'LinkValidTill=DateTime.Now.AddDays(1)' \
-F 'IncludeFormFieldValues=false' \
-F 'Locale=EN' \
-F 'ShowToolbar=false' \
-F 'ShowTooltip=false' \
var apiClient = new ApiClient("https://api.boldsign.com", "Your_API_Key");
var templateClient = new TemplateClient(apiClient);
var embeddedCloneTemplateRequest = new EmbeddedCloneTemplateRequest()
{
TemplateId = "YOUR_TEMPLATE_ID",
ViewOption = PageViewOption.PreparePage,
ShowSaveButton = true,
ShowPreviewButton = true,
ShowNavigationButtons = true,
LinkValidTill = DateTime.Now.AddDays(1),
IncludeFormFieldValues = false,
Locale = Locales.EN,
ShowCreateButton = true,
ShowToolbar = false,
ShowTooltip = false,
};
var embeddedClonedTemplate = templateClient.GetEmbeddedClonedTemplateUrl(embeddedCloneTemplateRequest);
var templateEmbedUrl = embeddedClonedTemplate.embedUrl;
Query parameters
| templateIdstringRequired | The ID of the template to clone. |
Request body
| RedirectURLstring | The redirect URI is to be redirected after the clone template process is completed. The string should be in URI format. |
ViewOptionstring | Configures the initial view page to be loaded from the generated URL. The FillingPage is used to customize roles, enforce authentication etc. The PreparePage is used to configure form fields for the roles. Either PreparePage or FillingPage. Defaults to PreparePage. |
ShowSaveButtonboolean | Controls the visibility of the Defaults to true. |
ShowCreateButtonboolean | Controls the visibility of the Defaults to true. |
ShowPreviewButtonboolean | Controls the visibility of the Defaults to true. |
ShowNavigationButtonsboolean | Controls the visibility of the Defaults to true. |
LinkValidTillstring | Configures the expiration for the generated URL. A maximum of 180 days can be assigned. The string should be in date-time format. Defaults valid time is 1 hour. |
IncludeFormFieldValuesboolean | This property specifies whether form field values should be included when cloning the template. If set to true, the cloned template will contain the form field data; if set to false, the form fields will be excluded. Defaults to false. |
| Localestring | By default, while opening the embedded cloned template link, all the static contents available in the page will be loaded in the English language. This property is used to load the contents with different languages. The supported languages are EN(English), FR(French), NO(Norwegian), DE(German), ES(Spanish), BG(Bulgarian), CS(Czech), DA(Danish), IT(Italian), NL(Dutch), PL(Polish), PT(Portuguese), RO(Romanian), RU(Russian), and SV(Swedish) |
ShowToolbarboolean | Controls the visibility of the toolbar at the top of the document editor. Defaults to false. |
ShowTooltipboolean | To control the visibility of the Defaults to false. |
| OnBehalfOfstring | The email address of the user that was used to create the template on their behalf. |
Example response
{
"templateId": "7a18c3y10...",
"embedUrl": "https://app.boldsign.com/document/embed/?templateId=7a18c3y10..."
}