Validation API
Quick Start — Validation API
Validate a signed PDF in two API calls: authenticate, then submit the document for validation.
Prerequisites
- An API username and API key with the
ROLE_VALIDATION_API_USERrole - A digitally signed PDF document (Base64-encoded)
Step 1 — Authenticate
Code
The response is a plain-text JWT token:
Code
Save this token — it's valid for ~20 minutes.
Step 2 — Validate a document
Submit a Base64-encoded signed PDF for validation:
Code
Response:
Code
| Field | Description |
|---|---|
valid | true if all signatures are valid |
signatures | Total number of signatures found |
validSignatures | Number of valid signatures |
quality | Highest signature quality detected (SES, AES, QES) |
legislation | Legislation under which the signatures were validated. Only present when quality is QES |
longTermValidation | Whether the signatures support long-term validation |
Getting more details
Use the returned id to fetch additional information:
Code
What's next
- Best Practices — validation parameters and error handling
- Validation API v1 Reference — full endpoint documentation
