Skip to content
DocsMenu

Retrieve a session

View as Markdown

Open this page inChatGPTClaudeCursor

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

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

Node SDK

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.

Response

200 OK with a Session object.

{
  "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 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, invalid_api_key, client_token_expired, domain_not_verified, domain_mismatch, insufficient_permission, region_mismatch, 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 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.

Last updated · API version 2026-11-21