Download template
get/v1/template/downloadReturns the PDF document for the specified templateId. When the template is created on behalf of a particular sender email, then the download operation can be performed on the same account by specifying the email in the onBehalfOf
.
Note: When form fields are added to a template and the template is downloaded, the form fields will not be included. The original document uploaded by the user will be retained, but the form fields will not be preserved in the downloaded template.
Code snippet
curl -X GET 'https://api.boldsign.com/v1/template/download?templateId=949ebf20-45a8-4a3e-91a9-68e9540e0020' \ -H 'accept: application/json' \ -H 'X-API-KEY: {your-api-key}'
var apiClient = new ApiClient("https://api.boldsign.com", "Your API-KEY"); var templateClient = new TemplateClient(apiClient); var documentStream = templateClient.DownloadTemplate("949ebf20-45a8-4a3e-91a9-68e9540e0020");
import boldsign configuration = boldsign.Configuration( api_key = "YOUR_API_KEY" ) with boldsign.ApiClient(configuration) as api_client: template_api = boldsign.TemplateApi(api_client) template_id = "YOUR_TEMPLATE_ID" download_response =template_api.download(template_id)
const axios = require('axios'); const response = await axios.get('https://api.boldsign.com/v1/template/download', { params: { 'templateId': '949ebf20-45a8-4a3e-91a9-68e9540e0020' }, headers: { 'accept': 'application/json', 'X-API-KEY': '{your API key}' } });
Query Parameters
templateIdstringRequired | The ID of the template to download. |
onBehalfOfstring | The email address of the user that was used to create the template on their behalf. |
Example response
200 Success
Contains the PDF document