Using Search on List Endpoints

View as Markdown

Searches can include queries on specific fields when hitting the /signature_request/list or /template/list endpoints.

Note: There may be a minor delay after creation of a signature request or template, and querying may not be immediately available for this object.

Here is an example of a GET request to /signature_request/list using search queries:

$curl 'https://api.hellosign.com/v3/signature_request/list?query=title:Field+Trip+Release+AND+from:me'\
> -u 'SIGN_IN_AND_CREATE_API_KEY_FIRST:'

Search Fields

Search terms that are not passed with a specific field will be matched against: to, from, title, subject, message, metadata, and filename. Queries on fields can be combined using AND and OR operators (operators are case sensitive). Dates may be passed in as ranges. Exclusive ranges are indicated with curly brackets {min TO max} and inclusive ranges with square brackets [min TO max]. Leading wildcards (*) are not valid queries. The table below lists all possible fields that can be queried:

Field NameDescriptionAttached ModelType
toThe email address or name of the signer (can use “me” to refer to yourself)SignatureRequest onlyString
fromThe email address or name of the sender (can use “me” to refer to yourself)SignatureRequest onlyString
titleThe title of the signature request or templateSignatureRequest and TemplateString
subjectThe subject of the email that is sent to the signersSignatureRequest onlyString
messageThe message of the email that is sent to the signersSignatureRequest and TemplateString
metadataThe metadata attached to the signature request or templateSignatureRequest and TemplateString
createdThe creation date (and optional time) of the signature request or template
For example: created:[2014-01-01+TO+2014-12-31]
Note: Square brackets search dates from the 1st of January thru the 31st of December (inclusive dates)
Another example: created:{2014-01-05+TO+2014-01-10}
Note: Curly brackets search dates from the 6th of January thru the 9th of January (exclusive dates)
SignatureRequest and TemplateDate
completetrue returns a list of signature requests that all signers have signed. For example: complete:trueSignatureRequest onlyBoolean
declinedtrue returns a list of signature requests that have been declined. For example: declined:trueSignatureRequest onlyBoolean
expiredtrue returns a list of signature requests that have been declined. For example: expired:trueSignatureRequest onlyBoolean
awaiting_my_signatureA true value indicates the request requires your signatureSignatureRequest onlyBoolean
test_modeA true value indicates the signature request or template is a test and not legally bindingSignatureRequest and TemplateBoolean
filenameThe name of the file used to create the signature request or templateSignatureRequest and TemplateString
ownerThe metadata attached to the signature request or templateTemplate onlyString
templateA Template ID corresponding to a template used in a signature requestSignatureRequest onlyString
client_idThe client_id associated with the API App used to create signature requestsSignatureRequest onlyString