Download document using BoldSign API

BoldSign allows you to download the document that has been sent for signature. This document can be downloaded by the signers, senders, and CC recipients of the document.

Follow these steps to successfully download the document you have sent

To initiate the document download, you'll need to use the document ID of the specific document you want to download.

Here are example codes you can use to perform the download:

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 boldsign

configuration = boldsign.Configuration(host = "https://api.boldsign.com", api_key = "YOUR_API_KEY")

with boldsign.ApiClient(configuration) as api_client:

    document_api = boldsign.DocumentApi(api_client)
    
    document_stream = document_api.download_document(document_id  = "YOUR_DOCUMENT_ID")
<?php require_once "vendor/autoload.php";

use BoldSign\Configuration;
use BoldSign\Api\DocumentApi;

$config = new Configuration();
$config->setHost("https://api.boldsign.com");
$config->setApiKey('YOUR_API_KEY');

$document_api = new DocumentApi($config);

$document_stream = $document_api->downloadDocument($document_id = 'YOUR_DOCUMENT_ID');
ApiClient client = Configuration.getDefaultApiClient();
client.setBasePath("https://api.boldsign.com");
client.setApiKey("YOUR_API_KEY");

DocumentApi documentApi = new DocumentApi(client);	
File documentStream = documentApi.downloadDocument("YOUR_DOCUMENT_ID", null);
import { DocumentApi } from "boldsign"; 

const documentApi = new DocumentApi("https://api.boldsign.com");
documentApi.setApiKey("YOUR_API_KEY");

const documentStream = documentApi.downloadDocument("YOUR_DOCUMENT_ID");

In the provided examples, ensure that you replace the documentId with the actual ID of the document you intend to download.

Upon executing the code, the document will be generated, and you will be able to proceed with downloading it.