Nexiel Seal quickstart
A qualified electronic seal (eIDAS Art. 3(27)) of your organization on a PDF. One of the representatives declared on your approved KYB application authorises each seal in their EUDI wallet, and a qualified trust service provider seals with your organization's own seal credential.
Built to ETSI TS 119 432 and the CSC API v2.2. Production requires a qualified trust service provider account. Until one is configured, live requests return 409 qseal_not_configured. In test mode, the whole flow runs end to end with the Nexiel TEST QTSP, whose seals are not qualified. See testing in test mode.
A seal and a signature
A seal belongs to your organization. The visible signer name in the sealed PDF is your organization's legal name, and the certificate is your organization's seal certificate. The representative who approves the seal is recorded on the operation, not in the document. A person signing as themselves uses Nexiel Sign instead. The two are separate requests with separate records.
How the seal is authorised
- You send the PDF and the representative to
POST /v1/seal. Nexiel checks that your KYB application is approved and that the representative is declared on it. - Nexiel asks the qualified trust service provider (QTSP) holding the credential for its certificate, checks that it is a qualified certificate of the right kind that its certificate authority has not revoked or put on hold (checked again just before signing), and prepares the PAdES seal (ETSI EN 319 142-1, baseline B). That fixes the exact data to be signed and its digest.
- The representative scans the wallet request (or opens it on their phone). Their EUDI wallet presents their PID and shows what they are approving: the document label, the QTSP credential, the signature qualifier
eu_eidas_qeseal, the hash algorithm and the digest. When they approve, the wallet signs the hash of that approval into its key-binding JWT. - Nexiel verifies the presentation, checks that the signed hash is the hash of exactly this approval, and checks that the PID belongs to the representative you named.
- The approval goes to the QTSP over the CSC API v2.2. The QTSP activates the credential for exactly that digest, and may first ask the signer to confirm in its own authorization step. It then returns the signature value, which Nexiel checks against the certificate and embeds in the PDF.
Nexiel never asks for or handles a PIN. The QTSP's own authorization step decides how it confirms the signer. Any one declared UBO, director or senior managing official may authorise a seal alone. The seal credential is your organization's, provisioned at the QTSP, never a credential Nexiel shares between customers.
Presenting a PID together with transaction data is new for EUDI wallets, and the PID rulebook does not yet describe it, so a wallet may decline the request. The seal then fails with wallet_authorization_failed and nothing is signed.
Start a request
Every request needs your API key, test or live. document is the PDF, base64-encoded. documentLabel is what the representative sees in their wallet, so keep it short and free of personal data.
curl -s -X POST https://compliance.nexiel.io/v1/seal \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $NEXIEL_ACCESS_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"document": "JVBERi0xLjQKJcOkw7zDtsO...(base64 PDF, truncated)",
"documentLabel": "Invoice 2026-10",
"authorizingRepresentativeId": "6f3c2a52-6c7b-4b0c-9a37-5f5d3f1d2c11"
}'{
"id": "b2b1c4a7-3e0f-4f9d-8c6a-1e2d3f4a5b6c",
"status": "awaiting_wallet",
"walletRequest": {
"sessionId": "0d6f2b5e-8a51-4c0b-9e6f-3a2f1c7d9b10",
"authorizationRequestUri": "openid4vp://?client_id=x509_hash%3AUvo3HtuIxuhC92rShpgqcT3YXwrqRxWEviRiA0OZszk&request_uri=...&request_uri_method=post",
"requestUri": "https://compliance.nexiel.io/v1/verify/sessions/0d6f2b5e-8a51-4c0b-9e6f-3a2f1c7d9b10/request-object",
"clientId": "x509_hash:Uvo3HtuIxuhC92rShpgqcT3YXwrqRxWEviRiA0OZszk",
"flow": "cross_device",
"expiresAt": "2026-10-11T10:10:00.000Z",
"sessionToken": "N8hQ2cXvL0aP5mT3rB7yK1wE9sD4fG6jZ2uV8iO0qRc"
},
"documentHashSha256": "9f2b3c4d5e6f708192a3b4c5d6e7f8091a2b3c4d5e6f708192a3b4c5d6e7f809",
"dtbsrHash": "sTOgwOm+474gFj0q0x1iSNspKqbcse4IeiqlDg/HWuI=",
"hashAlgorithmOid": "2.16.840.1.101.3.4.2.1",
"signatureQualifier": "eu_eidas_qeseal",
"credentialId": "GX0112348",
"qtsp": {
"mode": "csc",
"provider": "example-qtsp"
},
"expiresAt": "2026-10-11T10:10:00.000Z"
}Show walletRequest.authorizationRequestUri as a QR code. For a phone, send "flow": "same_device" and a redirectUri: the wallet returns the user there with a response_code, which your page sends to POST /v1/verify/sessions/{walletRequest.sessionId}/redirect-return, exactly as for any same-device Nexiel Verify session.
This is the approval the wallet shows and signs, before base64url encoding:
{
"type": "https://cloudsignatureconsortium.org/2025/qes-approval",
"credential_ids": [
"pid_signer"
],
"transaction_data_hashes_alg": [
"sha-256"
],
"credentialID": "GX0112348",
"signatureQualifier": "eu_eidas_qeseal",
"numSignatures": 1,
"documentDigests": [
{
"label": "Invoice 2026-10",
"hash": "sTOgwOm+474gFj0q0x1iSNspKqbcse4IeiqlDg/HWuI=",
"hashType": "dtbsr"
}
],
"hashAlgorithmOID": "2.16.840.1.101.3.4.2.1"
}Read the result
Read GET /v1/seal/requests/{id}, or subscribe to the seal.request.completed, seal.request.failed and seal.request.qtsp_authorization_required webhook events. When the status is awaiting_qtsp_authorization, open qtspAuthorizationUrl in the representative's browser. The QTSP sends them back to Nexiel, which completes the seal and redirects them to the returnUri you gave. Reading the request never hands the PDF over, so polling and retries are safe. Once the status is completed, signedDocumentStatus is available.
{
"id": "b2b1c4a7-3e0f-4f9d-8c6a-1e2d3f4a5b6c",
"status": "completed",
"failureReason": null,
"environment": "production",
"representativeUboId": "6f3c2a52-6c7b-4b0c-9a37-5f5d3f1d2c11",
"verifySessionId": "0d6f2b5e-8a51-4c0b-9e6f-3a2f1c7d9b10",
"documentHashSha256": "9f2b3c4d5e6f708192a3b4c5d6e7f8091a2b3c4d5e6f708192a3b4c5d6e7f809",
"dtbsrHash": "sTOgwOm+474gFj0q0x1iSNspKqbcse4IeiqlDg/HWuI=",
"hashAlgorithmOid": "2.16.840.1.101.3.4.2.1",
"signatureQualifier": "eu_eidas_qeseal",
"credentialId": "GX0112348",
"qtsp": {
"mode": "csc",
"provider": "example-qtsp"
},
"transactionDataHash": "OJcnQQByvV1iTYxiQQQx4dact-TNnSG-Ku_cs_6g55Q",
"qtspAuthorizationUrl": null,
"signedDocumentStatus": "available",
"signedDocumentHashSha256": "1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d",
"operationId": "7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d",
"frozenDecisionArtifact": {
"engineVersion": "0.3.0+src.024c0eba57c8",
"cscApiSpecVersion": "2.2.0.0",
"subFilter": "ETSI.CAdES.detached",
"authorizationMethod": "eudi_wallet",
"qtspProvider": "example-qtsp",
"cscCredentialId": "GX0112348"
},
"createdAt": "2026-10-11T10:00:00.000Z",
"expiresAt": "2026-10-11T10:25:00.000Z",
"completedAt": "2026-10-11T10:03:12.000Z"
}Claim the signed PDF
Take the PDF with POST /v1/seal/requests/{id}/document/claim. It needs your API key with full scope and an Idempotency-Key. Use a key you can recreate, such as claim- followed by the request id: if your process stops after the claim, a retry with the same key within one hour returns the same PDF. After that hour Nexiel deletes its copy and keeps only the hashes. The request then reads signedDocumentStatus: "delivered".
curl -s -X POST https://compliance.nexiel.io/v1/seal/requests/$REQUEST_ID/document/claim \
-H "Authorization: Bearer $NEXIEL_ACCESS_TOKEN" \
-H "Idempotency-Key: claim-$REQUEST_ID"{
"id": "b2b1c4a7-3e0f-4f9d-8c6a-1e2d3f4a5b6c",
"signedDocument": "JVBERi0xLjQKJcOkw7zDtsOf...(base64 signed PDF, truncated)",
"signedDocumentHashSha256": "1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d",
"claimedAt": "2026-10-11T10:04:00.000Z",
"replayableUntil": "2026-10-11T11:04:00.000Z"
}409 signed_document_already_claimed: claimed already with another key. Retry with the original key within the hour.409 signed_document_not_ready: the request is not completed yet.404 signed_document_not_available: the request failed, so there is no PDF.410 signed_document_expired: never claimed within 7 days of completion, and deleted.410 signed_document_no_longer_held: claimed, and the hour for retries has passed.400 idempotency_key_required: noIdempotency-Key.403 forbidden_scope: a read-only key.
Webhook events
The events go to the endpoints registered for the API client that created the request, in the same signed envelope as every other Nexiel event. The id is stable across retries, so use it to deduplicate. Events carry identifiers, hashes and the outcome only, never the document, its label or anything about the representative. seal.request.completed adds operationId and signedDocumentHashSha256 (claim the PDF itself as shown above), seal.request.failed adds failureReason, and seal.request.qtsp_authorization_required adds qtspAuthorizationUrl. The wallet approval session also sends its own verify.session.completed or verify.session.failed event.
{
"id": "5e1d7c3a-9b2f-4a61-8d0e-2c4b6a8f1e37",
"type": "seal.request.completed",
"createdAt": "2026-10-11T10:03:12.000Z",
"data": {
"signingRequestId": "b2b1c4a7-3e0f-4f9d-8c6a-1e2d3f4a5b6c",
"verifySessionId": "0d6f2b5e-8a51-4c0b-9e6f-3a2f1c7d9b10",
"clientId": "example-api-client",
"status": "completed",
"mode": "production",
"signatureQualifier": "eu_eidas_qeseal",
"documentHashSha256": "9f2b3c4d5e6f708192a3b4c5d6e7f8091a2b3c4d5e6f708192a3b4c5d6e7f809",
"dtbsrHash": "sTOgwOm+474gFj0q0x1iSNspKqbcse4IeiqlDg/HWuI=",
"timestamp": "2026-10-11T10:03:12.000Z",
"operationId": "7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d",
"signedDocumentHashSha256": "1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d"
}
}A request that fails names the reason:
wallet_authorization_failed: The wallet declined, the PID did not match the representative, or the wallet signed a different approval.wallet_authorization_expired: Nobody answered the wallet request before it expired.wallet_approval_mismatch: The recorded approval does not name this credential or this digest.qtsp_authorization_denied: The signer did not complete, or refused, the QTSP’s own authorization step.qtsp_authorization_mismatch: The QTSP authorized something other than what the signer approved.qtsp_signature_invalid: The QTSP returned a signature that does not verify against the credential certificate.qtsp_unavailable: The QTSP could not be reached, or failed.qtsp_rejected: The QTSP refused the request.document_integrity_failed: The prepared document no longer produced the approved digest. Nothing was signed.expired: The signer did not finish the QTSP’s authorization step in time.qtsp_credential_not_found: The QTSP no longer knows the credential this request was created with.qtsp_not_configured: The QTSP this request was created with is no longer configured on the service.signing_certificate_not_qualified: Just before signing, the QTSP signing certificate no longer qualified (for example it had expired). Nothing was signed.qualified_ca_trust_anchors_not_configured: Just before signing, no trusted-list anchors were available to validate the QTSP signing certificate. Nothing was signed.signing_certificate_revoked: Just before signing, the certificate authority reported the QTSP signing certificate as revoked. Nothing was signed.signing_certificate_suspended: Just before signing, the certificate authority reported the QTSP signing certificate as on hold. Nothing was signed; start a new request once the hold is lifted.signing_certificate_revocation_unavailable: Just before signing, the revocation state of the QTSP signing certificate could not be established. Nothing was signed.
How the wallet holder is matched
The wallet request asks for three PID claims and nothing else: given_name, family_name and birthdate. The birthdate must equal the date of birth on your KYB application. The names are compared as words, ignoring case, accents and punctuation. Every word of the declared full name must appear in the PID, and every word of the PID family name must appear in the declaration, so a PID may carry a middle name the declaration leaves out but not the other way round. A representative with no date of birth on file cannot sign.
What Nexiel keeps
- The document hash, the digest the representative approved, the transaction data hash their wallet signed, and the signed document hash.
- The representative's id, the QTSP credential id, and the engine, CSC API and PDF format versions that produced the seal.
- The outcome of the identity match. The PID claims themselves are used inside the check and then discarded.
- The signed PDF, encrypted, for one hour after you claim it (so a retry can receive it again), or for 7 days if it is never claimed. The unsigned document only until the seal is made.
Errors when you start a request
401 unauthorized: no valid API key.403 kyb_not_approvedorno_linked_kyb_client: the key is not linked to an approved organization.403 representative_not_authorized: the representative is not declared on your approved KYB application.409 representative_identity_not_on_file: there is no full name and date of birth to match a wallet against.409 signing_credential_not_provisioned: no QTSP credential is on file.400 document_not_pdf.409 idempotency_key_conflict: the same key with a different request.409 qes_not_configuredorqseal_not_configured: no QTSP account is configured.502or503with aqtsp_*code: the QTSP refused or could not be reached (retry a503).
Testing in test mode
With a test key, the Nexiel TEST QTSP signs. It issues each representative (or, for seals, each organization) a TEST credential whose certificate chains to the Nexiel TEST CA, published at GET /v1/verify/sandbox/test-ca.pem. A test-mode seal therefore validates against that TEST root, which no relying party trusts. It is not a qualified seal, and live mode refuses every TEST credential and certificate. The wallet request, the identity match, the approval binding, the PAdES assembly and the claim work as in live mode. Two steps differ: the TEST QTSP accepts the wallet approval Nexiel verified as its activation, so there is no QTSP authorization step, and it does not check that its certificate is qualified.
Test mode still needs an approved KYB application with the representative declared on it, so use a test key of your approved organization, not an anonymous key from the test keys page. The synthetic PID of the sandbox wallet does not carry your representative's name and date of birth, so the wallet must present a test PID that does, from a test PID issuer you add with POST /v1/verify/test-issuer-anchors.
Standards
- ETSI TS 119 432 V1.3.1 §6.4.2 and Annex B: wallet approval of qualified signature or seal creation, here with the signature qualifier
eu_eidas_qeseal(CSC data model v1.0.0 §7.5). - CSC data model bindings v1.0.0 §7: the
https://cloudsignatureconsortium.org/2025/qes-approvaltransaction data type. - CSC API v2.2 §8.2 and §11.13: credential authorization with authorization details, then signatures/signHash.
- ETSI EN 319 142-1 V1.2.1: PAdES baseline B.
Reference
POST /v1/seal, GET /v1/seal/requests/{id} and POST /v1/seal/requests/{id}/document/claim are documented with full schemas and examples on the Verify API reference.