BoldSign AI Assistant
Chat with the BoldSign AI AssistantRemove Authentication After Sending a Document
BoldSign offers different authentication methods to verify the signer's identity, including Email OTP (One-Time Password), SMS OTP (One-Time Password), Access Code and ID verification. These authentication methods can be added to signers during the document creation process. However, there may be instances where you need to remove a signer's authentication after the document has already been sent for signature. Only the sender and the sender’s admin can remove the authentication in document.
Below is an example code snippet demonstrating how to remove authentication for a specific recipient of a document.
Code snippet
curl -X PATCH "https://api.boldsign.com/v1/document/RemoveAuthentication?documentId={Your document id}"
-H 'X-API-KEY:{Your API Key}'
-H "Content-Type: application/json"
-d "{\"emailId\": \"[email protected]\"}"
using BoldSign.Api;
var apiClient = new ApiClient("https://api.boldsign.com", "{Your API Key}");
var documentclient = new DocumentClient(apiClient);
await documentclient.RemoveAuthenticationAsync("{Your document id}", "[email protected]").ConfigureAwait(false);
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)
remove_authentication = boldsign.RemoveAuthentication(emailId = "[email protected]")
document_api.remove_authentication(document_id = "YOUR_DOCUMENT_ID", remove_authentication = remove_authentication)
import { DocumentApi, RemoveAuthentication } from "boldsign";
const documentApi = new DocumentApi("https://api.boldsign.com");
documentApi.setApiKey("YOUR_API_KEY");
const removeAuthentication = new RemoveAuthentication();
removeAuthentication.emailId = "[email protected]";
documentApi.removeAuthentication("YOUR_DOCUMENT_ID", removeAuthentication);
<?php require_once "vendor/autoload.php";
use BoldSign\Configuration;
use BoldSign\Api\DocumentApi;
use BoldSign\Model\RemoveAuthentication;
$config = new Configuration();
$config->setHost('https://api.boldsign.com');
$config->setApiKey('YOUR_API_KEY');
$document_api = new DocumentApi($config);
$remove_authentication = new RemoveAuthentication();
$remove_authentication->setEmailId('[email protected]');
$document_api->removeAuthentication($document_id = 'YOUR_DOCUMENT_ID', $remove_authentication);
ApiClient client = Configuration.getDefaultApiClient();
client.setBasePath("https://api.boldsign.com");
client.setApiKey("YOUR_API_KEY");
DocumentApi documentApi = new DocumentApi(client);
RemoveAuthentication removeAuthentication = new RemoveAuthentication();
removeAuthentication.setEmailId("[email protected]");
documentApi.removeAuthentication("YOUR_DOCUMENT_ID", removeAuthentication);
In the provided code examples, make sure to update the documentId with the actual ID of the document you created and the emailId with the signer's email address. After executing the code, the authentication will be removed from the signature request document. The recipient will no longer be required to provide the authentication code to access the document.