# Retrieve a session

> GET /v1/sessions/{id} reads the state of a signing session: its status, its completed and remaining steps, and its record ID once completed.

Source: https://esigncomply.com/docs/api/sessions/retrieve-a-session

Last updated November 26, 2026

In the Esign Comply API, `GET /v1/sessions/{id}` reads the state of a signing session: its status, its completed and remaining steps, and its record ID once completed. The browser SDK calls it with the client token, and your server calls it to recover a lost record ID.

`GET /v1/sessions/{id}` · API version `2026-11-21`

## Authentication

Send the client token of the session (`esc_ct_...`) or a secret key with any permission, in the `Authorization` header: `Bearer $CLIENT_TOKEN` or `Bearer $ESIGNCOMPLY_API_KEY`. A client token works for its own session only, from a page inside the registered domain (live) or on the test allowlist (test). A secret key is used from your server only. Test and live credentials both work.

## Request example

### cURL

```bash
curl https://esigncomply.com/v1/sessions/ses_5nWq \
  -H "Authorization: Bearer $ESIGNCOMPLY_API_KEY"
```

### Node SDK

```ts
import { EsignComply } from "esigncomply";

const esc = new EsignComply(process.env.ESIGNCOMPLY_API_KEY);

const { data, error } = await esc.sessions.get("ses_5nWq");
```

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

Reading a session whose lifetime has passed marks it `expired` and sends the `session.expired` webhook.

The response depends on the caller.

| Caller | Fields |
|---|---|
| Client token | `object`, `id`, `status`, `livemode`, `expires_at`, `assurance_level`, `signature_method`, `capture_mode`, `minimal_capture`, `required_steps`, `advised_steps`, `completed_steps`, `remaining_steps`, `documents[]`, `required_strings[]`, `record_id`, `purpose`, `locale`, `api_url` |
| Secret key | All of the above, plus `profile`, `applied_jurisdictions[]`, `jurisdiction_mode`, `rule_set_version`, `rules_fired[]`, `conformance_enforcement`, `retention_floor`, `guidance_release`, `advisories[]`, `warnings[]`, `signer` (`class`, `country`, `region`, `locality`, `actor_type`), `context` (`url`, `purpose`, `facts`), `metadata`, `created_at`, `completed_at` |

Neither view returns the client token again or the signer's name, email or phone. `record_id` is set once the session is completed. Use it to recover the record ID when a completion response was lost.

## Parameters

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

