Skip to main content
Existing Functionality

Add documentId and documentIdGuid to response body when adding template to envelope

Categories:Developer Experience
  • February 28, 2025
  • 3 replies
  • 29 views

Scott.Nieman
Troubleshooter
Forum|alt.badge.img+4

Returning the templateId is not good enough.  It is normal RESTful best practice to include newly minted identifiers that may be useful for subsequent API calls.

In this case, the documentIdGuid is needed for the Agreement Template Builder to update the Sender Fields with values.

3 replies

Scott.Nieman
Troubleshooter
Forum|alt.badge.img+4
  • Author
  • Troubleshooter
  • February 28, 2025

POST {{baseUrl}}/v2.1/accounts/{{accountId}}/envelopes/{{envelopeId}}/templates/


paige.rossi
Docusign Employee
Forum|alt.badge.img+7
  • Docusign Employee
  • February 4, 2026

Thanks so much for submitting this idea ​@Scott.Nieman! After review, it looks like you should be seeing the document ID in the response to the EnvelopeTemplates: apply endpoint. I see documentId in the response object here. If you’re not seeing that in your response for some reason, let us know and we can look into it.


paige.rossi
Docusign Employee
Forum|alt.badge.img+7
  • Docusign Employee
  • February 4, 2026
Idea SubmittedExisting Functionality