Send document from draft
post/v1-beta/document/draftSendThis API endpoint converts a draft document to in-progress status and sends it for signature. In BoldSign, a draft document is one that has been created but not yet sent to recipients.
To use this endpoint, you'll need to provide the document ID of your draft document. The API will then initiate the sending process and return the same document ID, which you can use to track the document's progress.
This endpoint performs similar validations as the document send API. If any information is incomplete or incorrectly configured, you'll receive an error similar to those encountered with the document send API.
Code snippet
curl -X POST 'https://api.boldsign.com/v1-beta/document/draftSend?documentId=8f59295d-xxxx-xxxx-xxxx-e7dc88cfff2c' \ -H 'accept: application/json' \ -H 'X-API-KEY: {your-api-key}'
var apiClient = new ApiClient("YOUR_API_KEY"); var documentClient = new DocumentClient(apiClient); var documentCreated = documentClient.SendDocumentFromDraft("YOUR_DOCUMENT_ID");
import boldsign configuration = boldsign.Configuration(api_key="YOUR_API_KEY") with boldsign.ApiClient(configuration) as api_client: document_api = boldsign.DocumentApi(api_client) document_sent = document_api.send_document_from_draft(document_id="YOUR_DOCUMENT_ID")
<?php require_once "vendor/autoload.php"; use BoldSign\Configuration; use BoldSign\Api\DocumentApi; $config = new Configuration(); $config->setApiKey('YOUR_API_KEY'); $document_api = new DocumentApi($config); $document_sent = $document_api->sendDocumentFromDraft($document_id = 'YOUR_DOCUMENT_ID');
ApiClient client = Configuration.getDefaultApiClient(); client.setApiKey("YOUR_API_KEY"); DocumentApi documentApi = new DocumentApi(client); DocumentCreated documentCreated = documentApi.sendDocumentFromDraft("YOUR_DOCUMENT_ID", null);
import { DocumentApi } from "boldsign"; const documentApi = new DocumentApi(); documentApi.setApiKey("YOUR_API_KEY"); const documentCreated = documentApi.sendDocumentFromDraft("YOUR_DOCUMENT_ID");
Query parameters
documentIdstringRequired | The unique document id of the draft document. |
Example response
201 Created
{ "documentId": "8f59295d-xxxx-xxxx-xxxx-e7dc88cfff2c" }