GetSessionDocuments

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

URI  GET rest/v1/sessions/docs/{signingSessionId}

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

Parameters

Name Type Description
encryptedToken string Required. Encrypted Token returned from client authentication.
Returns null if token has expired or is invalid.
signingSessionId string Required. The signing session ID to get document files.

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

uri = string.Format(uri,signingsessionId);
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);
[/gdlr_notification]