---
title: "Returns sender fields for an envelope."
method: GET
path: "/v2.1/accounts/{accountId}/envelopes/{envelopeId}/docGenFormFields"
tags: ["DocumentGeneration"]
---

# Returns sender fields for an envelope.

`GET /v2.1/accounts/{accountId}/envelopes/{envelopeId}/docGenFormFields`

## Request

- Base URL: `https://www.docusign.net/restapi`
- URL: `https://www.docusign.net/restapi/v2.1/accounts/{accountId}/envelopes/{envelopeId}/docGenFormFields`
- Auth: none declared

Given an `envelopeId`, this method returns the sender fields found in that envelope's documents. After you retrieve the sender fields, use the [DocumentGeneration::updateEnvelopeDocGenFormFields](/docs/esign-rest-api/reference/envelopes/documentgeneration/updateenvelopedocgenformfields/) method to populate the fields.

If the specified envelope does not contain a document with sender fields, the method will return success (`200`) and an empty object (`{}`) in the response.

### Next steps

- [Learn about document generation in the eSignature concepts guide.](/docs/esign-rest-api/esign101/concepts/documents/document-generation/)
- [Learn how to send an envelope with document generation in your preferred coding language](/docs/esign-rest-api/how-to/request-signature-email-document-generation/).

## Path parameters

- `accountId` string, required
- `envelopeId` string, required

## Response `200`

Successful response.

## Other responses

- `400`: Error encountered.

## Changes

- **2023-04-14** (v2) `6efbc3a0673b`: 1 info
  - endpoint added
- **2019-07-18** (v2) `8ad1b5a40f1b`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/docusign/apis/docusign-esignature-rest-api/changes/v2.1/accounts/:accountId/envelopes/:envelopeId/docGenFormFields/get.md)

---

[API](https://skmtc.dev/docusign/apis/docusign-esignature-rest-api.md) - [All operations](https://skmtc.dev/docusign/apis/docusign-esignature-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/docusign/apis/docusign-esignature-rest-api/revisions/77f1998c313d?raw)
