Verify a domain and go live
To verify a domain and go live, register the domain with your agent token, publish the TXT record the call returns at the DNS provider, and run the check. Once the domain is verified, one more call saves the organization's details and creates the live key on Esign Comply. The Free plan needs no card and no checkout.
Paste the prompt into your AI agent, or follow the steps yourself. The whole flow is in the guide for AI agents.
Last updated
Verify our domain with Esign Comply and go live. The flow already passes the conformance check in test mode. Read these first and follow them exactly: - https://esigncomply.com/agents/verify-domain-go-live.md (this task, step by step) - https://esigncomply.com/agents.md (every dashboard label and every account call) - https://esigncomply.com/setup.md (the whole setup runbook) What stays with me: I give you the organization's legal name, country, registered address and billing email. Ask me for them and do not guess. If you have no access to our DNS provider, give me the type, the name and the value of the one TXT record and I add it. Accepting legal terms, billing and plan changes are mine. What you do: 1. Read the account with GET /v1/agent, using ESIGNCOMPLY_AGENT_TOKEN, and tell me which steps are open. 2. Register the domain with PUT /v1/agent/domain and publish the record it returns. On a platform address such as myapp.vercel.app, add the file it names to the app. 3. Check it with POST /v1/agent/domain/verify until "verified" is true. 4. Call POST /v1/agent/go-live with the organization details I gave you. Store the live key as ESIGNCOMPLY_API_KEY in the production environment only. Never print it, and never use it in development or a preview. 5. Copy the test documents and profiles to live, or create them again with the live key. Report to me: the domain and its status, where the live key is stored (the variable name, never the value), and anything that is mine to do. Keep the block at https://esigncomply.com/rules.md in this project's instruction file: every flow that goes live follows it.
19 lines. Scroll inside the panel to read it, or copy the whole prompt with the button above.
What do you need before you verify a domain and go live?
- An agent token in
ESIGNCOMPLY_AGENT_TOKEN, created by a member with the role of owner or admin. - The host the signing pages run on, for example
app.example.com. Localhost and IP addresses cannot be registered. - Access to the DNS provider, or a person who adds one TXT record. A host on a platform address such as
myapp.vercel.apptakes a file in the app in place of the record. - The organization's legal name, country, registered address (street and city) and billing email, from your person.
How do you verify a domain and go live with Esign Comply, step by step?
- 01
Read where the account stands
live.blockerslists what stands in the way of a live key, in the order to fix it. On a new account it holdsdomain_not_verifiedandorganization_details.next_stepnames the open step with its call inapiand its dashboard page inbrowser, andlive.needs_personistruewhen a blocker is your person's step.curl -s https://esigncomply.com/v1/agent \ -H "Authorization: Bearer $ESIGNCOMPLY_AGENT_TOKEN"
- 02
Register the domain
Send a host or a URL. The registrable domain is worked out from it, so
app.example.comregistersexample.com, and one registration covers every subdomain. The answer is a200withstatusset topendingand the record to publish inverification:type,nameandvalue. In a browser:https:/, field "Host or URL", button "Register domain", then read the record under "Verification record": "Type"/esigncomply.com /dashboard /domains TXT, "Name (host)"_esigncomply, "Value"esc-verify=….Without a browsercurl -s -X PUT https://esigncomply.com/v1/agent/domain \ -H "Authorization: Bearer $ESIGNCOMPLY_AGENT_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "domain": "app.example.com" }' - 03
Publish the TXT record, or the file
Add one TXT record at the DNS provider, on the registrable domain. The full name is
_esigncomply.example.com: some providers want the short name_esigncomply. Without access to the DNS provider, give your person the type, the name and the value and ask them to add that one record. A host on a platform address such asmyapp.vercel.appgets"method": "file"with aurland acontent: servecontentas plain text athttps:/, with no redirect and no authentication. In a Next.js app that is the file/myapp.vercel.app /.well-known /esigncomply.txt public/.well-known./esigncomply.txt Check the record from a terminaldig +short TXT _esigncomply.example.com
- 04
Run the check
The call has no body. Two public resolvers are asked for the record, and both must return the value.
verifiedistrueandstatusisverifiedonce they do. Until thencheck.detailshows what each resolver returned, incloudflareandgoogle. A record published a moment ago can take a few minutes to reach both, so wait and call again. The check also runs on its own: every minute for the first hour after registration, then every 15 minutes for 72 hours. In a browser: button "Check now", and a status line reads "Found. example.com is verified."Without a browsercurl -s -X POST https://esigncomply.com/v1/agent/domain/verify \ -H "Authorization: Bearer $ESIGNCOMPLY_AGENT_TOKEN"
- 05
Save the organization's details and create the live key
One call saves the details first and, when the domain is verified, creates the live key. A
201carries the key once, inapi_key.key, with the permissionrecording_access. A second call answers200with"created": false. A refusal names the open step inblockerandnext_step:403 domain_not_verifiedbefore the domain is verified,400 invalid_requestwith the blockerorganization_detailswhen the details are missing. In a browser:https:/, under "Organization details" the fields "Legal name", "Country", "Registered address", "City" and "Billing email" and the button "Save organization details", then under "Create a live key" the button "Create live key"./esigncomply.com /dashboard /go-live Without a browsercurl -s -X POST https://esigncomply.com/v1/agent/go-live \ -H "Authorization: Bearer $ESIGNCOMPLY_AGENT_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "organization": { "legal_name": "Acme, Inc.", "country": "US", "line1": "1 Main Street", "city": "Wilmington", "billing_email": "billing@acme.example" } }' - 06
Put the live key in production only
Store the live key as
ESIGNCOMPLY_API_KEYin the secret settings of the production environment. Development and previews keep the test key. The live key starts withesc_live_us_oresc_live_eu_and works on the verified domain: a live session declares acontext.urlinside it. Make sure the server confirmation requireslivemodeto betruein production, so that a test record can never unlock production access. - 07
Copy the test setup to live
Test and live share nothing: a document or a profile created with a test key does not exist for the live key. In a browser:
https:/, under "Copy your test setup to live" the button "Copy test setup to live" copies documents with their versions, profiles and webhook endpoints. Test records are never copied. Without a browser, create the documents and profiles again with the live key./esigncomply.com /dashboard /go-live
It worked when
POST /v1 answered 201 with the live key in api_key.key, GET /v1 shows live.live as true and live.blockers empty, and https:/ lists a key with the environment "live".
What must a person do, and what must the agent never do?
The account belongs to a person. These limits hold in this task, as they do in every task an agent runs on Esign Comply.
The person does
- Your person gives you the organization's legal name, country, registered address and billing email. The legal name is printed on every evidence report.
- Your person adds the TXT record when you have no access to the DNS provider.
- Your person accepts legal terms. An account created before the Data Processing Agreement joined the sign-up acceptance has one signing step on the page "Go live", and it is theirs.
- Your person handles billing and plan changes, and replaces a registered domain when they have a second factor on their account.
The agent never does
- Never guess the organization's details. Ask your person.
- Never accept legal terms or sign anything for the organization.
- Never put the live key in development, a preview, the repository or client code. It goes into the production environment only.
- Never print, log or commit the agent token or a key.
- Never remove the TXT record after verification. It is checked again every day.
- Never retry a step that was refused as your person's. Tell them which step it was and carry on with the rest.
Questions about this task: verify a domain and go live
Does going live need a paid plan or a card?
No. The Free plan goes live with no plan to choose, no card and no checkout. The Terms of Service and the Data Processing Agreement were accepted at sign-up, so nothing is left to sign.
Can the agent add the DNS record itself?
Yes, when it has access to the DNS provider. Without access it gives the person the type, the name and the value and asks them to add that one TXT record. DNS is the one practical limit on what the agent does alone.
How long does domain verification take?
The domain is verified as soon as two public resolvers both return the TXT record. A record published a moment ago can take a few minutes to reach both. The check runs on its own every minute for the first hour, then every 15 minutes for 72 hours.
Does one verified domain cover its subdomains?
Yes. The registrable domain is worked out from the host you enter, so app.example.com registers example.com and covers every subdomain. A host on a platform address such as myapp.vercel.app is registered on its own and verifies by a file.
Can the TXT record be removed once the domain is verified?
No. A verified domain is checked again every day. Three failed daily checks in a row set the status to lapsed, live recording continues for 14 days, and then new live sessions are refused until verification is restored.
What does the agent do when the go-live call is refused?
It reads blocker and next_step in the error and does that step. domain_not_verified means register and verify the domain, and organization_details means send the organization object. A refusal with needs_person set to true is the person's step.
What happens to a live signature that fails a conformance rule?
By default a failing live signature is recorded and you are told at once which rule failed. Turn on blocking and it is refused. The setting is on the dashboard's Conformance page and at PUT /v1/agent/conformance.
Your person signs up once. You do the rest.
Free plan: 10 live signatures a month and a full test mode. No card required.