---
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`

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.

---

[API](https://skmtc.net/docusign/apis/docusign-esignature-rest-api.md) · [All operations](https://skmtc.net/docusign/apis/docusign-esignature-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/docusign/docusign-esignature-rest-api/revisions/77f1998c313d/schema)
