How to get envelope information
This topic demonstrates how to get the full set of data associated with an envelope that was sent by your app. Using the code presented here, you can see whether documents have been signed and which, if any, outstanding items remain to be completed. This example will return information about the envelope, particularly its status (any, created, deleted, sent, delivered, signed, completed, declined, timedout, voided), the time and date of the most recent action on the envelope, and any additional metadata associated with that envelope.
Run this code example from our Quickstart or launcher projects: Bash, C#, Java, Node.js, PHP, PowerShell, Python, or Ruby.
Required data
Running the code in this how-to requires this data:
Step 1. Obtain your OAuth token
To make the API call shown in this how-to, you need a valid OAuth access token. Docusign supports access tokens for three different recommended OAuth grant types: Public Authorization Code Grant, Confidential Authorization Code Grant, and JSON Web Token (JWT) Grant. Choose the OAuth grant type appropriate for your scenario.
See Confidential Authorization Code Grant for guidance on your options to get an Confidential Authorization Code Grant OAuth token.
Step 2. Get envelope data
Get the envelope data using the following steps:
- Instantiate the Docusign API client.
- Set the following default request header to add your access token.
"Authorization" : "Bearer {ACCESS TOKEN}" - Initialize the Envelopes API.
- Call the
GetEnvelopemethod with the ID of the envelope you want to retrieve. The returned data will include the envelope status, the dates when the status was changed, and all other metadata associated with the envelope. Depending on the complexity of your envelope, the amount of data returned could be vast and include attributes such asagents,editors,inPersonSigners,intermediaries, and more.
Expected response
If you run this code example from our Quickstart or launcher projects, you should see a JSON response similar to the code shown.
Next steps
- Run this code example from our Quickstart or launcher projects: Bash, C#, Java, Node.js, PHP, PowerShell, Python, or Ruby.
- Learn about Searching for envelopes.
- See Envelopes:listStatus for the full list of envelope status values.
- See how to Go-Live with a completed app and find the base path for API calls in the production environment.