Skip to content
On this page

Verifying Signed Documents

There are times when it is necessary to perform document file verification (digital signature check) on a copy of a document that was signed using AlphaTrust® e-Sign, but which is not stored in the AlphaTrust® e-Sign document repository. For documents that are in the repository, you may use following API call:

csharp
var req = new DocumentVerifyRequestModel()
            {
                DocumentFiles = new List<object>
                                {
                                    new DocumentVerifyModel()
                                    {
                                        ID = 1234567890,
                                        FileBytes = File.ReadAllBytes(@"c:\MyCompletedDocumentToVerify.pdf")
                                    }
                                }
            };

var api = new DocumentsApi(myRestEndpointUrl);
var results = api.VerifyCompletedDocuments(req, apiKey, apiSecret, apiUsername, apiPassword);
if (results.IsSuccessful.Value)
{
    // do work...
}
else
{
    // handle error
}