Skip to main content

Quickstart

This guide walks you through obtaining an access token and submitting your first signature verification request to Document Validator.

Prepare Authentication​

Complete:

Exit criteria:

  • You have successfully obtained a Bearer access token from the token endpoint.

1. Extract the document hash and signature​

Retrieve the hex-encoded SHA-256 hash and the base64-encoded PKCS7 signature from the signed document.
For JavaScript, complete Extract Signature Data From PDF (JavaScript).

Exit criteria:

  • You have extracted a document hash and base64 signature from a signed document.

2. Submit the verification request​

Use the access token, document hash and base64 signature from the previous step to verify them with the Signature API.
Use example from the Signature API

Exit criteria:

  • A response with HTTP status code 200 is returned from the API.

3. Inspect the response​

A successful response returns HTTP 200 with a verifyresult array. Each entry contains a sigcheck object with the overall result and a signerslist array with per-signer details.

Key fields on sigcheck​

FieldDescription
sigcheckresulttrue if the overall signature verification passed.
numberofsigsNumber of cryptographic signatures found. 0 means no recognized signature (SES).
allsigsvalidtrue if every signature in the document passed validation.
allsigsqualtrue if all signatures are qualified (QES).
allsigsusequalcerttrue if all signers used a qualified certificate.

Key fields on each entry in signerslist​

FieldDescription
signaturelevelSignature level: QES (qualified), AES (advanced). Absent for SES (empty list).
signatureclassificationCombined classification, e.g. QES_ZERTES_SIGNATURE, AES_ZERTES_SIGNATURE.
isqualifiedsigtrue for QES; false for AES.
isqualifiedcerttrue if the signer's certificate is a qualified certificate (required for QES).
privkeyinqualifiedsignaturecreationdevicetrue if the private key was held in a QSCD (required for QES).
signerSigner identity — full name for QES, phone number for AES.
dochashmatchessigtrue if the document hash matches the hash embedded in the signature.
sigcertstatusCertificate status code (0 = valid).
sigcertcheckerrormsgError message if the certificate check failed, null otherwise.

Interpreting the signature level​

signaturelevelsigcheckresultnumberofsigsMeaning
QEStrue≥ 1Qualified signature — highest legal weight.
AEStrue≥ 1Advanced signature — cryptographically verified, non-qualified certificate.
(empty signerslist)false0Simple signature (SES) — no cryptographic signature found.

Exit criteria:

  • sigcheckresult is true for a valid, unmodified signature.

Sequence Diagram​