• Blog

Use BoldSign API to Download Signed Documents Effortlessly

how-to-download-an-esigned-document-via-api-og

Table of Contents

Sign Docs 3x Faster

Send, sign, and manage documents securely and efficiently.

Whether you’re initiating a transaction, appending your signature, or simply monitoring the progress as a CC’d recipient, accessing your finalized documents should be seamless and hassle-free. Today, we’ll explore how to download a completed eSignature document using BoldSign’s API. Let’s get started.

Initiating Document Download Using BoldSign API

The first step in downloading a completed eSignature document via the BoldSign API is to initiate the download request. This requires the document ID of the specific document you wish to download. BoldSign supports REST API, which means you can use any server-side programming language to call the BoldSign APIs. Let’s look at how to initiate the download process using different programming languages.

Code Snippets


curl -X GET 'https://api.boldsign.com/v1/document/download?documentId={Your document Id}' 
-H 'accept: application/json' 
-H 'X-API-KEY: {your-api-key}'
    

var apiClient = new ApiClient("https://api.boldsign.com", "Your API-KEY");
var documentClient = new DocumentClient(apiClient);
var documentStream = documentClient.DownloadDocument("{Your document Id}");
    

import requests
url = "https://api.boldsign.com/v1/document/download?documentId={Your document Id}"
payload={}
headers = {
  'accept': 'application/json',
  'X-API-KEY': '{your API key}'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
    

const axios = require('axios');
const response = axios.get('https://api.boldsign.com/v1/document/download', {
    params: {
        'documentId': '{Your document Id}'
    },
    responseType: "stream",
    headers: {
        'accept': 'application/json',
        'X-API-KEY': '{your API key}'
    }
});
    

<?php
require_once "vendor/autoload.php";
use GuzzleHttp\Client;
use GuzzleHttp\Psr7\Request;
$client = new Client();
$headers = [
  'accept' => 'application/json',
  'X-API-KEY' => '{your-api-key}'
];
$request = new Request('GET', 'https://api.boldsign.com/v1/document/download?documentId={Your document Id}', $headers);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();
    

Handling the Document Stream

After you’ve initiated the document download request, BoldSign’s API returns the document stream, which contains the completed eSignature document. You can then process the document stream depending on your application’s requirements. For instance, you may choose to save the document to a local file system, integrate it into another system, or display it to the user for further action.

Conclusion

In conclusion, downloading completed eSignature documents via the BoldSign API is convenient. By leveraging BoldSign’s API, you can seamlessly integrate document retrieval capabilities into your applications, streamlining workflow processes and enhancing the user experience.

Whether you’re a developer looking to integrate eSignature functionalities or a business seeking to streamline document handling, BoldSign’s API provides the necessary tools and resources to achieve your goals. Refer to the BoldSign API documentation to get started with integrating BoldSign APIs into your application.

Begin your 30-day, free BoldSign trial today to see the full potential of BoldSign. We highly value your feedback, so please share your thoughts with us in the comments section. For any inquiries or to explore our services further, don’t hesitate to schedule a demo or reach out to our dedicated support team through our support portal. We’re here to assist you every step of the way.

Like what you see? Share with a friend.

Latest blog posts

Introducing a Free Tool to Add Page Numbers to PDF Online

Introducing a Free Tool to Add Page Numbers to PDF Online

Add page numbers to PDF online free with BoldSign. No sign up, no upload, no watermarks. Easily and securely number your PDF pages directly from your browser.

New Free eBook: Choose the Right Electronic Signature

New Free eBook: Choose the Right Electronic Signature

Download BoldSign’s free eBook to evaluate eSignature platforms with confidence—covering compliance, security, signer experience, integrations, and scalability.

Support World Central Kitchen: Turn BoldSign Feedback into Lifesaving Meals

Support World Central Kitchen: Turn BoldSign Feedback into Lifesaving Meals

Leave a review of BoldSign and unlock a $20 donation to World Central Kitchen. Make an impact in just five minutes!

Sign up for your free trial today!

  • tick-icon
    30-day free trial
  • tick-icon
    No credit card required
  • tick-icon
    30-day free trial
  • tick-icon
    No credit card required
Sign up for BoldSign free trial