QES identify and sign
Identify one to ten people and collect qualified electronic signatures under eIDAS on a PDF completed after identification. In testing, on request.
In testing. The complete flow runs in our test environment; there is no production host yet. Access, test credentials and the base URL on request from IDCanopy.
QES identify and sign identifies one to ten people and has each of them sign a PDF with a qualified electronic signature (QES) under eIDAS. It is one of IDCanopy's identity and signing blocks: QES identification verifies a person by issuing a one-time qualified certificate, and eSigning signs a document. This API combines the two for documents that are completed only after identification, such as a contract filled with the verified names. After identification it fills your stored contract template, or takes a PDF you compose, then collects the signatures.
In Workflows & UI, blocks such as device and phone risk checks, an identification method (EUDI wallet, QES identification or NFC) and eSigning run as journey steps in the order your process needs. QES identification and signing join them as steps; until then, this API is how you use them.
To identify a person without signing a document of yours, see
QES identification: the same API with
mode: identification.
Flow
Successful path for the separate QES identify-and-sign service, available on request in a test environment. Not the Umbrella /onboarding/* API. One signer failing fails the session; failed, cancelled and expired sessions do not continue to signing or download.
POST /qes-onboarding/sessionscreates a session with one to tensignersand returns aurlper signer. Send each person to their ownurlto identify. The session isidentifying.- When the signers named by
document_afterhave identified (default: all of them), the session moves toawaiting_documentand your webhook receivessession.awaiting_document.GET /qes-onboarding/sessions/{session_id}now carries each signer's identification summary. - The document comes from one of three sources, chosen at creation: you upload the PDF with
PUT /qes-onboarding/sessions/{session_id}/document(default); a stored template is used as is (template_id); or a stored template is filled fromdocument.dataand the identified name. With a template the pause passes without a call from you. The session moves tosigning. - Signers sign one at a time on the same PDF: in
signing_order: orderedin the order given, inparallelin the order they identified. When a signer's turn comes you receivesigner.signing; send that person to theirurl. Nobody else notifies them. - On
session.completed, read the session for the per-signer evidence and download the one signed PDF, carrying every signature, fromGET /qes-onboarding/sessions/{session_id}/signed-document.
A session that is not finished can be cancelled with
POST /qes-onboarding/sessions/{session_id}/cancel.
One signer failing or expiring ends the whole session failed with failure_reason: signer_failed
and cancels the other signers' requests. There is no partial completion and no replacing a signer;
create a new session instead.
Every session expires 7 days after creation, whatever the number of signers or the order;
expires_at is that moment.
Where the document comes from
Usually the contract is fixed when you create the session: a stored template, used as is
(template_id) or with a few form fields filled from your data (document.template_id and
document.data). When the template is filled, the verified names go into its first_name and
last_name fields, if it has them. Once the signers named by document_after have identified, the
session moves on to signing by itself.
For more freedom in composing the contract, leave the document out at creation and upload the
final PDF after identification, when the identified data is known. The session waits at
awaiting_document until the PDF arrives.
Either way, the signature_fields you name at creation are passed to the signing service with the
request, so the PDF must contain exactly those fields. The content around them is yours to choose.
QES identification needs neither: it signs IDCanopy's contract.
Statuses
The session:
| Status | Meaning | Next |
|---|---|---|
created | Being set up. | identifying |
identifying | Signers can identify at their url; the document is not yet due. | awaiting_document |
awaiting_document | The signers named by document_after identified. Upload the PDF; with a template this passes without a call from you. | signing |
signing | The document is placed; signers sign one after another. | completed |
completed | Every signer signed. Final. | |
failed | Ended without all signatures. Final. | |
cancelled | Cancelled by you. Final. | |
expired | Reached expires_at. Final. |
Each signer, in signers[]:
| Status | Meaning |
|---|---|
identifying | Can identify at url. |
identified | Identified; waiting for the document or for their turn. |
signing | Their turn, announced by signer.signing; can sign at url. |
completed | Signed. |
failed, cancelled, expired | Final. A final signer other than completed ends the session. |
A session that is not completed can carry a failure_reason: provider_unavailable,
provider_failed, provider_expired, document_not_uploaded, cancelled_by_client,
signer_failed (a signer ended failed or expired, including a cancellation on the signing
service's side; see that signer's failure_reason) or template_deleted (the template was deleted
before the pause). A signer's failure_reason is provider_failed, provider_expired or
signature_not_qualified. An expired session has failure_reason null, or document_not_uploaded
when it was still awaiting_document. The session and every signer keep a history of status
changes, oldest first.
Authentication
Send your API token as Authorization: Bearer <token> on every call. Tokens are issued by
IDCanopy on request, for the test environment only.
Errors
Errors are application/problem+json with type, title, status, code and detail. Branch on
the HTTP status and code.
| HTTP | code | Meaning | What to do |
|---|---|---|---|
| 400 | invalid_request | The request is malformed or fails validation; detail names the field. | Fix the request. |
| 400 | template_not_found | Session creation names an unknown template_id. | Store the template first or fix the id. |
| 401 | unauthorized | Missing or invalid token. | Check the token. |
| 403 | forbidden | The token is valid but not enabled for QES onboarding. | Contact IDCanopy. |
| 404 | session_not_found | No session with this id for your account. | Check the id. |
| 404 | template_not_found | No template with this id for your account. | Check the id. |
| 404 | evidence_not_found | The evidence file is unknown or no longer available. | List the evidence again. |
| 409 | wrong_state | The session is not in a state that allows this call. | Read the session and follow its status. |
| 409 | idempotency_conflict | The Idempotency-Key was used with a different body. | Use a new key for a new request. |
| 429 | rate_limited | Rate limit reached. | Retry after Retry-After seconds. |
| 500 | internal_error | Unexpected error. | Retry later. |
| 503 | identification_unavailable | Identification sessions are not configured on this environment; nothing was created. | Retry later. |
| 503 | protocol_unavailable | The identification protocol cannot be generated right now. | Retry later. |
| 502 | provider_unavailable | The signing service did not respond as expected. | Retry later; after a document upload, read the session first (see Sessions). |
Known limitation
After a service restart a signer may receive the resume call twice; harmless when the signing service treats a repeated resume as idempotent (open question to the signing service).
Changes in 0.6.0
- New
GET /qes-onboarding/sessions/{session_id}/protocol.pdf: an identification protocol for a completed identification session, generated on demand, nothing stored. See Identification protocol.
Changes in 0.5.0
Additive: three evidence routes. See Download the evidence.
GET /qes-onboarding/sessions/{session_id}/evidencelists a signer's evidence.GET /qes-onboarding/sessions/{session_id}/evidence/{evidence_id}downloads one file.GET /qes-onboarding/sessions/{session_id}/evidence.zipdownloads the evidence as one archive.
Changes in 0.4.1
- In
mode: identification,signature_fieldson the signer is optional; omitted, the signing service signs every signature field in its contract. At most one entry when given. Sign mode is unchanged.
Changes in 0.4.0
Additive; existing requests and responses are unchanged apart from the new mode field, which may be
omitted.
POST /qes-onboarding/sessionstakesmode(sign, the default, oridentification),languageand, in identification mode only,contract.display. See QES identification.Sessiongainsmode, andcontractin identification mode, where each signer'sidentificationis the full data set (IdentificationFull) with per-field checks.- New webhook event
session.signing, sent by identification-mode sessions, which send nosigner.*events. - New 503
identification_unavailableon session creation.
Changes in 0.3.0
Breaking: multi-signer sessions. Nothing was deployed on 0.1.1 or 0.2.0, so no client is affected.
POST /qes-onboarding/sessionstakessigners[](1 to 10) instead ofperson,signature_fieldsandredirect_url.Session.url,identificationandsignaturemoved intoSession.signers[], each signer with its own status.Sessiongainssigning_order(parallelorordered) anddocument_after.- Webhook events gain
signer_idandsigner_reference, and four event types:signer.identified,signer.signing,signer.completed,signer.failed. - New
Idempotency-Keyheader on session creation: a repeat answers 200 with the first session, a different body 409idempotency_conflict. A request that ends in 502 releases its key, so the same key can be sent again. - New
GET /qes-onboarding/sessions?reference=with cursor paging. failure_reasongainssigner_failed: one signer failing fails the session and cancels the rest.- Behaviour change: on a one-signer session a signer's failure now ends the session with
failure_reasonsigner_failedand the detail on the signer, where 0.2.0 putprovider_failed/provider_expiredon the session. - Behaviour change: sessions expire 7 days after creation;
expires_atis set by IDCanopy, no longer taken from the signing service.
Changes in 0.2.0
- New: templates,
PUT/GET/DELETE /qes-onboarding/templates/{template_id}, andtemplate_idordocument {template_id, data}on session creation (at most one of them). - Behaviour change: a session created with a stored template that is deleted before the session
reaches the pause ends
failedwith the newfailure_reasontemplate_deleted. Sessions already past the pause keep the copy they were given. - Behaviour change:
X-Signaturecan carry twov1=entries for 24 hours after a secret rotation; accept a delivery when anyv1matches. Reject a delivery whosetis more than 5 minutes from your clock. - Tokens are issued by IDCanopy on request, test environment only.
Pages
- QES identification: identification only, confirmed with one qualified signature; the identification protocol.
- Sessions: create, find by reference, read, upload the document, download the signed PDF and the evidence, cancel; templates.
- Webhooks: set the URL, verify the signature, the events.
- Reference: every operation and schema.