Issue a certificate for one record
In the Esign Comply API, POST /v1/records/{id}/certificates issues an on-request certificate, the Contemporaneous Record Statement, for one timestamped or anchored record and returns it. Call it only when a dispute turns on when a record was made, after a person has approved the quote.
POST /v1/records/{id}/certificates · 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/records/rec_Z4m8/certificates \
-H "Authorization: Bearer $ESIGNCOMPLY_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: cert-rec_Z4m8-matter-0412" \
-d '{
"type": "contemporaneous_record",
"wording": "auto",
"reference": "Matter 2026-0412",
"include": [],
"confirm_charge": true
}'
Node SDK
import { EsignComply } from "esigncomply";
const esc = new EsignComply(process.env.ESIGNCOMPLY_API_KEY);
const { data, error } = await esc.records.certify(
"rec_Z4m8",
{
type: "contemporaneous_record",
wording: "auto",
reference: "Matter 2026-0412",
include: [],
confirm_charge: true,
},
{ idempotencyKey: "cert-rec_Z4m8-matter-0412" },
);
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
Idempotent with Idempotency-Key: a repeat with the same key and body returns the same certificate and is never charged twice. A call without a key, or with a new key, issues a new certificate with a new issue time. Earlier certificates stay retrievable.
The record must be timestamped or anchored. A disputed record can be covered by a certificate: the dispute appears under later history.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | ID of the record. |
Body fields
| Field | Type | Required | Description |
|---|---|---|---|
type |
string | No | contemporaneous_record (default) or custodian_certification. Unknown types return 400 invalid_request. |
wording |
string | No | auto (default: the packs applied on the record) or one pack code that names the forum's variant, for example US-NY. It changes the wording variant only, never the facts. An unknown code returns 400 jurisdiction_unknown. |
reference |
string | No | Your reference, up to 120 characters. Printed as "Requester reference (asserted)". |
include |
string[] | No | Empty by default. "supplements" adds a list of customer-supplied material for the record (type, both times, hash, size; never the content). "network" adds network facts where they were captured. |
share |
object | No | { "expires_in": <seconds> }, 60 seconds to 90 days. Creates a share link with the certificate. |
confirm_charge |
boolean | When a charge results | Must be true to approve a charge. Not needed when the request is covered by an allowance, by an Enterprise contract, or in test mode. |
reissue_of |
string | No | ID of an earlier certificate for the same record whose public-anchor line read "pending". One re-issue within 30 days is free. |
When share was requested, the response carries the new link as share, with its url. share.url appears only in this response: the access secret is the part after #, it is shown once and stored only as a hash, so keep the URL if you need it. share_url and share_expires_at repeat share.url and share.expires_at under their earlier names and also appear only in this response. Without share in the request, share is null and the two fields are absent.
With type: "custodian_certification" the call returns 202 Accepted with status: "requested" and a service object that describes the separate, person-signed service (printed title "Certification of Custodian of Records", an unsworn declaration, its price and the number included per year). It is available in live mode on paid plans, moves through requested, in_review and issued, and does not use the certificate allowance.
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 Certificate object.
202 Accepted: type is custodian_certification: the request is recorded with status requested and the certificate is issued after review.
{
"object": "certificate",
"id": "crt_7Hd2",
"type": "contemporaneous_record",
"status": "issued",
"livemode": false,
"record_ids": [
"rec_Z4m8"
],
"record_count": 1,
"issued_at": "2026-11-26T00:17:06.233Z",
"requested_by": {
"class": "customer",
"key_id": "key_Doqa"
},
"reference": "Matter 2026-0412",
"wording": [
"US-FED",
"US-CA"
],
"include": [],
"capture_mode": "direct",
"chronology": {
"first_event_received_at": "2026-11-26T00:16:11.546Z",
"final_event_received_at": "2026-11-26T00:16:14.024Z",
"record_committed_at": "2026-11-26T00:16:14.029Z",
"receipt_signed_at": "2026-11-26T00:16:14.139Z",
"external_timestamp": null,
"checkpoint": {
"id": "chk_DVot",
"time": "2026-11-26T00:16:15.458Z",
"tree_size": 936
},
"public_anchor": "pending"
},
"intervals_ms": {
"final_event_to_commit": 5,
"commit_to_receipt": 110,
"receipt_to_external_timestamp": null,
"receipt_to_checkpoint": 1319,
"receipt_to_public_anchor": null
},
"statement": {
"title": "Contemporaneous Record Statement",
"certificate_id": "crt_7Hd2",
"issued_at": "2026-11-26T00:17:06.233Z",
"livemode": false,
"record_id": "rec_Z4m8",
"requester": {
"class": "customer",
"key_id": "key_Doqa"
},
"reference": "Matter 2026-0412",
"customer": "Acme, Inc.",
"domain": null,
"statement": "Esign Comply's systems created record rec_Z4m8 by an automated process. Each event in it was recorded when Esign Comply's server received it from the signer's browser session, at the server receipt time shown. Esign Comply makes and keeps records of this kind in the regular course of providing its recording service to Acme, Inc., and making them is its regular practice. The record was sealed at 2026-11-26T00:16:14.139Z. On 2026-11-26T00:17:06.233Z Esign Comply recomputed the hash of the stored record and found that it matches the hash committed to the seal, the external timestamp token and the ledger checkpoint, with the results shown below. This statement was issued on 2026-11-26T00:17:06.233Z; the record it describes was made at the times shown in the chronology.",
"capture_mode": "direct",
"capture_mode_meaning": "direct: the events were received from the signer's browser session as they occurred.",
"chronology": {
"events": [
{
"type": "session.created",
"tag": "asserted",
"browser_reported_time": null,
"server_receipt_time": "2026-11-26T00:16:11.546Z",
"difference_ms": null
},
{
"type": "client.attached",
"tag": "observed",
"browser_reported_time": "2026-11-26T00:16:11.987Z",
"server_receipt_time": "2026-11-26T00:16:12.249Z",
"difference_ms": 262
},
{
"type": "document.presented",
"tag": "observed",
"browser_reported_time": "2026-11-26T00:16:12.264Z",
"server_receipt_time": "2026-11-26T00:16:12.372Z",
"difference_ms": 108
}
],
"first_event_received_at": "2026-11-26T00:16:11.546Z",
"final_event_received_at": "2026-11-26T00:16:14.024Z",
"record_committed_at": "2026-11-26T00:16:14.029Z",
"receipt_signed_at": "2026-11-26T00:16:14.139Z",
"receipt_key": "esc-us-test-2026-11",
"external_timestamp": null,
"checkpoint": {
"id": "chk_DVot",
"time": "2026-11-26T00:16:15.458Z",
"tree_size": 936
},
"public_anchor": "pending"
},
"intervals_ms": {
"final_event_to_commit": 5,
"commit_to_receipt": 110,
"receipt_to_external_timestamp": null,
"receipt_to_checkpoint": 1319,
"receipt_to_public_anchor": null
},
"independent_time_bound": [
"No external timestamp token is attached to this record.",
"The public anchor is pending. A later request includes it."
],
"verification": {
"checked_at": "2026-11-26T00:17:06.229Z",
"record_hash": "pass",
"receipt_signature": "pass",
"ledger_entry": "pass",
"timestamp_token": "not_applicable",
"inclusion_proof": "pass",
"consistency_proof": "pass",
"storage_lock": "not_applicable",
"detail": {
"receipt_signature": "key esc-us-test-2026-11",
"timestamp_token": "Test record on the Free plan: no external timestamp.",
"inclusion_proof": "checkpoint chk_DVot, tree size 936",
"consistency_proof": "from tree size 936 to 946 (checkpoint chk_sgkM)",
"storage_lock": "Development vault driver: no Object Lock. Configure ESC_VAULT_DRIVER=s3 for write-once storage."
}
},
"record_hash": "sha256:24ccd731...",
"later_history": {
"annotations": [
{
"type": "legal_hold",
"time": "2026-11-26T00:16:51.382Z",
"actor": "customer"
}
],
"earlier_certificates": [],
"note": "Sealed content has no update or delete path for any application role."
},
"process_in_force": {
"system_description": {
"version": "2026-11-21"
},
"jurisdictions": [
{
"code": "US-FED",
"reason": "base",
"version": "2026-11-22"
},
{
"code": "US-CA",
"reason": "signer_region",
"version": "2026-11-21"
}
],
"guidance_release": "2026.11.2",
"time_source": "Esign Comply application servers, synchronised by the hosting platform's time service (UTC)."
},
"jurisdiction_wording": {
"requested": "auto",
"codes": [
"US-FED",
"US-CA"
],
"variants": [
{
"code": "US-FED",
"rule": "US-38",
"basis": [
{
"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"
},
{
"url": "https://www.govinfo.gov/content/pkg/USCODE-2024-title28/html/USCODE-2024-title28-partV-chap115-sec1746.htm",
"title": "28 U.S.C. § 1746"
}
],
"forum": "Federal",
"notes": "Analogue to FRE 902(13) and (14): Yes. What the statement must not claim there: System or copy authentication proves hearsay foundation, authorship, act time or truth. Limit in this version (Federal foreign elements): Verify the applicable criminal-penalty and notice rules before relying on a declaration involving foreign records or a foreign signing. Use testimony or another authorized procedure where the standard form is insufficient. Time evidence and ledger claims. RFC 3161 tokens. May say: A verified token supports existence of the matching datum by the authority's stated time, subject to validation and clock accuracy. Must not say: It proves exact creation or signing time, signer identity, truth or automatic admissibility. Hash matching. May say: The recomputed digest of identified bytes matches the identified sealed digest; matching source and export hashes support copy identity. Must not say: Matching hashes prove accuracy of the original, authorship or that no intermediate alteration occurred. Public ledger anchors. May say: The inclusion proof links the record commitment to an identified checkpoint; a verified public anchor corroborates existence of that checkpoint by the anchor time. Must not say: The product qualifies by default under Vermont, Arizona or Illinois blockchain statutes; anchoring proves underlying act time, attribution or truth. \"Contemporaneous\". May say: Product shorthand for the original record's timing; use the rule's words and distinguish server receipt, reported act time and certificate issuance. Must not say: The later certificate was itself made at the event, or \"contemporaneous\" is a statutory status.",
"authentication": "FRE 902(13) or (14): separately certify accurate system output or verified copy.",
"timing_wording": "made at or near the time",
"notice_reminder": "Give reasonable written notice before trial or hearing and make record and certification available for inspection. No fixed interval.",
"business_records": "FRE 803(6); for FRE 902(11), state knowledgeable source, keeping and regular practice.",
"declaration_form": "Sign and date the § 1746 unsworn declaration. For 902(11), state knowledgeable source, keeping and regular practice. For 902(13) or (14), separately certify accurate system output or verified copy. Check the separate rule if the certification is for foreign records or signed abroad.",
"pack_version": "2026-11-22"
},
{
"code": "US-CA",
"rule": "CA-14",
"basis": [
{
"url": "https://leginfo.legislature.ca.gov/faces/codes_displaySection.xhtml?lawCode=EVID§ionNum=1271",
"title": "Evid. Code § 1271"
},
{
"url": "https://www.leginfo.legislature.ca.gov/faces/codes_displayText.xhtml?lawCode=EVID&division=11.&title=&part=&chapter=2.&article=4.",
"title": "Evid. Code §§ 1560-1562"
},
{
"url": "https://leginfo.legislature.ca.gov/faces/codes_displaySection.xhtml?lawCode=EVID§ionNum=1552",
"title": "Evid. Code § 1552"
}
],
"forum": "California",
"notes": "Analogue to FRE 902(13) and (14): No. §§ 1552 and 1553 address accuracy of certain printouts. What the statement must not claim there: A printout presumption establishes signer identity; a routine request is equivalent to a subpoena. Limit in this version (California and New York): Do not turn their scoped production procedures into a generic certification for every record. Arrange a witness if outside those procedures or if the other party raises a foundation challenge that requires one (Evid. Code §§ 1560-1562, CPLR 3122-a).",
"authentication": "No analogue to FRE 902(13) and (14). §§ 1552 and 1553 address accuracy of certain printouts.",
"timing_wording": "made at or near the time of the act, condition, or event",
"notice_reminder": "Production ordinarily within 15 days of civil subpoena receipt or five days in criminal cases, or as agreed; a qualifying warrant has its own timetable. No general advance notice under these sections.",
"business_records": "Evid. Code § 1271; Evid. Code §§ 1560-1562. For qualifying nonparty subpoena or warrant production, state authority, record identity, preparation method, ordinary-course timing and completeness or exceptions. Otherwise plan for witness foundation.",
"declaration_form": "Use a signed and dated § 2015.5 unsworn declaration. For qualifying nonparty subpoena or warrant production, state authority, record identity, preparation method, ordinary-course timing and completeness or exceptions. Otherwise plan for witness foundation. Closing words, any location: \"I certify (or declare) under penalty of perjury under the laws of the State of California that the foregoing is true and correct\", followed by date and signature. California-only form: \"I certify (or declare) under penalty of perjury that the foregoing is true and correct\", followed by date, place and signature.",
"pack_version": "2026-11-21"
}
]
},
"limits": "This statement describes when and how Esign Comply's record was made and whether it has changed since. It does not establish who the signer was, the signer's capacity or authority, that the signer read the documents, or that any agreement is valid or enforceable. Times reported by the signer's browser are reported, not verified. A court decides admissibility and weight. The automated statement is not a custodian declaration. A custodian-signed unsworn declaration is available on request where the forum permits it. This document is not a qualified certificate, a qualified electronic time stamp, or a qualified electronic seal."
},
"verification": {
"detail": {
"storage_lock": "Development vault driver: no Object Lock. Configure ESC_VAULT_DRIVER=s3 for write-once storage.",
"inclusion_proof": "checkpoint chk_DVot, tree size 936",
"timestamp_token": "Test record on the Free plan: no external timestamp.",
"consistency_proof": "from tree size 936 to 946 (checkpoint chk_sgkM)",
"receipt_signature": "key esc-us-test-2026-11"
},
"checked_at": "2026-11-26T00:17:06.229Z",
"record_hash": "pass",
"ledger_entry": "pass",
"storage_lock": "not_applicable",
"inclusion_proof": "pass",
"timestamp_token": "not_applicable",
"consistency_proof": "pass",
"receipt_signature": "pass"
},
"certificate_hash": "sha256:b143da65...",
"seal": {
"receipt": "eyJhbGciOiJFUzI1NiIsImtp...",
"ledger": {
"format": "esc-ledger-v1",
"domain_id": "dom_4Kx9",
"environment": "test",
"seq": 11,
"entry_type": "certificate",
"subject_id": "crt_7Hd2",
"subject_hash": "sha256:b143da65...",
"prev_hash": "sha256:c8fa8902...",
"entry_hash": "sha256:485a73c0...",
"created_at": "2026-11-26T00:17:06.242Z"
},
"ledger_seq": 11,
"timestamp_token": "pending"
},
"pdf_url": "https://esigncomply.com/v1/certificates/crt_7Hd2/pdf",
"json_url": "https://esigncomply.com/v1/certificates/crt_7Hd2",
"share": null,
"billing": {
"units": 1,
"amount": 0,
"currency": "usd",
"allowance": {
"used": 0,
"included": null,
"remaining": null,
"resets_at": null
},
"spend_limit": 20000,
"unit_amount": 2000,
"charge_class": "test",
"confirmed_by": null,
"month_to_date": 0
},
"reissue_of": null,
"anchor_pending": true,
"created_at": "2026-11-26T00:17:06.242Z"
}
Response fields
| Field | Type | Description |
|---|---|---|
object |
string | |
id |
string | |
type |
string | |
status |
string | processing, requested, in_review, issued or failed. |
livemode |
boolean | |
record_ids |
array of string | |
record_count |
integer | |
issued_at |
datetime | |
requested_by |
object | |
reference |
string | |
wording |
array of string | |
capture_mode |
string | |
chronology |
object | |
intervals_ms |
object | |
verification |
object | |
certificate_hash |
string | |
seal |
object | { receipt, ledger, ledger_seq, timestamp_token }. ledger is the certificate's full ledger entry, which the offline verifier recomputes. |
pdf_url |
string | |
json_url |
string | |
share |
object | The active share link { id, expires_at, opens, last_opened_at }, or null. Its url is included only in the response of the request that created the link. |
share_url |
string | Same value as share.url. Only in the response that created the link. |
share_expires_at |
datetime | Same value as share.expires_at. Only in the response that created the link. |
billing |
object | { charge_class, units, unit_amount, amount, currency, allowance, month_to_date, spend_limit, confirmed_by }. |
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). |
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 | 403: a certificate for a live record was requested on the Free plan. |
not_found |
404 | 404: no such record, the record is voided, or reissue_of names no issued certificate. |
record_not_timestamped |
409 | 409: the external timestamp is not attached yet. Retry after the interval in Retry-After. |
certificate_field_unavailable |
422 | 422: include: ["network"] was requested for a record made without network capture, for example under EU minimal capture. |
quota_exceeded |
402 | 402: the record was locked under the earlier Starter quota rule. Records sealed now are not locked. |
certificate_charge_unconfirmed |
402 | 402: a charge would result and confirm_charge was not true. The error carries a quote. |
certificate_spend_limit_reached |
402 | 402: the charge would pass the domain's monthly certificate spend limit. Carries a quote. |
payment_method_required |
402 | 402: a charge would result and the domain has no valid payment method, or an invoice for the domain is unpaid. |
certificate_verification_failed |
503 | 503: an integrity check failed at issue. Nothing is issued and nothing is charged. Do not retry. Contact support with the request ID. |
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/records/{id}/certificates
Which credential does POST /v1/records/{id}/certificates 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/records/{id}/certificates 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/{id}/certificates 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/records/{id}/certificates 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/{id}/certificates?
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/{id}/certificates?
Yes: esc.records.certify() in the esigncomply package. It resolves to { data, error } and does not throw.
Related
- Certificates: the overview of the resource and all of its operations.
- Issue a certificate for a set of records:
POST /v1/certificates - Quote a certificate:
POST /v1/certificates/quote - List certificates:
GET /v1/certificates - Retrieve a certificate:
GET /v1/certificates/{id} - Certificates
- Errors: every error code, with what to do.
- API conventions: authentication, idempotency, rate limits and versioning.
Last updated · API version 2026-11-21