# Start a verification

> POST /v1/sessions/{id}/verifications starts a signer verification by emailing a one-time code or link to the signer, or by starting a passkey challenge.

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

Last updated November 26, 2026

In the Esign Comply API, `POST /v1/sessions/{id}/verifications` starts a signer verification by emailing a one-time code or link to the signer, or by starting a passkey challenge. The browser SDK calls it when the session's required steps include `identity.verified`, on the Unlimited and Enterprise plans.

`POST /v1/sessions/{id}/verifications` · 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 \
  -H "Authorization: Bearer $CLIENT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "method": "email_otp"
  }'
```

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

> **Plans.** L2 is optional and is on the Unlimited and Enterprise plans, in test mode and in live mode. On Free and Starter, profiles use L1. L3 is on the same plans. On Free and Starter this endpoint and the confirm endpoint return `403` [`plan_feature_unavailable`](https://esigncomply.com/docs/api/errors.md#plan_feature_unavailable).

Needed when `required_steps` contains `identity.verified` (L2 and L3) or `identity.verified:passkey` (L3). An L1 session has neither step and never calls this endpoint. Esign Comply sends the message itself, from its own domain. The message names your organization and the document titles and states that Esign Comply is an independent record keeper. The destination comes from the session's signer object. The browser cannot change it.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `id` | path | string | Yes | ID of the session. |

### Body fields

| Field | Type | Required | Description |
|---|---|---|---|
| `method` | string | Yes | `email_otp`, `email_link` or `passkey`. |

| Method | What happens |
|---|---|
| `email_otp` | A 6-digit code is emailed to `signer.email`. |
| `email_link` | A link is emailed to `signer.email`. Opening it confirms the verification. The page that waits can poll the session until `identity.verified` leaves `remaining_steps`. |
| `passkey` | Starts a WebAuthn ceremony. Needs an L3 profile and a confirmed email verification earlier in the same session. |

Limits: codes are valid for 10 minutes, each verification allows 5 attempts, and a session allows 3 messages.

Show the masked `destination` to the signer.

> **Test mode.** The plan requirement is the same in test mode: Unlimited or Enterprise. Test messages are delivered only to verified addresses of your organization's members. For any other address nothing is sent, `delivered` is `false`, and the response carries the code in `code` together with a `test_note`, so automated tests can continue. The reserved address `signer+ok@test.esigncomply.com` always uses the code `000000`, and `signer+wrongcode@test.esigncomply.com` never verifies. See [Test mode](https://esigncomply.com/docs/guides/test-mode.md).

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

`201 Created` with a Verification object.

```json
{
  "object": "verification",
  "id": "ver_2bQd",
  "method": "email_otp",
  "destination": "d***@example.org",
  "status": "pending",
  "expires_at": "2026-11-26T00:28:26.076Z",
  "attempts_remaining": 5,
  "sends_remaining": 2,
  "delivered": false,
  "code": "031590",
  "test_note": "Test mode: the message was not delivered because the address is not a verified team address. The code is returned here for automation."
}
```

The same call made for an organization on the Free plan answered `403 Forbidden`:

```json
{
  "error": {
    "type": "permission_error",
    "code": "plan_feature_unavailable",
    "message": "Signer verification by emailed code is on Unlimited and Enterprise. The Free plan records at assurance_level L1, with no verification step.",
    "feature": "assurance_l2",
    "assurance_level": "L2",
    "plan": "sandbox",
    "plan_name": "Free",
    "available_on": [
      "unlimited",
      "enterprise"
    ],
    "doc_url": "https://esigncomply.com/docs/api/errors#plan_feature_unavailable",
    "request_id": "req_dtfh"
  }
}
```

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

## Passkey response

For `passkey` the response has no `destination`. It carries a `phase` and WebAuthn `options` to pass to the browser's credential API.

```json
{
  "object": "verification",
  "id": "ver_2bQd",
  "method": "passkey",
  "status": "pending",
  "phase": "authenticate",
  "options": { "challenge": "...", "rpId": "example.com", "allowCredentials": [{ "id": "..." }], "userVerification": "required" },
  "expires_at": "2026-11-21T15:13:01.000Z",
  "attempts_remaining": 5
}
```

| `phase` | Meaning |
|---|---|
| `register` | The signer has no passkey for this domain yet. `options` are credential creation options. Confirm with `attestation`, then start a new `passkey` verification to authenticate. |
| `authenticate` | `options` are credential request options. The challenge is a one-use value bound to the frozen pre-signature payload: the session, the signer's external ID, the pinned document versions and hashes, the profile version and the purpose. Confirm with `assertion`. |

## Errors

| Code | HTTP | When |
|---|---|---|
| [`invalid_request`](https://esigncomply.com/docs/api/errors.md#invalid_request) | 400 | A `method` that is not one of the three above (`param: "method"`), or the session has no `signer.email` to verify (`param: "signer.email"`). |
| [`client_token_expired`](https://esigncomply.com/docs/api/errors.md#client_token_expired) | 401 | The session has ended. |
| [`plan_feature_unavailable`](https://esigncomply.com/docs/api/errors.md#plan_feature_unavailable) | 403 | The plan is Free or Starter, in test mode and in live mode. The message reads `Signer verification by emailed code is on Unlimited and Enterprise. The Starter plan records at assurance_level L1, with no verification step.` The plan name varies. |
| [`not_found`](https://esigncomply.com/docs/api/errors.md#not_found) | 404 | No object with that ID exists in this domain and environment. |
| [`step_out_of_order`](https://esigncomply.com/docs/api/errors.md#step_out_of_order) | 409 | `passkey` before an email verification was confirmed in 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 limit of 3 messages for this session has been reached. Create a new session. |
| [`service_unavailable`](https://esigncomply.com/docs/api/errors.md#service_unavailable) | 503 | The message could not be sent. Try again. |

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), [`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

### Which credential does POST /v1/sessions/{id}/verifications 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 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 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 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?

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?

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.
- [Confirm a verification](https://esigncomply.com/docs/api/sessions/confirm-a-verification.md): `POST /v1/sessions/{id}/verifications/{ver_id}/confirm`
- [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`
- [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.
