# Confirm a verification

> Confirm a verification with POST /v1/sessions/{id}/verifications/{ver_id}/confirm: parameters, a tested cURL and Node SDK example, the response and every error.

Source: https://esigncomply.com/docs/api/sessions/confirm-a-verification

Last updated November 26, 2026

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](https://esigncomply.com/docs/sdk/browser.md) 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`](https://esigncomply.com/docs/api/errors.md#insufficient_permission).

## Request example

### cURL

```bash
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`](https://esigncomply.com/docs/sdk/browser.md) 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](https://esigncomply.com/docs/api.md).

## Response

`200 OK` with a Verification object.

```json
{
  "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`](https://esigncomply.com/docs/api/errors.md#invalid_request) | 400 | None of `code`, `token`, `attestation` or `assertion` was sent for the method. |
| [`plan_feature_unavailable`](https://esigncomply.com/docs/api/errors.md#plan_feature_unavailable) | 403 | The plan is Free or Starter. The message is the same as on the start endpoint. |
| [`not_found`](https://esigncomply.com/docs/api/errors.md#not_found) | 404 | Unknown verification for this session. |
| [`session_not_active`](https://esigncomply.com/docs/api/errors.md#session_not_active) | 409 | The session has ended. |
| [`verification_failed`](https://esigncomply.com/docs/api/errors.md#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`](https://esigncomply.com/docs/api/errors.md#missing_api_key), [`invalid_api_key`](https://esigncomply.com/docs/api/errors.md#invalid_api_key), [`client_token_expired`](https://esigncomply.com/docs/api/errors.md#client_token_expired), [`domain_mismatch`](https://esigncomply.com/docs/api/errors.md#domain_mismatch), [`insufficient_permission`](https://esigncomply.com/docs/api/errors.md#insufficient_permission), [`idempotency_conflict`](https://esigncomply.com/docs/api/errors.md#idempotency_conflict), [`rate_limit_exceeded`](https://esigncomply.com/docs/api/errors.md#rate_limit_exceeded) and [`internal_error`](https://esigncomply.com/docs/api/errors.md#internal_error).

Every error has the same body: `error.type`, `error.code`, `error.message`, `error.doc_url` and `error.request_id`. See [Errors](https://esigncomply.com/docs/api/errors.md).

## 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.

## Related

- [Sessions](https://esigncomply.com/docs/api/sessions.md): the overview of the resource and all of its operations.
- [Complete a session](https://esigncomply.com/docs/api/sessions/complete-a-session.md): `POST /v1/sessions/{id}/complete`
- [Cancel a session](https://esigncomply.com/docs/api/sessions/cancel-a-session.md): `POST /v1/sessions/{id}/cancel`
- [Create a session](https://esigncomply.com/docs/api/sessions/create-a-session.md): `POST /v1/sessions`
- [Retrieve a session](https://esigncomply.com/docs/api/sessions/retrieve-a-session.md): `GET /v1/sessions/{id}`
- [Quickstart](https://esigncomply.com/docs/quickstart.md)
- [Browser SDK](https://esigncomply.com/docs/sdk/browser.md)
- [Errors](https://esigncomply.com/docs/api/errors.md): every error code, with what to do.
- [API conventions](https://esigncomply.com/docs/api.md): authentication, idempotency, rate limits and versioning.