Headers: `Esign-Comply-Version` (optional, a dated API version). See [API conventions](https://esigncomply.com/docs/api.md).

## Response

`200 OK` with a Session object.

```json
{
  "object": "session",
  "id": "ses_5nWq",
  "status": "ready",
  "livemode": false,
  "expires_at": "2026-11-26T00:46:11.521Z",
  "assurance_level": "L1",
  "signature_method": "checkbox",
  "capture_mode": "direct",
  "minimal_capture": false,
  "required_steps": [
    "client.attached",
    "document.presented:dv_3kT9",
    "document.presented:dv_Lm02",
    "notice.captured",
    "intent.captured",
    "signature.applied"
  ],
  "advised_steps": [],
  "completed_steps": [
    "session.created",
    "client.attached",
    "document.presented:dv_3kT9",
    "document.presented:dv_Lm02",
    "notice.captured",
    "intent.captured"
  ],
  "remaining_steps": [
    "signature.applied"
  ],
  "api_url": "https://esigncomply.com/v1",
  "documents": [
    {
      "document_id": "doc_8Hq2",
      "version_id": "dv_3kT9",
      "render_hash": "sha256:56dbea58...",
      "content_hash": "sha256:4e712fcc...",
      "title": "Terms of Service",
      "type": "terms",
      "language": "en",
      "format": "markdown"
    },
    {
      "document_id": "doc_Pv71",
      "version_id": "dv_Lm02",
      "render_hash": "sha256:ab32791f...",
      "content_hash": "sha256:8499061f...",
      "title": "Privacy Notice",
      "type": "privacy_notice",
      "language": "en",
      "format": "text"
    }
  ],
  "required_strings": [],
  "record_id": null,
  "purpose": "account_signup",
  "locale": "en-US",
  "profile": {
    "id": "prof_signup_4f1a",
    "version": 1
  },
  "applied_jurisdictions": [
    {
      "code": "US-FED",
      "reason": "base",
      "version": "2026-11-22"
    },
    {
      "code": "US-CA",
      "reason": "signer_region",
      "version": "2026-11-21"
    }
  ],
  "jurisdiction_mode": "auto",
  "rule_set_version": "2026.11.22",
  "rules_fired": [
    "US-01",
    "US-02",
    "US-03"
  ],
  "conformance_enforcement": null,
  "retention_floor": null,
  "guidance_release": "2026.11.2",
  "advisories": [],
  "warnings": [],
  "signer": {
    "class": "consumer",
    "country": "US",
    "region": "US-CA",
    "locality": null,
    "actor_type": "human"
  },
  "context": {
    "url": "http://localhost:3000/signup",
    "purpose": "account_signup",
    "facts": {}
  },
  "metadata": {
    "plan": "pro"
  },
  "created_at": "2026-11-26T00:16:11.525Z",
  "completed_at": null
}
```

### Response fields

| Field | Type | Description |
|---|---|---|
| `object` | string |  |
| `id` | string |  |
| `status` | string | created, in_progress, awaiting_verification, ready, completed, expired or cancelled. |
| `livemode` | boolean |  |
| `client_token` | string | esc_ct_... Returned at creation only. The one credential that may reach the browser. |
| `expires_at` | datetime |  |
| `profile` | object |  |
| `assurance_level` | string |  |
| `signature_method` | string |  |
| `capture_mode` | string |  |
| `minimal_capture` | boolean |  |
| `required_steps` | array of string | The authoritative list for this session. |
| `advised_steps` | array of string | Live sessions: steps a rule in advise would require if it were enforced. Not required: a signature without one is recorded with a block finding and reported. |
| `completed_steps` | array of string |  |
| `remaining_steps` | array of string |  |
| `documents` | array |  |
| `applied_jurisdictions` | array |  |
| `jurisdiction_mode` | string |  |
| `rule_set_version` | string |  |
| `rules_fired` | array of string |  |
| `conformance_enforcement` | string | What this session does when the signature fails a rule: notify or block for a live session (the domain's setting when the session was created), null in test mode. |
| `required_strings` | array |  |
| `retention_floor` | object |  |
| `guidance_release` | string |  |
| `advisories` | array |  |
| `warnings` | array of string |  |
| `record_id` | string |  |
| `api_url` | string |  |

## Errors

| Code | HTTP | When |
|---|---|---|
| [`not_found`](https://esigncomply.com/docs/api/errors.md#not_found) | 404 | No object with that ID exists in this domain and environment. |

Like every call made with a client token or a secret key, 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_not_verified`](https://esigncomply.com/docs/api/errors.md#domain_not_verified), [`domain_mismatch`](https://esigncomply.com/docs/api/errors.md#domain_mismatch), [`insufficient_permission`](https://esigncomply.com/docs/api/errors.md#insufficient_permission), [`region_mismatch`](https://esigncomply.com/docs/api/errors.md#region_mismatch), [`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 GET /v1/sessions/{id}

### Which credential does GET /v1/sessions/{id} need?

The client token of the session, or a secret key with any permission. Send either one as a Bearer token in the Authorization header. A client token works for its own session only.

### Does GET /v1/sessions/{id} work with a test key?

Yes. It works in test mode and in live mode. A client token carries the mode of the key that created its session.

### Does GET /v1/sessions/{id} 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 GET /v1/sessions/{id} idempotent?

It is a read, so it is safe to repeat. It takes no Idempotency-Key header.

### What is the rate limit for GET /v1/sessions/{id}?

With a client token, 240 calls per minute for each session. With a secret key, the plan's limit for each key: 2 requests per second on Free, 10 on Starter, 50 on Unlimited and 100 on Enterprise. Past the limit the API answers 429 rate_limit_exceeded with a Retry-After header.

### Does the Node SDK have a method for GET /v1/sessions/{id}?

Yes: esc.sessions.get() in the esigncomply package. It resolves to { data, error } and does not throw.

## Related

- [Sessions](https://esigncomply.com/docs/api/sessions.md): the overview of the resource and all of its operations.
- [Append a ceremony event](https://esigncomply.com/docs/api/sessions/append-a-ceremony-event.md): `POST /v1/sessions/{id}/events`
- [Get the access sample](https://esigncomply.com/docs/api/sessions/get-the-access-sample.md): `GET /v1/sessions/{id}/access-sample`
- [Start a verification](https://esigncomply.com/docs/api/sessions/start-a-verification.md): `POST /v1/sessions/{id}/verifications`
- [Confirm a verification](https://esigncomply.com/docs/api/sessions/confirm-a-verification.md): `POST /v1/sessions/{id}/verifications/{ver_id}/confirm`
- [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.
