Submit a deferred acceptance
In the Esign Comply API, POST /v1/records/deferred seals a record from an acceptance your server stored while the API could not be reached, with every field tagged asserted. Call it from your server for a fail_open_deferred profile, after an acceptance that could not be recorded at signing time.
POST /v1/records/deferred · API version 2026-11-21
Authentication
Send a secret key in the Authorization header: Bearer $ESIGNCOMPLY_API_KEY. The key needs full_access or recording_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/records/deferred \
-H "Authorization: Bearer $ESIGNCOMPLY_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: deferred-user_2f9k-tos-2026-11-21" \
-d '{
"profile": "prof_75hj",
"signer": {
"external_id": "user_2f9k",
"email": "lee@example.org",
"name": "Lee Okafor",
"class": "consumer",
"country": "US"
},
"documents": [
{
"document": "doc_8Hq2",
"version": "dv_3kT9"
}
],
"signed_at": "2026-11-26T00:06:29.239Z",
"signature": {
"method": "checkbox",
"label_text": "I agree to the Terms of Service",
"button_text": "Create account"
},
"context": {
"url": "http://localhost:3000/signup",
"purpose": "account_signup"
},
"reason": "Esign Comply API unreachable for eight minutes."
}'
Node SDK
import { EsignComply } from "esigncomply";
const esc = new EsignComply(process.env.ESIGNCOMPLY_API_KEY);
const { data, error } = await esc.records.submitDeferred(
{
profile: "prof_75hj",
signer: {
external_id: "user_2f9k",
email: "lee@example.org",
name: "Lee Okafor",
class: "consumer",
country: "US",
},
documents: [{ document: "doc_8Hq2", version: "dv_3kT9" }],
signed_at: "2026-11-26T00:06:29.239Z",
signature: {
method: "checkbox",
label_text: "I agree to the Terms of Service",
button_text: "Create account",
},
context: { url: "http://localhost:3000/signup", purpose: "account_signup" },
reason: "Esign Comply API unreachable for eight minutes.",
},
{ idempotencyKey: "deferred-user_2f9k-tos-2026-11-21" },
);
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
For profiles created with failure_mode: "fail_open_deferred", which is available only for terms acceptances at L1. When Esign Comply could not be reached at signing time, your server stores the acceptance and submits it here later.
The record is sealed with capture_mode: "deferred". Every ceremony field is tagged asserted: Esign Comply did not observe the act. The evidence report and any certificate say so, and the certificate does not say the record was made at or near the time of the act. No jurisdiction rules or conformance checks are evaluated for a deferred record.
Parameters
Body fields
| Field | Type | Required | Description |
|---|---|---|---|
profile |
string | Yes | A profile with failure_mode: "fail_open_deferred". |
signer.external_id |
string | Yes | Your identifier for the signer. |
signer.email, signer.name, signer.class, signer.country, signer.region |
string | No | Asserted signer facts. With an email, the signer receives a receipt. |
documents[] |
array, 1 to 10 | Yes | { "document": "doc_...", "version": "dv_..." }. Name the exact version that was shown. "current" and an empty version are refused. |
signed_at |
RFC 3339 timestamp | Yes | When you say the act occurred. Must not be in the future. |
signature.method |
string | Yes | For example checkbox. |
signature.label_text, signature.button_text |
string | No | The label and button text your page showed. |
context.url, context.locale, context.purpose, context.notes |
string | No | As on a session. |
reason |
string, up to 500 characters | No | Why the acceptance was deferred, for example the outage window. |
metadata |
object | No | Your key-value pairs. |
signed_at on a deferred record is the time Esign Comply received your report. The time you say the act occurred is kept as asserted_signed_at. The record.completed webhook is sent as for any record.
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 Record object.
{
"object": "record",
"id": "rec_0neq",
"livemode": false,
"status": "recorded",
"capture_mode": "deferred",
"signed_at": "2026-11-26T00:16:30.709Z",
"asserted_signed_at": "2026-11-26T00:06:29.239Z",
"signature_level": "simple",
"assurance_level": "L1",
"signer": {
"external_id": "user_2f9k"
},
"documents": [
{
"version_id": "dv_3kT9",
"content_hash": "sha256:4e712fcc..."
}
],
"record_hash": "sha256:2dc5f7e3...",
"receipt": "eyJhbGciOiJFUzI1NiIsImtp...",
"verify_url": "https://esigncomply.com/verify/rec_0neq",
"note": "Deferred submission: every ceremony field is asserted by the customer. Esign Comply did not observe the act; its record of this report was made at the receipt time shown."
}
Response fields
| Field | Type | Description |
|---|---|---|
object |
string | |
id |
string | |
livemode |
boolean | |
status |
string | pending_seal, recorded, timestamped, anchored, disputed or voided. A live record is anchored when a public anchor covers its checkpoint; a test record when its test checkpoint is signed. |
signed_at |
datetime | Server receipt time of the final event. |
signature_level |
string | simple or not_applicable for the base product. |
assurance_level |
string | |
capture_mode |
string | |
signer |
object | |
documents |
array | |
record_hash |
string | |
receipt |
string | Compact JWS. null while pending_seal. |
verify_url |
string | |
seal |
object | The ledger position, the timestamp, the checkpoint and the public anchor. anchor is pending on every test record: test checkpoints are not anchored publicly. |
organization |
object | |
domain |
string | |
profile |
object | |
jurisdictions |
object | |
events |
array | |
notice |
object | |
signature |
object | |
context |
object | |
metadata |
object | |
conformance |
object | Advisory. Stored beside the record and outside the sealed hash. On the completion response: { advisory, rules_version, enforcement, findings[], reported[] }, where reported[] lists every block finding a live record was sealed with. |
advisories |
array | Checks in the advise state that were not met: { rule, status, finding, notice }. |
copy_delivery |
object | |
annotations |
array | |
supplements |
array | |
certificates |
array | |
guidance_release |
string | |
api_version |
string | |
quota_locked |
boolean |
Errors
| Code | HTTP | When |
|---|---|---|
invalid_request |
400 | The profile is fail_closed (param: "profile"), a document names "current" or an empty version (param: "documents.0.version"), or signed_at is in the future. |
plan_feature_unavailable |
403 | The feature is not on the domain's plan: signer verification (assurance level L2 or L3) on Free or Starter, more webhook endpoints than the plan includes, a certificate request or quote for a live record on Free, a region the plan does not offer, or a custodian-signed certification on a plan or environment that does not have it. |
not_found |
404 | Unknown profile, document or version. |
quota_exhausted |
402 | A live submission, on Free or Starter, that came past the plan's limit and was refused. The check is the same as on POST /v1/sessions. |
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/records/deferred
Which credential does POST /v1/records/deferred need?
A secret key with full_access or recording_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/records/deferred 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/records/deferred count as a signature event?
Yes, in live mode. Each live record this call makes is one signature event, however many documents the record covers. In test mode the record counts as one test event.
Is POST /v1/records/deferred 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/records/deferred?
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/records/deferred?
Yes: esc.records.submitDeferred() in the esigncomply package. It resolves to { data, error } and does not throw.
Related
- Records: the overview of the resource and all of its operations.
- List records:
GET /v1/records - Retrieve a record:
GET /v1/records/{id} - Download the evidence report:
GET /v1/records/{id}/report - Download the evidence package:
GET /v1/records/{id}/evidence - Server confirmation
- Evidence
- Errors: every error code, with what to do.
- API conventions: authentication, idempotency, rate limits and versioning.
Last updated · API version 2026-11-21