BoldSign Site Logo

Redirect to signing page from your app

Fill in for the Demo
Info-icon Try filling out the below form details, sending the document, and signing it. This will provide you with a better understanding of how the signing process works.
ID of a template created in BoldSign Web App
Code Reference The embedded sign request allows the signers to sign the document within your website or mobile app using an iFrame, popup window, or new tab.
Code flow:
Step 1
On the form submission, create the new document from the template using Send document from Template API. It will return the document Id which we can use to generate the embedded signing link.
curl -X 'POST' \ 'https://api.boldsign.com/v1/template/send?templateId=9506074e-fe2d-4328-a03e-be1cea9bc6ad' \
        -H 'accept: application/json' \
        -H 'X-API-KEY: { your API key }' \
        -H 'Content-Type: application/json;odata.metadata=minimal;odata.streaming=true' \
        -F 'DisableEmails=true'
        -d '{}` 
                    
Step 2
Use the following code by updating the received document ID from the previous step to generate the embedded signing URL.
curl -X GET 'https://api.boldsign.com/v1/document/getEmbeddedSignLink?documentId={ document Id }&signerEmail={ Enter Signer Email }&redirectUrl={ redirect URL to app once signed }' \
         -H 'X-API-KEY: { your API key }' \
                    
Step 3
Open the generated Embedded URL on browser's new tab. If you're on a Unix-like system (such as Linux or macOS), you can use the open command to open a URL in your default browser:
open { generated embedded signing URL }
                    
If you're on a Windows system, you can use the start command:
start { generated embedded signing URL }