Add legally binding e-signatures to a Java app in four steps using Java 11's built-in HttpClient: get a token, create an envelope with a multipart upload, send the signing link, and handle the completion webhook in Spring Boot.
Exchange your OAuth2 client credentials for a short-lived access token using Java 11+'s built-in HttpClient — no Apache HttpComponents or OkHttp required.
Upload the PDF and declare signers and fields with a multipart/form-data request. Java 11 HttpClient supports multipart via a custom BodyPublisher.
Sending generates a tokenized, single-use link per signer and emails it. Signers verify identity with email/SMS OTP.
When the last signer finishes, GetSigned POSTs envelope.completed to your endpoint. Verify the HMAC-SHA256 signature over the raw body before trusting it. Spring Boot example below.
Use Java 11+'s built-in java.net.http.HttpClient to call the GetSigned REST API: POST client credentials to /oauth/token for a bearer token, create an envelope by uploading a PDF with signers and fields as a multipart/form-data request, send it to generate signing links, then handle the envelope.completed webhook in Spring Boot or Jakarta Servlet. No third-party HTTP library is required.
No. Java 11 introduced java.net.http.HttpClient as a standard, non-blocking HTTP client. It supports POST, custom headers, multipart bodies via BodyPublishers, and async requests. For a three-endpoint integration like GetSigned, the standard library is sufficient. Use Apache HttpComponents or OkHttp only if your project already depends on them.
Construct a multipart body manually: choose a boundary string, build each part as a byte array with the correct Content-Disposition and Content-Type headers, separate parts with the boundary, and terminate with boundary--. Pass the assembled byte arrays to HttpRequest.BodyPublishers.ofByteArrays(). This is verbose but has zero dependencies.
Yes. The java.net.http.HttpClient calls can be made from anywhere — a Spring @Service, a @Scheduled task, or a @RestController. For the webhook handler, create a @RestController with @PostMapping — Spring Boot automatically deserializes the JSON payload. Add the endpoint to your CSRF exclusion list if you use Spring Security.
Yes. The free Starter plan includes full REST API access, PKCS#7 sealing, OTP verification, and webhooks, with 5 envelopes per month — enough to build and test a complete Java integration.