Create a profile
In the Esign Comply API, POST /v1/profiles creates a profile, the named rule set that signing sessions run under, and returns it at version 1. Call it with a full_access key during setup, before your server creates the first session that names the profile.
POST /v1/profiles · API version 2026-11-21
Authentication
Send a secret key in the Authorization header: Bearer $ESIGNCOMPLY_API_KEY. The key needs full_access 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/profiles \
-H "Authorization: Bearer $ESIGNCOMPLY_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: create-profile-signup" \
-d '{
"name": "Signup",
"jurisdictions": [
"US-FED",
"US-CA"
],
"jurisdiction_mode": "auto",
"on_unknown_region": "strictest",
"method": "checkbox",
"assurance_level": "L1"
}'
Node SDK
import { EsignComply } from "esigncomply";
const esc = new EsignComply(process.env.ESIGNCOMPLY_API_KEY);
const { data, error } = await esc.profiles.create(
{
name: "Signup",
jurisdictions: ["US-FED", "US-CA"],
jurisdiction_mode: "auto",
on_unknown_region: "strictest",
method: "checkbox",
assurance_level: "L1",
},
{ idempotencyKey: "create-profile-signup" },
);
The two samples send the same Idempotency-Key with bodies that differ in whitespace. Run one of them, or change the key: the same key with different bytes in the body answers 409 idempotency_conflict.
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 ....
Parameters
Body fields
| Field | Type | Default | Description |
|---|---|---|---|
name |
string, 1 to 120 characters | Required | Your name for the profile. |
jurisdictions |
array of pack codes, up to 24 | ["US-FED"] |
Packs this profile enables, in any combination. Any US-xx state pack adds US-FED. A code that is not in the catalogue returns jurisdiction_unknown. |
jurisdiction_mode |
auto, strictest, explicit |
auto |
How packs are selected per session. auto: by signer location, governing law and your organization's state. strictest: every enabled pack, in full. explicit: each session must send jurisdictions.packs. |
on_unknown_region |
strictest, base_only, reject |
strictest |
What to do for a U.S. signer with no signer.region when state packs are enabled. strictest applies every enabled state pack, base_only applies US-FED alone, reject returns signer_region_required. |
governing_law |
string or null | null |
Pack code or ISO 3166 code named as governing law in your documents, for example US-NY. Fires the governing-law rules of that pack. Asserted by you. |
allow_session_packs |
boolean | false |
Lets a session add a pack this profile does not enable. Its record conditions run in advise. |
strict_jurisdictions |
boolean | false |
When true, a session that names a pack this profile does not enable returns jurisdiction_not_enabled instead of a warning. |
pack_versions |
"latest" or object |
"latest" |
Map of pack code to version, for Enterprise contracts that pin pack versions. Leave as "latest" otherwise. |
signer_class |
string or null | null |
Class to assume when the session does not send signer.class: consumer, business or employee. |
document_type |
string or null | null |
A document type that is added to rule scope for every session on this profile. |
purpose |
string or null | null |
Purpose to assume when the session does not send context.purpose. |
method |
click, checkbox, typed, drawn, passkey |
checkbox |
Signature method. Returned on sessions as signature_method. |
assurance_level |
L1, L2, L3 |
L1 |
L1 recorded: your app asserts who the signer is. On every plan, and the default. L2 adds a one-time code by email, L3 adds a passkey. L2 and L3 are optional and need the Unlimited or Enterprise plan, in test mode and in live mode. All three are simple electronic signatures or recorded acceptances. |
failure_mode |
fail_closed, fail_open_deferred |
fail_closed |
What your app does when Esign Comply cannot be reached at signing time. |
consumer_econsent |
boolean | false |
Adds the ESIGN consumer consent steps (disclosure, access demonstration, consent) for consumer signers. See the consumer consent guide. |
capture_mode |
standard, eu_minimal |
standard |
eu_minimal drops optional markup, style, layout, network and device capture. It is applied automatically whenever an EU, UK or CH pack applies. |
receipts_enabled |
boolean | true |
Whether Esign Comply emails the signer a receipt when an email address is known. |
signer_certificates_enabled |
boolean | false |
Reserved for signer-requested certificates, which are Planned. |
prompt_id |
string | none | ID of the generated prompt the profile belongs to. The prompt generator sets it. A value you send is stored as sent. |
change_note |
string, up to 500 characters, or null | null |
A note stored with this version. |
Unknown fields are ignored and reported in warnings as unknown_field:<path>.
Headers: Idempotency-Key (optional, up to 255 characters) and Esign-Comply-Version (optional, a dated API version). See API conventions.
Response
201 Created with a Profile object.
{
"object": "profile",
"id": "prof_signup_4f1a",
"version": 1,
"livemode": false,
"name": "Signup",
"jurisdictions": [
"US-FED",
"US-CA"
],
"jurisdiction_mode": "auto",
"on_unknown_region": "strictest",
"governing_law": null,
"allow_session_packs": false,
"strict_jurisdictions": false,
"pack_versions": "latest",
"signer_class": null,
"document_type": null,
"purpose": null,
"method": "checkbox",
"assurance_level": "L1",
"failure_mode": "fail_closed",
"consumer_econsent": false,
"capture_mode": "standard",
"receipts_enabled": true,
"signer_certificates_enabled": false,
"rules_version": "2026.11.2",
"baseline": "bl_SPNT",
"prompt_id": null,
"change_note": null,
"created_at": "2026-11-26T00:15:55.442Z",
"warnings": []
}
Response fields
| Field | Type | Description |
|---|---|---|
object |
string | |
id |
string | |
version |
integer | |
livemode |
boolean | |
name |
string | |
jurisdictions |
array of string | |
jurisdiction_mode |
string | |
on_unknown_region |
string | |
governing_law |
string | |
allow_session_packs |
boolean | |
strict_jurisdictions |
boolean | |
signer_class |
string | |
document_type |
string | |
purpose |
string | |
method |
string | |
assurance_level |
string | |
failure_mode |
string | |
consumer_econsent |
boolean | |
capture_mode |
string | |
receipts_enabled |
boolean | |
baseline |
string | |
prompt_id |
string | |
created_at |
datetime | |
pending_conditions |
array | |
versions |
array | |
warnings |
array of string |
Validation
methodmust be one of the five values.passkeyneedsassurance_level: "L3".fail_open_deferredis accepted only withassurance_level: "L1"and withdocument_typeunset orterms.governing_lawmust look like a pack code or an ISO 3166 code (US-NY,DE).- The plan is checked here, on create and on update, and again when a session is created. On Free and Starter, a profile version at L2 or L3 returns
403plan_feature_unavailablewithparam: "assurance_level", in test mode and in live mode. See "Plan check on the assurance level" below.
Plan check on the assurance level
Free and Starter record at L1: the signer's identity is what your app asserts. Unlimited and Enterprise add optional signer verification: a one-time code Esign Comply emails to the signer (L2), and passkeys (L3).
| Level asked for on Free or Starter | Message |
|---|---|
L2 |
Signer verification by emailed code is on Unlimited and Enterprise. Use assurance_level L1, or upgrade. |
L3 |
Signer verification by passkey (L3) is on Unlimited and Enterprise. Use assurance_level L1, or upgrade. |
The error object also carries feature (assurance_l2 or assurance_l3), assurance_level, plan, plan_name and available_on (["unlimited", "enterprise"]).
{
"error": {
"type": "permission_error",
"code": "plan_feature_unavailable",
"message": "Signer verification by emailed code is on Unlimited and Enterprise. Use assurance_level L1, or upgrade.",
"param": "assurance_level",
"feature": "assurance_l2",
"assurance_level": "L2",
"plan": "starter",
"plan_name": "Starter",
"available_on": ["unlimited", "enterprise"],
"doc_url": "https://esigncomply.com/docs/api/errors#plan_feature_unavailable",
"request_id": "req_8Yb2kQ0x"
}
}
Nothing is migrated. A profile that already exists at L2 or L3 on Free or Starter stays as it is, and POST /v1/sessions on it returns plan_feature_unavailable with param: "profile" until you change the profile to L1 or upgrade. An upgrade takes effect at once.
The body is the profile object, plus warnings.
Errors
| Code | HTTP | When |
|---|---|---|
invalid_request |
400 | With param naming the field. |
jurisdiction_unknown |
400 | A pack code on a profile, a session, a dry run or a certificate wording is not in the catalogue. |
plan_feature_unavailable |
403 | For assurance_level L2 or L3 on Free or Starter. |
insufficient_permission |
403 | For a key without full_access. |
Like every call made with a secret key, it can also return missing_api_key, invalid_api_key, domain_not_verified, 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/profiles
Which credential does POST /v1/profiles need?
A secret key with full_access 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/profiles 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/profiles 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/profiles 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/profiles?
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/profiles?
Yes: esc.profiles.create() in the esigncomply package. It resolves to { data, error } and does not throw.
Related
- Profiles: the overview of the resource and all of its operations.
- List profiles:
GET /v1/profiles - Retrieve a profile:
GET /v1/profiles/{id} - Update a profile:
POST /v1/profiles/{id} - Jurisdiction packs
- The ceremony
- Errors: every error code, with what to do.
- API conventions: authentication, idempotency, rate limits and versioning.
Last updated · API version 2026-11-21