Digital Signatures
Sign a PDF (Base64)
Digitally sign a PDF using a PKCS#12 certificate. The certificate can be referenced by name (pre-uploaded) or provided inline as Base64. Optionally includes a visible signature and/or a trusted timestamp.
post/api/signatures/sign
Request
- Base URL: https://api.dokmatiq.com
- URL: https://api.dokmatiq.com/api/signatures/sign
- Auth: API key in header X-API-Key
Headers
X-DocGen-Validatestring
Request body
Example request
{
"pdfBase64": "JVBERi0xLjcK...",
"certificateName": "firma-zertifikat",
"certificateBase64": "MIIKcQIBAzCC...",
"certificatePassword": "geheim",
"reason": "Rechnungsfreigabe",
"location": "Berlin",
"contactInfo": "buchhaltung@firma.de",
"signerName": "Max Mustermann",
"timestampUrl": "http://timestamp.digicert.com",
"visibleSignature": {
"page": 1,
"x": 20,
"y": 20,
"width": 60,
"height": 20,
"text": "Digital signiert von\\n${signer}\\n${date}",
"fontSize": 8
}
}Response
Signed PDF
Changes
No recorded changes to this operation across all 1 revision of this API.