Actions341
- Account Actions
- Account Brand Actions
- Account Consumer Disclosure Actions
- Account Custom Field Actions
- Account Password Rule Actions
- Account Permission Profile Actions
- Account Seal Provider Actions
- Account Signature Actions
- Account Signature Provider Actions
- Account Tab Setting Actions
- Account Watermark Actions
- Authorization Actions
- BCC Email Archive Actions
- Billing Plan Actions
- Bulk Envelope Actions
- Chunked Upload Actions
- Cloud Storage Actions
- Connect Configuration Actions
- Custom Tab Actions
- Diagnostic Resource Actions
- Diagnostic Service Actions
- Document Generation Actions
- eNote Configuration Actions
- Envelope Actions
- Envelope Attachment Actions
- Envelope Comment Actions
- Envelope Consumer Disclosure Actions
- Envelope Custom Field Actions
- Envelope Document Field Actions
- Envelope Document Tab Actions
- Envelope Document Visibility Actions
- Envelope Email Setting Actions
- Envelope Form Data Actions
- Envelope HTML Definition Actions
- Envelope Lock Actions
- Envelope Publish Actions
- Envelope Recipient Tab Actions
- Envelope Template Actions
- Envelope Transfer Rule Actions
- Envelope View Actions
- Envelope Workflow Actions
- Favorite Template Actions
- Folder Actions
- Group Actions
- Group Brand Actions
- Group User Actions
- Identity Verification Actions
- Invoice Actions
- Notary Actions
- Notary Journal Actions
- Notary Jurisdiction Actions
- Payment Actions
- Payment Gateway Actions
- PowerForm Actions
- PowerForm Data Actions
- Request Log Actions
- Responsive HTML Preview Actions
- Signing Group Actions
- Signing Group User Actions
- Tabs Blob Actions
- Template Actions
- Template Custom Field Actions
- Template Document Actions
- Template Document Field Actions
- Template Document Tab Actions
- Template Document Visibility Actions
- Template HTML Definition Actions
- Template Lock Actions
- Template Recipient Actions
- Template Recipient Tab Actions
- Template View Actions
- User Actions
- User Contact Actions
- User Custom Setting Actions
- User Profile Actions
- User Signature Actions
- Workspace Actions
- Workspace Item Actions
Envelope HTML Definition → Get Document
AI-generatedSummary
Retrieves the HTML definition of a specific document within an envelope.
Inputs
- authentication — OAuth2 or JWT authentication method to use for the request.
- accountId (required) — DocuSign Account ID (GUID) where the envelope resides.
- envelopeId (required) — ID (GUID) of the envelope containing the document.
- documentId (required) — Numeric ID of the document to retrieve; defaults to "1".
Output shape
a single document object representing the HTML definition of the specified document.
The response includes document metadata such as documentId, name, and HTML content; fields may be omitted if not set.
Examples
Example 1: Fetch the HTML for document 2 in envelope 12345 using OAuth2.
authentication: OAuth2, accountId: 12345678-90ab-cdef-1234-567890abcdef, envelopeId: 12345678-90ab-cdef-1234-567890abcdef, documentId: 2
Example 2: Get the HTML definition of the first document in an envelope using JWT authentication.
authentication: JWT, accountId: 87654321-9876-5432-1098-7654321fedcb, envelopeId: 87654321-9876-5432-1098-7654321fedcb, documentId: 1
Example 3: Retrieve document 3's HTML definition from a envelope in the 'templates' category.
authentication: OAuth2, accountId: abcdef12-3456-7890-abcd-ef1234567890, envelopeId: abcdef12-3456-7890-abcd-ef1234567890, documentId: 3
