Adopt pending record conditions
In the Esign Comply API, POST /v1/profiles/{id}/adopt moves every pending record condition of a profile from advise to enforce, creating a new baseline and profile version. Call it after your flow passes in test mode, where pending conditions are already enforced.
POST /v1/profiles/{id}/adopt · 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/prof_signup_4f1a/adopt \
-H "Authorization: Bearer $ESIGNCOMPLY_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: adopt-prof_signup_4f1a-2026-11" \
-d '{
"note": "New York renewal steps built and tested."
}'
Node SDK
import { EsignComply } from "esigncomply";
const esc = new EsignComply(process.env.ESIGNCOMPLY_API_KEY);
const { data, error } = await esc.profiles.adopt(
"prof_signup_4f1a",
{ note: "New York renewal steps built and tested." },
{ idempotencyKey: "adopt-prof_signup_4f1a-2026-11" },
);
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 ....
What it does
Each profile has a baseline: the pack versions whose record conditions it has adopted. Only baseline conditions can refuse to seal, add a required step or require a fact. What an adopted Block condition does to a live signature is your domain's setting: by default the signature is recorded and you are told at once which rule failed and what to fix, and with blocking on it is refused before it is sealed (see When a live signature fails a rule). A condition that arrives later, from a newer pack version or from a pack you have just enabled, runs in the advise state: it is evaluated, its result is stored and returned in advisories[], and it never returns an error. Adoption moves every pending condition to enforce. It creates a new baseline and a new profile version. Esign Comply never adopts on your behalf.
Before you adopt, check what is pending with GET /v1/profiles/{id} (pending_conditions) or the profile guidance above, and run your flow in test mode. Test mode always evaluates the latest release with every condition enforced, so you see what adoption would require before it reaches live traffic.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | ID of the profile. |
Body fields
| Field | Type | Required | Description |
|---|---|---|---|
note |
string | No | Up to 500 characters. Stored as the new version's change_note. |
The body is the profile object at its new version, plus adopted and baseline_detail.
The example omits some profile fields. After adoption, on a domain with blocking on, new live sessions on the profile list the adopted steps in required_steps and are refused when an adopted block condition is not met. On a domain set to notify, the default, the steps are in advised_steps and a live signature that fails an adopted block condition is recorded and reported to you. Sessions and records created earlier keep the profile version they pinned. The profile.adopted webhook is sent with profile_id, profile_version, baseline, adopted_rules and adopted_by.
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 Profile object.
{
"object": "profile",
"id": "prof_signup_4f1a",
"version": 4,
"livemode": false,
"name": "Signup",
"jurisdictions": [
"US-FED",
"US-CA",
"US-NY",
"US-TX"
],
"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_Hb7K",
"prompt_id": null,
"change_note": "New York renewal steps built and tested.",
"created_at": "2026-11-26T00:17:47.832Z",
"adopted": [
{
"rule": "NY-02",
"pack": "US-NY",
"level": "warn",
"adds_steps": []
},
{
"rule": "NY-03",
"pack": "US-NY",
"level": "block",
"adds_steps": [
"renewal_terms.presented",
"renewal_consent.captured"
]
},
{
"rule": "NY-10",
"pack": "US-NY",
"level": "block",
"adds_steps": [
"acknowledgment.captured"
]
}
],
"baseline_detail": {
"id": "bl_Hb7K",
"pack_versions": {
"US-CA": "2026-11-21",
"US-NY": "2026-11-21",
"US-TX": "2026-11-21",
"US-FED": "2026-11-22"
},
"rollback_until": "2027-02-24T00:17:47.832Z"
}
}
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 |
Errors
| Code | HTTP | When |
|---|---|---|
invalid_request |
400 | The request is malformed: the body is not valid JSON, a known field has the wrong type, a required field is missing, a value is out of range, or a limit was passed (for example metadata over 50 keys, context.extra over 16 KB, event data over 256 KB, an Idempotency-Key over 255 characters, an unknown Esign-Comply-Version). |
not_found |
404 | 404: no such profile. |
baseline_unchanged |
409 | 409: nothing is waiting for adoption. |
insufficient_permission |
403 | 403: the key is not 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/{id}/adopt
Which credential does POST /v1/profiles/{id}/adopt 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/{id}/adopt 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/{id}/adopt 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/{id}/adopt 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/{id}/adopt?
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/{id}/adopt?
Yes: esc.profiles.adopt() in the esigncomply package. It resolves to { data, error } and does not throw.
Related
- Guidance and adoption: the overview of the resource and all of its operations.
- Roll back an adoption:
POST /v1/profiles/{id}/rollback - List guidance notices:
GET /v1/guidance/notices - Retrieve a guidance notice:
GET /v1/guidance/notices/{id} - Acknowledge a guidance notice:
POST /v1/guidance/notices/{id}/acknowledge - Guidance and adoption
- Errors: every error code, with what to do.
- API conventions: authentication, idempotency, rate limits and versioning.
Last updated · API version 2026-11-21