Dry-run a jurisdiction resolution
In the Esign Comply API, POST /v1/jurisdictions/resolve resolves the packs, rules, required steps and strings a signing session would apply, without creating a session. Use it in a profile editor, in CI and before enabling a pack, because nothing is stored or metered.
POST /v1/jurisdictions/resolve · API version 2026-11-21
Authentication
Send a secret key in the Authorization header: Bearer $ESIGNCOMPLY_API_KEY. The key needs any permission. Test keys and live keys both work, and each reads and writes the objects of its own environment. Call it from your server: a secret key never goes to a browser. Keys and permissions are described under Authentication.
Request example
cURL
curl https://esigncomply.com/v1/jurisdictions/resolve \
-H "Authorization: Bearer $ESIGNCOMPLY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"profile": "prof_signup_4f1a",
"signer": {
"class": "consumer",
"country": "US",
"region": "US-CA"
},
"documents": [
{
"document": "doc_8Hq2",
"version": "current"
}
],
"context": {
"purpose": "account_signup"
}
}'
Node SDK
import { EsignComply } from "esigncomply";
const esc = new EsignComply(process.env.ESIGNCOMPLY_API_KEY);
const { data, error } = await esc.jurisdictions.resolve(
{
profile: "prof_signup_4f1a",
signer: { class: "consumer", country: "US", region: "US-CA" },
documents: [{ document: "doc_8Hq2", version: "current" }],
context: { purpose: "account_signup" },
},
);
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
Accepts the jurisdiction inputs of POST /v1/sessions and returns the resolution without creating a session. Nothing is stored and nothing is metered. Use it in the profile editor, in CI, and before enabling a pack.
Parameters
Body fields
| Field | Type | Required | Description |
|---|---|---|---|
profile |
string | Yes | Profile ID. |
signer.class |
string | No | consumer, business or employee. |
signer.country |
string | No | ISO 3166-1 alpha-2. |
signer.region |
string | No | ISO 3166-2 (US-CA), or a bare subdivision code with signer.country. |
signer.locality |
string | No | Locality code, for example NYC. |
jurisdictions.mode |
string | No | Overrides the profile's mode for this call. |
jurisdictions.packs |
array | No | Narrows the profile's packs. Required when the mode is explicit. |
jurisdictions.governing_law |
string | No | Overrides the profile's governing law. |
documents[] |
array, up to 10 | No | { "document": "doc_...", "version": "current" }, as on a session. Document types feed rule scope, and each version adds a document.presented:<version_id> step. |
context.purpose |
string | No | For example auto_renewal. |
context.facts |
object | No | Asserted facts the rules read. |
context.locale |
string | No | Selects translations when version is current. |
baseline |
current or latest |
No | current (default) uses the profile's adopted baseline. latest shows what would be enforced after adopting every pending condition. |
livemode |
boolean | No | Defaults to the mode of the key. A test key evaluates as test mode does, with every condition enforced and research-draft state packs applied. Send true with a test key to preview live behavior. |
conformance_enforcement |
notify or block |
No | Live previews only. Defaults to the domain's setting for a failing live signature. Send the other value to preview it, for example block to see the steps and facts live sessions would require before you turn blocking on. |
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 JurisdictionResolution object.
{
"object": "jurisdiction_resolution",
"mode": "auto",
"applied_jurisdictions": [
{
"code": "US-FED",
"version": "2026-11-22",
"reason": "base"
},
{
"code": "US-CA",
"version": "2026-11-21",
"reason": "signer_region"
}
],
"rule_set_version": "2026.11.22",
"rules_fired": [
"US-01",
"US-02",
"US-03"
],
"rule_states": [
{
"rule": "US-01",
"state": "enforce",
"level": "block"
},
{
"rule": "US-02",
"state": "enforce",
"level": "block"
},
{
"rule": "US-04",
"state": "enforce",
"level": "warn"
}
],
"required_steps": [
"client.attached",
"document.presented:dv_3kT9",
"notice.captured",
"intent.captured",
"signature.applied"
],
"advised_steps": [],
"required_strings": [],
"retention_floor": null,
"exclusions": [],
"baseline": "current",
"conformance_enforcement": null,
"guidance_release": "2026.11.2",
"obligations": [
{
"rule": "US-31",
"pack": "US-FED",
"duty_holder": "Customer",
"summary": "Customer: where another law requires keeping a record, keep an accurate, accessible copy for that period, including after exporting from Esign Comply.",
"sources": [
{
"url": "https://www.law.cornell.edu/uscode/text/15/7001",
"title": "15 U.S.C. § 7001(d)(1)(B), (e)"
}
]
},
{
"rule": "US-38",
"pack": "US-FED",
"duty_holder": "Litigant (customer as proponent)",
"summary": "Litigant (customer as proponent): give the adverse party reasonable written notice before trial or hearing and make the record and declaration available for inspection.",
"sources": [
{
"url": "https://www.law.cornell.edu/rules/fre/rule_803",
"title": "FRE 803(6)"
},
{
"url": "https://www.law.cornell.edu/rules/fre/rule_902",
"title": "FRE 902(11), (13), (14)"
},
{
"url": "https://www.govinfo.gov/content/pkg/USCODE-2024-title28/html/USCODE-2024-title28-partV-chap115-sec1746.htm",
"title": "28 U.S.C. § 1746"
}
]
},
{
"rule": "CA-16",
"pack": "US-CA",
"duty_holder": "Provider or plan",
"summary": "Provider or plan: use 14-point or larger authorization text, separate, with a dedicated signature; give the signer a copy and access instructions. Insurance licensee: obtain conspicuous opt-in consent with the signature immediately below, and keep the consent and signed disclosure retrievable while the policy is in force and for five years after.",
"sources": [
{
"url": "https://leginfo.legislature.ca.gov/faces/codes_displaySection.xhtml?lawCode=CIV§ionNum=56.11.",
"title": "Civ. Code § 56.11"
},
{
"url": "https://leginfo.legislature.ca.gov/faces/codes_displaySection.xhtml?lawCode=INS§ionNum=38.6.",
"title": "Ins. Code § 38.6"
}
]
}
],
"recommendations": [
{
"rule": "US-04",
"pack": "US-FED",
"summary": "State in the notice that the signer agrees to sign or transact electronically, and give the signer a way to decline.",
"sources": [
{
"title": "UETA § 5(b) and (c)"
},
{
"url": "https://www.law.cornell.edu/uscode/text/15/7001",
"title": "ESIGN, 15 U.S.C. § 7001(b)(2)"
}
]
},
{
"rule": "US-18",
"pack": "US-FED",
"summary": "Before a material terms update takes effect, notify users and present a blocking screen with an unchecked checkbox and a confirm button.",
"sources": [
{
"url": "https://law.justia.com/cases/massachusetts/supreme-court/2024/sjc-13490-0.html",
"title": "Good v. Uber (Mass. 2024)"
}
]
},
{
"rule": "US-29",
"pack": "US-FED",
"summary": "Do not deliver signed records in a way that blocks saving or printing, because such a record is not enforceable against the recipient.",
"sources": [
{
"title": "UETA § 8(a) and (c): a record whose printing or storage is inhibited is not enforceable against the recipient"
},
{
"url": "https://www.law.cornell.edu/uscode/text/15/7001",
"title": "15 U.S.C. § 7001(e)"
}
]
}
],
"reports": [
{
"rule": "US-18",
"pack": "US-FED",
"summary": "The customer may send its own evidence of the terms-update notice it gave users (`notice.sent`). Esign Comply seals it on receipt as customer-supplied material and does not verify it.",
"supplement_types": [
"notice.sent"
]
},
{
"rule": "CA-16",
"pack": "US-CA",
"summary": "The customer may send its own evidence of the copy and access instructions given to the signer (`copy.delivered`). Esign Comply seals it on receipt as customer-supplied material and does not verify it.",
"supplement_types": [
"copy.delivered"
]
}
],
"advisories": [],
"warnings": []
}
Response fields
| Field | Type | Description |
|---|---|---|
object |
string | |
mode |
string | |
applied_jurisdictions |
array | |
rule_set_version |
string | |
rules_fired |
array of string | |
rule_states |
array | For each fired rule with a record condition: { rule, state, level }. |
required_steps |
array of string | |
advised_steps |
array of string | Live previews: steps a rule in advise would require if it were enforced. Not required. |
conformance_enforcement |
string | The setting the preview ran under: notify or block for a live preview, null for a test one. |
required_strings |
array | |
retention_floor |
object | |
exclusions |
array | |
obligations |
array | |
recommendations |
array | |
reports |
array | |
advisories |
array | |
warnings |
array of string | |
guidance_release |
string | |
would_fail |
object |
Resolution fields
| Field | Description |
|---|---|
mode |
The mode used: auto, strictest or explicit. |
applied_jurisdictions[] |
Each applied pack with code, version and reason. |
rule_set_version |
Version of the rule set, taken from the newest applied pack. |
rules_fired[] |
IDs of the rules that fired. |
rule_states[] |
For each fired rule that has a record condition: rule, state (enforce or advise) and level (block or warn). In a live preview a rule is in enforce when the profile has adopted it and conformance_enforcement is block. |
conformance_enforcement |
The setting the preview ran under: notify or block for a live preview, null for a test one. |
required_steps[] |
The steps a session with these inputs would require, in ceremony order. |
advised_steps[] |
Live previews: steps a rule in advise would require if it were enforced. Not required. A live signature without one is recorded with a block finding and reported. |
required_strings[] |
Wording to render. kind is verbatim (use text, with {slots} you fill, and translations where present) or elements (fill every entry of elements[]). statutory: true means quoted statutory text that cannot be reworded. check: true means its presence in the captured assent region is checked (CR-20). check: false means the wording lives outside the ceremony, for example a renewal reminder: it is served for your prompt and never checked. |
retention_floor |
The longest retention floor among the applied packs, or null. |
exclusions[] |
Exclusion rows hit by the declared document_category: id, category, treatment (blocked or warning), rule, pack. |
obligations[] |
Your duties under the resolved rules, each naming the duty_holder. Esign Comply lists them and does not perform, monitor or verify them. |
recommendations[] |
Practices Esign Comply suggests. Never a condition of recording. |
reports[] |
Supplement types you may send about a rule. Optional. |
advisories[] |
Record conditions in advise that would add steps if they were enforced: rule, finding, notice. |
warnings[] |
Non-blocking concerns. The list is open. See "Warnings". |
would_fail |
Present only when a session with these inputs would be refused for an excluded document category or a missing fact: code (document_type_excluded or jurisdiction_fact_required), message, rule. The dry run still returns 200 so you can read the rest of the resolution. |
baseline, guidance_release |
The baseline mode used and the guidance release in force. |
document_type_excluded and jurisdiction_fact_required are not returned as errors by the dry run. They appear in would_fail. POST /v1/sessions returns them as 422.
Errors
| Code | HTTP | When |
|---|---|---|
invalid_request |
400 | (malformed body, or explicit mode without jurisdictions.packs). |
jurisdiction_unknown |
400 | A pack code on a profile, a session, a dry run or a certificate wording is not in the catalogue. |
not_found |
404 | For an unknown profile or document, and. |
version_not_published |
422 | A session asked for version: "current" of a document that has no published version, or whose only versions have an effective_at in the future. |
jurisdiction_not_enabled |
422 | (strict profiles only). |
signer_region_required |
422 | The profile sets on_unknown_region: "reject", the signer is in the United States, and the session has no signer.region. |
Like every call made with a secret key, it can also return missing_api_key, invalid_api_key, domain_not_verified, insufficient_permission, idempotency_conflict, 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 POST /v1/jurisdictions/resolve
Which credential does POST /v1/jurisdictions/resolve need?
A secret key with any permission. Send it as a Bearer token in the Authorization header, from your server only. A session client token is refused with insufficient_permission.
Does POST /v1/jurisdictions/resolve work with a test key?
Yes. It works with test keys and live keys. A test key reads and writes test objects only, and a live key works once the domain is verified.
Does POST /v1/jurisdictions/resolve 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/jurisdictions/resolve 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/jurisdictions/resolve?
The limit is counted for each key and depends on the plan: 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 POST /v1/jurisdictions/resolve?
Yes: esc.jurisdictions.resolve() in the esigncomply package. It resolves to { data, error } and does not throw.
Related
- Jurisdictions: the overview of the resource and all of its operations.
- List jurisdiction packs:
GET /v1/jurisdictions - Retrieve a jurisdiction pack:
GET /v1/jurisdictions/{code} - List jurisdiction pack versions:
GET /v1/jurisdictions/{code}/versions - Jurisdiction packs
- Errors: every error code, with what to do.
- API conventions: authentication, idempotency, rate limits and versioning.
Last updated · API version 2026-11-21