Verify a record
In the Esign Comply API, POST /v1/verify verifies a record against its seal, ledger entry, external timestamp and the public log, and returns proof status only. Anyone holding the full signed receipt calls it without a key; do not use it for access decisions.
POST /v1/verify · API version 2026-11-21
Authentication
The holder of the full signed receipt needs no key. With a secret key, a record_id of the key's own domain is also accepted. When you send a key, send it in the Authorization header: Bearer $ESIGNCOMPLY_API_KEY.
Request example
cURL
curl https://esigncomply.com/v1/verify \
-H "Content-Type: application/json" \
-d '{
"receipt": "eyJhbGciOiJFUzI1NiIsImtp..."
}'
Node SDK
import { EsignComply } from "esigncomply";
const esc = new EsignComply(process.env.ESIGNCOMPLY_API_KEY);
const { data, error } = await esc.verify("eyJhbGciOiJFUzI1NiIsImtp...");
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
A secret key is needed to check a record by ID or by hash, and only for a record in that key's domain and environment. A client token is refused.
Parameters
Body fields
| Field | Type | Required | Description |
|---|---|---|---|
receipt |
string | One of three | The full signed receipt (compact JWS) as returned by complete(), GET /v1/records/{id} or GET /v1/records/{id}/receipt. |
record_id |
string | One of three | A record ID. Accepted only with a secret key of the same domain. |
record_hash |
string | One of three | A record hash, with or without the sha256: prefix. Accepted only with a secret key, and it names a record only inside that key's domain and environment. |
When more than one is sent, receipt is used first, then record_id, then record_hash.
| Field | Description |
|---|---|
valid |
true when no check failed and, if a receipt was sent, its signature verified. Checks that are pending or not_applicable do not make a result invalid. |
livemode |
Live or test. |
attestation |
live, or none: test record for test mode. A test record carries no attestation. |
status |
The record's status: recorded, timestamped, anchored or disputed. |
checks |
One result per check: pass, fail, pending (the step has not happened yet, for example no checkpoint) or not_applicable (for example no external timestamp on a test record made on the Free plan, or content erased so only the hash remains). |
checked_at |
When the checks ran. |
| Check | What is compared |
|---|---|
receipt_signature |
The receipt's ES256 signature verifies under the published key with its kid, the key belongs to the right environment, and the payload names this record, its hash and its ledger position. |
record_hash |
SHA-256 over the stored salt and canonical record equals the sealed hash. |
ledger_entry |
The ledger entry hash recomputes and names the record hash. |
timestamp_token |
The RFC 3161 token covers the record hash and its signature verifies. |
inclusion_proof |
The ledger entry is in the signed checkpoint. |
consistency_proof |
The current checkpoint only appends to the one the record is in. |
When verification cannot proceed the response is still 200 OK, with no detail about any record:
{ "object": "verification_result", "valid": false, "reason": "receipt_not_on_file" }
reason |
Meaning |
|---|---|
receipt_signature_invalid |
The receipt is malformed, was signed by an unknown key, or its signature does not verify. |
receipt_not_on_file |
The signature verifies, but this is not the receipt on file for that record, byte for byte. |
not_verifiable |
Nothing can be said. The same answer is given whether or not a record exists. |
Checking by ID from your own server:
curl https://esigncomply.com/v1/verify \
-H "Authorization: Bearer $ESIGNCOMPLY_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "record_id": "rec_Z4m8" }'
The response has the same shape. An unknown ID returns valid: false with reason: "not_verifiable". Checking by hash works the same way, with { "record_hash": "sha256:..." }: a hash that names no record of your domain and environment returns valid: false with reason: "not_verifiable".
Headers: Idempotency-Key (optional, up to 255 characters, acted on when a key is sent) and Esign-Comply-Version (optional, a dated API version). See API conventions.
Response
200 OK with a VerificationResult object.
{
"object": "verification_result",
"valid": true,
"livemode": false,
"attestation": "none: test record",
"status": "anchored",
"checks": {
"receipt_signature": "pass",
"record_hash": "pass",
"ledger_entry": "pass",
"timestamp_token": "not_applicable",
"inclusion_proof": "pass",
"consistency_proof": "pass"
},
"checked_at": "2026-11-26T00:16:52.836Z",
"note": "This result says whether the record matches its seal. It does not establish who signed or whether any agreement is valid or enforceable."
}
Response fields
| Field | Type | Description |
|---|---|---|
object |
string | |
valid |
boolean | |
reason |
string | When not valid: receipt_signature_invalid, receipt_not_on_file or not_verifiable. |
livemode |
boolean | |
attestation |
string | |
status |
string | |
checks |
object | { receipt_signature, record_hash, ledger_entry, timestamp_token, inclusion_proof, consistency_proof }. |
checked_at |
datetime | |
note |
string |
Errors
| Code | HTTP | When |
|---|---|---|
invalid_request |
400 | 400: neither a receipt nor a record_id or record_hash with a secret key was sent. A record ID or hash alone cannot be verified without a key for its domain. |
invalid_api_key |
401 | 401: the key sent is not valid. |
insufficient_permission |
403 | 403: a client token was used. |
Like every call that can carry a key, it can also return 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/verify
Which credential does POST /v1/verify need?
None. The call answers without a key. A secret key is accepted, sent as a Bearer token in the Authorization header.
Does POST /v1/verify work with a test key?
Yes. The call needs no key, so it answers the same way for everyone. A test key and a live key are both accepted.
Does POST /v1/verify 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/verify idempotent?
With a secret key, yes: send an Idempotency-Key header of up to 255 characters, and a repeat with the same key and the same bytes in the body returns the original response. Without a key the API does not act on that header.
What is the rate limit for POST /v1/verify?
Without a key, 30 calls per minute for each IP address. With a secret key, the plan's limit for each key: 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/verify?
Yes: esc.verify() in the esigncomply package. It resolves to { data, error } and does not throw.
Related
- Verification and public log: the overview of the resource and all of its operations.
- Get a log checkpoint:
GET /v1/log/checkpoint - Get a log proof:
GET /v1/log/proof - Get the sealing keys:
GET /.well-known/jwks.json - Verification
- Offline verifier
- Errors: every error code, with what to do.
- API conventions: authentication, idempotency, rate limits and versioning.
Last updated · API version 2026-11-21