Skip to content
DocsMenu

Confirm a verification

View as Markdown

Open this page inChatGPTClaudeCursor

In the Esign Comply API, POST /v1/sessions/{id}/verifications/{ver_id}/confirm confirms a verification with the emailed code, the link token or the passkey response and reports the steps that remain. The browser SDK calls it after the signer types the emailed code or answers the passkey prompt.

POST /v1/sessions/{id}/verifications/{ver_id}/confirm · API version 2026-11-21

Authentication

Send the client token of the session (esc_ct_...) in the Authorization header: Bearer $CLIENT_TOKEN. The browser SDK sends it for you. A client token works for its own session only. In live mode the call must come from a page inside the registered domain; in test mode from localhost, 127.0.0.1, the registered domain or a listed preview host. A secret key is refused with insufficient_permission.

Request example

cURL

curl https://esigncomply.com/v1/sessions/ses_cKJf/verifications/ver_2bQd/confirm \
  -H "Authorization: Bearer $CLIENT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "code": "031590"
  }'

The Node SDK does not make this call. In a browser, @esigncomply/browser makes it with the client token.

This request ran against the API on November 26, 2026, and the response below is what came back. IDs are example values, and long values are shortened with ....

What it does

The plan requirement is the same as for starting a verification: Unlimited or Enterprise, in test mode and in live mode.

Parameters

Name In Type Required Description
id path string Yes ID of the session.
ver_id path string Yes ID of the verification.

Body fields

Send exactly one of these.

Field Type For
code string email_otp: the 6 digits the signer received.
token string email_link: the token from the link, when your page handles the link itself.
attestation object passkey, phase register: the WebAuthn registration response as JSON.
assertion object passkey, phase authenticate: the WebAuthn authentication response as JSON.
status Meaning
confirmed Verification succeeded. Esign Comply appended an identity.verified event, tagged observed, with the method, the masked destination and the attempt count. The step name is identity.verified for a code or link and identity.verified:passkey for a passkey.
failed Wrong code or a response that did not verify. The call still returns 200. attempts_remaining has gone down by one.
registered Passkey registration succeeded. The response carries next: "start_passkey_authentication": start a new passkey verification to authenticate with the new credential.

The event name identity.verified is historical. A verified email address or passkey shows that someone controlling that mailbox or credential took part.

Headers: Idempotency-Key (optional, up to 255 characters) and Esign-Comply-Version (optional, a dated API version). See API conventions.

Response

200 OK with a Verification object.

{
  "object": "verification",
  "id": "ver_2bQd",
  "status": "confirmed",
  "attempts_remaining": 5,
  "remaining_steps": [
    "document.presented:dv_4DNL",
    "notice.captured",
    "intent.captured",
    "signature.applied"
  ]
}

Response fields

Field Type Description
object string
id string
method string
destination string Masked destination.
status string
expires_at datetime
attempts_remaining integer
sends_remaining integer
delivered boolean
code string Test mode only, when the message was not delivered.
phase string Passkey: register or authenticate.
options object Passkey: WebAuthn options.
remaining_steps array of string

Errors

Code HTTP When
invalid_request 400 None of code, token, attestation or assertion was sent for the method.
plan_feature_unavailable 403 The plan is Free or Starter. The message is the same as on the start endpoint.
not_found 404 Unknown verification for this session.
session_not_active 409 The session has ended.
verification_failed 422 The fifth wrong attempt: the session is cancelled and session.cancelled is sent with reason: "verification_failed". Also returned when the code has expired (expired: true): send a new one.

Like every call made with a client token, it can also return missing_api_key, invalid_api_key, client_token_expired, domain_mismatch, insufficient_permission, idempotency_conflict, rate_limit_exceeded and internal_error.

Every error has the same body: error.type, error.code, error.message, error.doc_url and error.request_id. See Errors.

Questions about POST /v1/sessions/{id}/verifications/{ver_id}/confirm

Which credential does POST /v1/sessions/{id}/verifications/{ver_id}/confirm need?

The client token of the session, which starts with esc_ct_. The browser SDK sends it as a Bearer token in the Authorization header. A secret key is refused with insufficient_permission.

Does POST /v1/sessions/{id}/verifications/{ver_id}/confirm work with a test key?

Yes. It works in test mode and in live mode. The mode is the mode of the key that created the session.

Does POST /v1/sessions/{id}/verifications/{ver_id}/confirm count as a signature event?

No. A signature event is counted when a live record is written, by completing a session or by submitting a deferred acceptance. This call writes no record.

Is POST /v1/sessions/{id}/verifications/{ver_id}/confirm idempotent?

Yes, with an Idempotency-Key header of up to 255 characters. A repeat with the same key and the same bytes in the body returns the original response, with the header Idempotent-Replayed: true. The same key with a different body answers 409 idempotency_conflict.

What is the rate limit for POST /v1/sessions/{id}/verifications/{ver_id}/confirm?

240 calls per minute for each session. Past the limit the API answers 429 rate_limit_exceeded with a Retry-After header.

Does the Node SDK have a method for POST /v1/sessions/{id}/verifications/{ver_id}/confirm?

No. The browser SDK, @esigncomply/browser, makes this call for you with the client token of the session.

Last updated · API version 2026-11-21