Gets an array of Document object(s) containing the file’s binary by sending a signing session Id.

URI  GET rest/v1/sessions/{signingSessionId}/files?zip={zipDocuments}

Returns – A DocumentResponse containing an array of Document Object(s).  (See SessionResponse in Appendix B)


Name Type Description
encryptedToken string Required. Encrypted Token returned from client authentication.
Returns null if token has expired or is invalid.
SessionId string Required. The signing session ID to get document files.
zipDocuments bool Required.
Set to true if you want to retrieve zipped files.
Set to false if you want to retrieve unzipped files.

Example – C#
[gdlr_notification icon=”none” type=”color-border” border=”#31BEF9″ color=”#000000″]
string uri = “rest/v1/sessions/{0}/files?zip={true}”
string responseString = string.Empty;
JavaScriptSerializer jss = new JavaScriptSerializer();
DocumentResponse documentResponse;

uri = string.Format(uri, signingsessionId, 0);
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(host + uri);
request.Headers.Add(“Authorization” , encryptedToken);
request.Method = “GET”;
request.ContentType = “application/json”;

HttpWebResponse response = (HttpWebResponse)request.GetResponse();
responseString = new StreamReader(response.GetResponseStream()).ReadToEnd();
documentResponse = jss.Deserialize<DocumentResponse>(responseString);