I'm getting a 404 The URL provided does not resolve to a resource when POSTing to create an envelope from a Spring Boot app using RestTemplate.
My URL is built like this:
java
String url = baseUrl + accountId + "/envelopes";
// baseUrl = https://na4.docusign.net/restapi/v2.1/I'm sending a POST with a Bearer token and a JSON envelope body containing a base64 PDF document.
What I've tried: confirmed the access token is generated successfully, confirmed the account ID is correct.
Question: Is my endpoint path correct? Do I need an accounts/ segment, and how do I confirm the correct base_uri for my account's region?
Environment: Java 17, Spring Boot, DocuSign eSignature REST API v2.1.
Back to Docusign.com


