Verify a domain
In the Esign Comply API, POST /v1/domains/{id}/verify runs one domain verification check now, moves the domain's status and returns the domain with the outcome of the check. Call it after you publish the DNS record or the file, instead of waiting for the next automatic check.
POST /v1/domains/{id}/verify · 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 -X POST https://esigncomply.com/v1/domains/dom_4Kx9/verify \
-H "Authorization: Bearer $ESIGNCOMPLY_API_KEY"
Node SDK
import { EsignComply } from "esigncomply";
const esc = new EsignComply(process.env.ESIGNCOMPLY_API_KEY);
const { data, error } = await esc.domains.verify("dom_4Kx9");
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
Runs one check now instead of waiting for the next automatic check, and moves the status. The DNS method looks up the TXT record on two public resolvers, and both must return the expected value. The file method fetches the well-known URL over HTTPS.
The body is the domain object plus check.
check is null when no domain is registered yet. When check.ok is false, detail shows what each resolver returned (or the HTTP status of the file URL), so you can see whether the record has not propagated or has the wrong value.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | ID of the domain. |
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 Domain object.
{
"object": "domain",
"id": "dom_4Kx9",
"domain": "example.com",
"entered_host": "app.example.com",
"region": "us",
"status": "pending",
"verification": {
"method": "dns",
"type": "TXT",
"name": "_esigncomply.example.com",
"host": "_esigncomply",
"value": "esc-verify=Z5vdrGwKYnQRXVjM6wo926aomq0yQQwQ"
},
"registered_at": "2026-11-26T00:18:10.927Z",
"verified_at": null,
"last_checked_at": "2026-11-26T00:18:15.280Z",
"lapsed_at": null,
"test_origins": [],
"conformance_enforcement": "notify",
"api_url": "https://esigncomply.com/v1",
"created_at": "2026-11-26T00:15:23.620Z",
"check": {
"ok": false,
"method": "dns",
"detail": {
"name": "_esigncomply.example.com",
"expected": "esc-verify=Z5vdrGwKYnQRXVjM6wo926aomq0yQQwQ",
"cloudflare": [],
"google": [],
"cloudflare_ok": false,
"google_ok": false
}
}
}
Response fields
| Field | Type | Description |
|---|---|---|
object |
string | |
id |
string | |
domain |
string | The registrable domain. Covers every subdomain. |
entered_host |
string | |
region |
string | |
status |
string | not_started, pending, verified, failed or lapsed. |
verification |
object | DNS: { method, type, name, host, value }. File: { method, url, content }. |
registered_at |
datetime | |
verified_at |
datetime | |
last_checked_at |
datetime | |
lapsed_at |
datetime | |
test_origins |
array of string | |
conformance_enforcement |
string | What a live signature that fails a rule does. notify (the default): it is recorded, and you are told at once which rule failed and what to fix. block: it is refused before it is sealed. |
api_url |
string | |
created_at |
datetime |
Errors
| Code | HTTP | When |
|---|---|---|
not_found |
404 | No object with that ID exists in this domain and environment. |
Like every call made with a secret key, it can also return invalid_request, 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/domains/{id}/verify
Which credential does POST /v1/domains/{id}/verify 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/domains/{id}/verify 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/domains/{id}/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/domains/{id}/verify 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/domains/{id}/verify?
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/domains/{id}/verify?
Yes: esc.domains.verify() in the esigncomply package. It resolves to { data, error } and does not throw.
Related
- Account: the overview of the resource and all of its operations.
- Create an API key:
POST /v1/api-keys - List API keys:
GET /v1/api-keys - Revoke an API key:
DELETE /v1/api-keys/{id} - Create a webhook endpoint:
POST /v1/webhooks - Domains
- Test mode
- Errors: every error code, with what to do.
- API conventions: authentication, idempotency, rate limits and versioning.
Last updated · API version 2026-11-21