How to retrieve document information using BoldSign API?
When a sender shares a document with a signer, either the sender or the signer might want to access specific information about the document, such as the value of the form fields, signer name, signer email, etc. BoldSign offers an API that allows users to retrieve information about a document.
Here are code examples in various programming languages demonstrating how to retrieve document information using the BoldSign API:
Code snippet
curl -X 'GET' \ 'https://api.boldsign.com/v1/document/properties?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 documentInformation = documentClient.GetProperties("{Your document Id}"); Console.WriteLine(documentInformation);
import requests url = "https://api.boldsign.com/v1/document/properties?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'); let config = { method: 'get', maxBodyLength: Infinity, url: 'https://api.boldsign.com/v1/document/properties?documentId={Your document Id}', headers: { 'accept': 'application/json', 'X-API-KEY': '{Your API Key}' } }; axios.request(config) .then((response) => { console.log(JSON.stringify(response.data)); }) .catch((error) => { console.log(error); });
In the provided examples, make sure to replace documentId
with the actual ID of the document for which you want to retrieve information. After executing the above code snippet, you will receive the desired document information using the API response.