GroupDocs.Signature Cloud provides a method to verify if the signatures with given properties are present in a document. The result of verify method contains boolean value IsSuccess (true or false).
API usage
There are steps that usage of GroupDocs.Signature Cloud consists of:
Upload input document into cloud storage
Verify signatures
For storage operations, like uploading or downloading documents, please refer to the corresponding articles of this manual.
Swagger UI lets you call this REST API directly from the browser.
cURL example
// First get JSON Web Token
// Please get your Client Id and Client Secret from https://dashboard.groupdocs.cloud/applications. Kindly place Client Id in "client_id" and Client Secret in "client_secret" argument.
curl-v"https://api.groupdocs.cloud/connect/token"\-XPOST\-d"grant_type#client_credentials&client_id#xxxx&client_secret#xxxx"\-H"Content-Type: application/x-www-form-urlencoded"\-H"Accept: application/json"// cURL example to get document information
curl-v"https://api.groupdocs.cloud/v2.0/signature/verify"\-XPOST\-H"Content-Type: application/json"\-H"Accept: application/json"\-H"Authorization: Bearer <jwt token>"-d"{
'FileInfo': {
'FilePath': 'signaturedocs/signedText_one-page.docx'
},
'Options': [
{
'AllPages': true,
'SignatureType': 'Text',
'Text': 'GroupDocs.Signature Cloud',
'MatchType': 'Contains'
}
]
}"
The API is completely independent of your operating system, database system or development language. We provide and support API SDKs in many development languages in order to make it even easier to integrate. You can see our available SDKs list here.
// For complete examples and data files, please go to https://github.com/groupdocs-signature-cloud/groupdocs-signature-cloud-dotnet-samplesstringMyClientSecret="";// Get ClientId and ClientSecret from https://dashboard.groupdocs.cloudstringMyClientId="";// Get ClientId and ClientSecret from https://dashboard.groupdocs.cloudvarconfiguration=newConfiguration(MyClientId,MyClientSecret);varapiInstance=newSignApi(configuration);// Verify optionsvaroptions=newVerifyTextOptions{SignatureType=SignatureTypeEnum.Text,MatchType=VerifyTextOptions.MatchTypeEnum.Contains,Text="GroupDocs.Signature Cloud",AllPages=false,Page=1,PagesSetup=newPagesSetup{EvenPages=false,FirstPage=true,LastPage=false,OddPages=false,PageNumbers=newList<int?>{1}}};// Verify settingsvarverifySettings=newVerifySettings{FileInfo=newFileInfo{FilePath="signedText_one-page.docx"},Options=newList<VerifyOptions>{options}};// Create requestvarrequest=newVerifySignaturesRequest(verifySettings);// Call api method with requestvarresponse=apiInstance.VerifySignatures(request);
// For complete examples and data files, please go to https://github.com/groupdocs-signature-cloud/groupdocs-signature-cloud-java-samples
StringMyClientSecret="";// Get ClientId and ClientSecret from https://dashboard.groupdocs.cloud
StringMyClientId="";// Get ClientId and ClientSecret from https://dashboard.groupdocs.cloud
Configurationconfiguration=newConfiguration(MyClientId,MyClientSecret);SignApiapiInstance=newSignApi(configuration);FileInfofileInfo=newFileInfo();fileInfo.setFilePath("Signaturedocs\\signedText_one-page.docx");InfoSettingsinfoSettings=newInfoSettings();infoSettings.setFileInfo(fileInfo);VerifyTextOptionsoptions=newVerifyTextOptions();options.setSignatureType(SignatureTypeEnum.TEXT);options.setText("John Smith");options.setPage(1);options.setAllPages(true);PagesSetuppagesSetup=newPagesSetup();pagesSetup.setEvenPages(false);pagesSetup.setFirstPage(true);pagesSetup.setLastPage(false);pagesSetup.setOddPages(false);pagesSetup.addPageNumbersItem(1);options.setPagesSetup(pagesSetup);VerifySettingsverifySettings=newVerifySettings();verifySettings.setFileInfo(fileInfo);verifySettings.addOptionsItem(options);VerifySignaturesRequestrequest=newVerifySignaturesRequest(verifySettings);VerifyResultresponse=apiInstance.verifySignatures(request);
// For complete examples and data files, please go to https://github.com/groupdocs-signature-cloud/groupdocs-signature-cloud-php-samples
useGroupDocs\Signature\Model;useGroupDocs\Signature\Model\Requests;$ClientId="";// Get ClientId and ClientSecret from https://dashboard.groupdocs.cloud
$ClientSecret="";// Get ClientId and ClientSecret from https://dashboard.groupdocs.cloud
$configuration=newGroupDocs\Signature\Configuration();$configuration->setAppSid($ClientId);$configuration->setAppKey($ClientSecret);$apiInstance=newGroupDocs\Signature\SignApi($configuration);$fileInfo=newGroupDocs\Signature\Model\FileInfo();$fileInfo->setFilePath("signaturedocs\signedTextOne_page.docx");$fileInfo->setPassword("");$settings=newGroupDocs\Signature\Model\VerifySettings();$settings->setFileInfo($fileInfo);$options=newGroupDocs\Signature\Model\VerifyTextOptions();$options->setPage(1);$options->setAllPages(false);$options->setSignatureType(GroupDocs\Signature\Model\OptionsBase::SIGNATURE_TYPE_TEXT);$options->setText("GroupDocs Cloud");$pagesSetup=newGroupDocs\Signature\Model\PagesSetup();$pagesSetup->setEvenPages(false);$pagesSetup->setFirstPage(true);$pagesSetup->setLastPage(false);$pagesSetup->setOddPages(false);$pagesSetup->setPageNumbers([1]);$options->setPagesSetup($pagesSetup);$settings->setOptions([$options]);$request=newGroupDocs\Signature\Model\Requests\VerifySignaturesRequest($settings);$response=$apiInstance->verifySignatures($request);
// For complete examples and data files, please go to https://github.com/groupdocs-signature-cloud/groupdocs-signature-cloud-node-samples
global.signature_cloud=require("groupdocs-signature-cloud");global.clientId="XXXX-XXXX-XXXX-XXXX";// Get ClientId and ClientSecret from https://dashboard.groupdocs.cloud
global.clientSecret="XXXXXXXXXXXXXXXX";// Get ClientId and ClientSecret from https://dashboard.groupdocs.cloud
global.signApi=signature_cloud.SignApi.fromKeys(clientId,clientSecret);letopts=newsignature_cloud.VerifyTextOptions();opts.signatureType=signature_cloud.OptionsBase.SignatureTypeEnum.Text;opts.text='GroupDocs.Signature Cloud';opts.matchType=signature_cloud.VerifyBarcodeOptions.MatchTypeEnum.Contains;opts.page=1;opts.allPages=true;letsettings=newsignature_cloud.VerifySettings();settings.fileInfo=fileInfo;settings.options=[opts];letrequest=newsignature_cloud.VerifySignaturesRequest(settings);letresponse=awaitsignApi.verifySignatures(request);
# For complete examples and data files, please go to https://github.com/groupdocs-signature_cloud-cloud/groupdocs-signature_cloud-cloud-python-samplesfromgroupdocs_signature_cloudimport*importgroupdocs_signature_cloudclient_id="XXXX-XXXX-XXXX-XXXX"# Get ClientId and ClientSecret from https://dashboard.groupdocs.cloudclient_secret="XXXXXXXXXXXXXXXX"# Get ClientId and ClientSecret from https://dashboard.groupdocs.cloudapi=groupdocs_signature_cloud.SignApi.from_keys(client_id,client_secret)fileInfo=FileInfo()fileInfo.file_path="signaturedocs\\signedTextOne_page.docx"opts=VerifyTextOptions()opts.signature_type='Text'opts.text='GroupDocs.Signature Cloud'opts.match_type='Contains'opts.page=1settings=VerifySettings()settings.options=[opts]settings.file_info=fileInforequest=VerifySignaturesRequest(settings)response=api.verify_signatures(request)
# For complete examples and data files, please go to https://github.com/groupdocs-signature-cloud/groupdocs-signature-cloud-ruby-samplesrequire'groupdocs_signature_cloud'$client_id="XXXX-XXXX-XXXX-XXXX"# Get ClientId and ClientSecret from https://dashboard.groupdocs.cloud$client_secret="XXXXXXXXXXXXXXXX"# Get ClientId and ClientSecret from https://dashboard.groupdocs.cloudapi=GroupDocsSignatureCloud::SignApi.from_keys($client_id,$client_secret)$info=GroupDocsSignatureCloud::FileInfo.new()$info.file_path="signaturedocs\\signedTextOne_page.docx"$opts=GroupDocsSignatureCloud::VerifyTextOptions.new()$opts.signature_type="Text"$opts.text='GroupDocs.Signature Cloud'$opts.page=1$settings=GroupDocsSignatureCloud::VerifySettings.new()$settings.options=[$opts]$settings.file_info=$info$request=GroupDocsSignatureCloud::VerifySignaturesRequest.new($settings)# Executing an API.$response=api.verify_signatures($request)
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.