Document Validator
Document Validator is a signature verification service that lets you verify digitally signed documents without data transfer to third parties.
Submit a document hash and its associated base64-encoded PKCS7 signature to receive a detailed verification result, including certificate status, qualification level, and individual signer details.
The response indicates the signature level for each signer:
- QES (Qualified Electronic Signature) — the top tier, requiring strong identity verification (e.g. video ID), and legally equivalent to a handwritten signature under both eIDAS and ZertES.
- AES (Advanced Electronic Signature) — a signature tied to a verified signer identity with high probative value, but without automatic legal anchoring to statutory written-form requirements.
- SES (Simple Electronic Signature) — the basic tier, used for documents with low liability risk that don't require statutory written form, with no strong identity verification behind it.
The service provides a signature extractor JavaScript library and a single API endpoint which accepts a JSON array of hash and signature pairs and returns a structured JSON response.
API Map
Typical End-To-End Flow
- Subscribe to a product plan on Swisscom Digital Marketplace
- Obtain a
CLIENT_IDandCLIENT_SECRETfrom the Digital Marketplace subscription - Request an OAuth 2.0 access token using the client credentials grant
- Extract the hex-encoded document hash and the base64-encoded PKCS7 signature from the signed PDF
- Send a
POST /v1/signature/verifyrequest with aBearertoken and a JSON array containing the hash and signature - Parse the response and check the signature validity.