All URIs are relative to https://api.hellosign.com/v3
Method | HTTP request | Description |
---|---|---|
unclaimedDraftCreate | POST /unclaimed_draft/create | Create Unclaimed Draft |
unclaimedDraftCreateEmbedded | POST /unclaimed_draft/create_embedded | Create Embedded Unclaimed Draft |
unclaimedDraftCreateEmbeddedWithTemplate | POST /unclaimed_draft/create_embedded_with_template | Create Embedded Unclaimed Draft with Template |
unclaimedDraftEditAndResend | POST /unclaimed_draft/edit_and_resend/{signature_request_id} | Edit and Resend Unclaimed Draft |
UnclaimedDraftCreateResponse unclaimedDraftCreate(unclaimedDraftCreateRequest)
Create Unclaimed Draft
Creates a new Draft that can be claimed using the claim URL. The first authenticated user to access the URL will claim the Draft and will be shown either the "Sign and send" or the "Request signature" page with the Draft loaded. Subsequent access to the claim URL will result in a 404.
import com.dropbox.sign.ApiException;
import com.dropbox.sign.Configuration;
import com.dropbox.sign.api.*;
import com.dropbox.sign.auth.*;
import com.dropbox.sign.model.*;
import java.io.File;
import java.util.List;
import java.util.Map;
public class Example {
public static void main(String[] args) {
var apiClient = Configuration.getDefaultApiClient()
.setApiKey("YOUR_API_KEY");
// or, configure Bearer (JWT) authorization: oauth2
/*
var apiClient = Configuration.getDefaultApiClient()
.setBearerToken("YOUR_ACCESS_TOKEN");
*/
var unclaimedDraftApi = new UnclaimedDraftApi(apiClient);
var signer1 = new SubUnclaimedDraftSigner()
.emailAddress("jack@example.com")
.name("Jack")
.order(0);
var signer2 = new SubUnclaimedDraftSigner()
.emailAddress("jill@example.com")
.name("Jill")
.order(1);
var subSigningOptions = new SubSigningOptions()
.draw(true)
.type(true)
.upload(true)
.phone(false)
.defaultType(SubSigningOptions.DefaultTypeEnum.DRAW);
var subFieldOptions = new SubFieldOptions()
.dateFormat(SubFieldOptions.DateFormatEnum.DD_MM_YYYY);
var data = new UnclaimedDraftCreateRequest()
.subject("The NDA we talked about")
.type(UnclaimedDraftCreateRequest.TypeEnum.REQUEST_SIGNATURE)
.message("Please sign this NDA and then we can discuss more. Let me know if you have any questions.")
.signers(List.of(signer1, signer2))
.ccEmailAddresses(List.of("lawyer1@dropboxsign.com", "lawyer2@dropboxsign.com"))
.addFilesItem(new File("example_signature_request.pdf"))
.metadata(Map.of("custom_id", 1234, "custom_text", "NDA #9"))
.signingOptions(subSigningOptions)
.fieldOptions(subFieldOptions)
.testMode(true);
try {
UnclaimedDraftCreateResponse result = unclaimedDraftApi.unclaimedDraftCreate(data);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountApi#accountCreate");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
unclaimedDraftCreateRequest | UnclaimedDraftCreateRequest |
- Content-Type: application/json, multipart/form-data
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | successful operation | * X-RateLimit-Limit - * X-RateLimit-Remaining - * X-Ratelimit-Reset - |
4XX | failed_operation | - |
UnclaimedDraftCreateResponse unclaimedDraftCreateEmbedded(unclaimedDraftCreateEmbeddedRequest)
Create Embedded Unclaimed Draft
Creates a new Draft that can be claimed and used in an embedded iFrame. The first authenticated user to access the URL will claim the Draft and will be shown the "Request signature" page with the Draft loaded. Subsequent access to the claim URL will result in a 404
. For this embedded endpoint the requester_email_address
parameter is required.
NOTE: Embedded unclaimed drafts can only be accessed in embedded iFrames whereas normal drafts can be used and accessed on Dropbox Sign.
import com.dropbox.sign.ApiException;
import com.dropbox.sign.Configuration;
import com.dropbox.sign.api.*;
import com.dropbox.sign.auth.*;
import com.dropbox.sign.model.*;
import java.io.File;
public class Example {
public static void main(String[] args) {
var apiClient = Configuration.getDefaultApiClient()
.setApiKey("YOUR_API_KEY");
// or, configure Bearer (JWT) authorization: oauth2
/*
var apiClient = Configuration.getDefaultApiClient()
.setBearerToken("YOUR_ACCESS_TOKEN");
*/
var unclaimedDraftApi = new UnclaimedDraftApi(apiClient);
var data = new UnclaimedDraftCreateEmbeddedRequest()
.clientId("ec64a202072370a737edf4a0eb7f4437")
.addFilesItem(new File("example_signature_request.pdf"))
.requesterEmailAddress("jack@dropboxsign.com")
.testMode(true);
try {
UnclaimedDraftCreateResponse result = unclaimedDraftApi.unclaimedDraftCreateEmbedded(data);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountApi#accountCreate");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
unclaimedDraftCreateEmbeddedRequest | UnclaimedDraftCreateEmbeddedRequest |
- Content-Type: application/json, multipart/form-data
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | successful operation | * X-RateLimit-Limit - * X-RateLimit-Remaining - * X-Ratelimit-Reset - |
4XX | failed_operation | - |
UnclaimedDraftCreateResponse unclaimedDraftCreateEmbeddedWithTemplate(unclaimedDraftCreateEmbeddedWithTemplateRequest)
Create Embedded Unclaimed Draft with Template
Creates a new Draft with a previously saved template(s) that can be claimed and used in an embedded iFrame. The first authenticated user to access the URL will claim the Draft and will be shown the "Request signature" page with the Draft loaded. Subsequent access to the claim URL will result in a 404
. For this embedded endpoint the requester_email_address
parameter is required.
NOTE: Embedded unclaimed drafts can only be accessed in embedded iFrames whereas normal drafts can be used and accessed on Dropbox Sign.
import com.dropbox.sign.ApiException;
import com.dropbox.sign.Configuration;
import com.dropbox.sign.api.*;
import com.dropbox.sign.auth.*;
import com.dropbox.sign.model.*;
import java.util.List;
public class Example {
public static void main(String[] args) {
var apiClient = Configuration.getDefaultApiClient()
.setApiKey("YOUR_API_KEY");
// or, configure Bearer (JWT) authorization: oauth2
/*
var apiClient = Configuration.getDefaultApiClient()
.setBearerToken("YOUR_ACCESS_TOKEN");
*/
var unclaimedDraftApi = new UnclaimedDraftApi(apiClient);
var signer = new SubUnclaimedDraftTemplateSigner()
.role("Client")
.name("George")
.emailAddress("george@example.com");
var cc1 = new SubCC()
.role("Accounting")
.emailAddress("accouting@email.com");
var data = new UnclaimedDraftCreateEmbeddedWithTemplateRequest()
.clientId("1a659d9ad95bccd307ecad78d72192f8")
.templateIds(List.of("c26b8a16784a872da37ea946b9ddec7c1e11dff6"))
.requesterEmailAddress("jack@dropboxsign.com")
.signers(List.of(signer))
.ccs(List.of(cc1))
.testMode(true);
try {
UnclaimedDraftCreateResponse result = unclaimedDraftApi.unclaimedDraftCreateEmbeddedWithTemplate(data);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountApi#accountCreate");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
unclaimedDraftCreateEmbeddedWithTemplateRequest | UnclaimedDraftCreateEmbeddedWithTemplateRequest |
- Content-Type: application/json, multipart/form-data
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | successful operation | * X-RateLimit-Limit - * X-RateLimit-Remaining - * X-Ratelimit-Reset - |
4XX | failed_operation | - |
UnclaimedDraftCreateResponse unclaimedDraftEditAndResend(signatureRequestId, unclaimedDraftEditAndResendRequest)
Edit and Resend Unclaimed Draft
Creates a new signature request from an embedded request that can be edited prior to being sent to the recipients. Parameter test_mode
can be edited prior to request. Signers can be edited in embedded editor. Requester's email address will remain unchanged if requester_email_address
parameter is not set.
NOTE: Embedded unclaimed drafts can only be accessed in embedded iFrames whereas normal drafts can be used and accessed on Dropbox Sign.
import com.dropbox.sign.ApiException;
import com.dropbox.sign.Configuration;
import com.dropbox.sign.api.*;
import com.dropbox.sign.auth.*;
import com.dropbox.sign.model.*;
public class Example {
public static void main(String[] args) {
var apiClient = Configuration.getDefaultApiClient()
.setApiKey("YOUR_API_KEY");
// or, configure Bearer (JWT) authorization: oauth2
/*
var apiClient = Configuration.getDefaultApiClient()
.setBearerToken("YOUR_ACCESS_TOKEN");
*/
var unclaimedDraftApi = new UnclaimedDraftApi(apiClient);
var data = new UnclaimedDraftEditAndResendRequest()
.clientId("1a659d9ad95bccd307ecad78d72192f8")
.testMode(true);
var signatureRequestId = "2f9781e1a83jdja934d808c153c2e1d3df6f8f2f";
try {
UnclaimedDraftCreateResponse result = unclaimedDraftApi.unclaimedDraftEditAndResend(signatureRequestId, data);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountApi#accountCreate");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
signatureRequestId | String | The ID of the signature request to edit and resend. | |
unclaimedDraftEditAndResendRequest | UnclaimedDraftEditAndResendRequest |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | successful operation | * X-RateLimit-Limit - * X-RateLimit-Remaining - * X-Ratelimit-Reset - |
4XX | failed_operation | - |