Searching for envelopes
You can search precisely and flexibly for specific sets of envelopes by setting search filters and using the Envelopes:listStatusChanges endpoint or the listStatusChanges SDK method.
You can retrieve envelopes using their specific ID or search by using any combination of the following filters:
Important: to_date and from_date are required parameters and must be included in every envelope search operation. They can be combined with any other search parameters or used alone for a date-range search.
You can also include or exclude additional metadata, including:
- Recipients, PowerForms and/or folders associated with the returned envelopes.
- Data on purged or deleted information associated with the returned envelopes.
Search results may also be ordered in ascending or descending order by any envelope property.
For details on these query parameters, see Envelopes:listStatusChanges.
Excluding result data
You can specifically exclude categories of data from being returned using an exclude request parameter and specifying recipients, PowerForms, or folders.
Searching for envelopes in a specific folder
You can filter your envelope search to search only in specific folders by specifying a folder_ids request parameter and providing a comma-separated list of folder GUIDs (to search within only those folders) and/or a list of the following valid folder categories:
awaiting_my_signaturecompleteddraftdraftsexpiring_sooninboxout_for_signaturerecyclebinsentitemswaiting_for_others
Searching for envelopes in a folder type
You can filter your envelope search to search only in folders of a specified type by providing a folder_types request parameter and providing a comma-separated list of the following valid folder categories:
normalinboxdraftsentitemstemplates
Searching for specific text
You can search for envelopes that contain specific text strings using a search_text request parameter and specifying a string that all returned envelope text must contain. The envelope’s email subject, recipient user names, email addresses, and custom fields are all searched for the strings.
Searching for envelopes associated with specific users
You can search for envelopes that are associated with a specific user ID (who may be a recipient or a sender) using the user_id request parameter and specifying the ID of a user within your account. All envelopes where that user is a recipient or sender will be searched.
Next steps
- See How to list envelope status changes for a code example demonstrating how search for envelopes.
- See the MyAPICalls sample app scenario Envelope Search with Resend, which walks you through a sequence of API calls that search for envelopes and resend an envelope returned in the results.