Get the account state
In the Esign Comply API, GET /v1/agent reads the account state for an agent: organization, domain, plan, usage, setup progress and the next step to take. An AI agent calls it with an agent token first, to learn where setup stands and which call comes next.
GET /v1/agent · API version 2026-11-21
Authentication
Send an agent token (esc_agent_...) in the Authorization header: Bearer $ESIGNCOMPLY_AGENT_TOKEN. The token acts as the member who created it, with that member's role. A person creates it under Agent access in the dashboard. An API key is refused with invalid_api_key. See Authentication of the agent account API.
Request example
cURL
curl https://esigncomply.com/v1/agent \
-H "Authorization: Bearer $ESIGNCOMPLY_AGENT_TOKEN"
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
One call tells the agent where the account stands: the organization, the domain with its DNS record, the plan and usage, how far setup is, and the next step with its API call and its dashboard page. It reads only, and it is the one call a locked account still answers.
Parameters
This call takes no parameters.
Response
200 OK with an AgentAccount object.
{
"object": "agent_account",
"token": {
"id": "agt_3wpK",
"name": "My AI agent",
"expires_at": "2026-12-26T00:15:25.981Z"
},
"acts_as": {
"email": "owner@example.com",
"role": "owner",
"second_factor_enrolled": false
},
"organization": {
"id": "org_6d42",
"name": "Acme, Inc.",
"legal_name": null,
"country": null,
"details_complete": false
},
"domain": {
"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.462Z",
"lapsed_at": null,
"test_origins": [],
"conformance_enforcement": "notify",
"api_url": "https://esigncomply.com/v1",
"created_at": "2026-11-26T00:15:23.620Z"
},
"plan": {
"id": "sandbox",
"name": "Free",
"status": "active",
"live_events": 10,
"live_events_period": "month",
"test_events_per_month": 500
},
"usage": {
"object": "usage",
"plan": "sandbox",
"plan_name": "Free",
"subscription_status": "active",
"period": {
"start": "2026-11-26T00:15:23.620Z",
"end": null
},
"events": {
"used": 0,
"quota": 10,
"period": "month",
"period_start": "2026-11-01T00:00:00.000Z",
"resets_at": "2026-12-01T00:00:00.000Z",
"open_sessions": 0,
"event_packs": 0,
"allowance": 10,
"remaining": 10,
"level": "ok",
"locked": false,
"locked_since": null,
"event_packs_enabled": false,
"over_quota_since": null
},
"test_events": {
"used_this_month": 5,
"quota_per_month": 500
},
"certificates": {
"included": null,
"used": 0,
"remaining": null,
"charged_units": 0,
"resets_at": null,
"charged_month_to_date": 0,
"spend_limit": 50000,
"unit_amount": 0,
"live_available": false
},
"supplements": {
"count": 0,
"storage_used_bytes": 0,
"storage_allowance_bytes": 2147483648
}
},
"locked": null,
"live": {
"ready": false,
"live": false,
"live_keys": 0,
"test_keys": 1,
"agreements_accepted": true,
"blockers": [
{
"code": "domain_not_verified",
"message": "Verify example.com first. Live keys only work on a verified domain."
},
{
"code": "organization_details",
"message": "Add your organization's legal name and country first. The legal name is printed on every evidence report."
}
],
"allowance": {
"limit": 10,
"used": 0,
"open_sessions": 0,
"remaining": 10,
"resets_at": "2026-12-01T00:00:00.000Z",
"locked": false
},
"domain_verified": false,
"needs_person": false
},
"onboarding": {
"key_created": true,
"first_test_record": true,
"domain_verified": false,
"live": false
},
"conformance": {
"enforcement": "notify",
"choices": {
"notify": "The signature is recorded and sealed with the finding on it, and you are told at once which rule failed and what to fix: the conformance.finding_reported webhook fires, and owners and admins get an email.",
"block": "The signature is refused before it is sealed: the completion call returns 422 conformance_failed with the findings, so your page can show the signer what to do."
},
"api": "PUT /v1/agent/conformance {\"enforcement\":\"block\"}",
"browser": "/dashboard/conformance"
},
"next_step": {
"id": "verify_domain",
"done": false,
"what": "Publish the TXT record in `domain.verification` at the DNS provider, then run the check. Without DNS access, ask the person to add that one record.",
"api": "POST /v1/agent/domain/verify",
"browser": "/dashboard/domains"
},
"steps": [
{
"id": "create_test_key",
"done": true,
"what": "Create a test API key and store it server-side as ESIGNCOMPLY_API_KEY.",
"api": "POST /v1/agent/api-keys {\"mode\":\"test\"}",
"browser": "/dashboard"
},
{
"id": "first_test_record",
"done": true,
"what": "Register a document, create a profile, build the signing flow and record one test signature. The runbook is /setup.md.",
"api": "POST /v1/documents, POST /v1/profiles, POST /v1/sessions (with the API key)",
"browser": "/dashboard/prompts/new"
},
{
"id": "register_domain",
"done": true,
"what": "Register the domain the signing pages run on.",
"api": "PUT /v1/agent/domain {\"domain\":\"example.com\"}",
"browser": "/dashboard/domains"
}
],
"human_only": [
"Accepting legal terms or signing anything for the organization",
"Sign-in security: second factors",
"Creating agent tokens (an agent can revoke its own)",
"Team members and roles",
"Billing and plan changes"
],
"api_url": "https://esigncomply.com/v1",
"dashboard_url": "https://esigncomply.com/dashboard",
"agent_login_url": "https://esigncomply.com/agent-login",
"guide_url": "https://esigncomply.com/agents.md"
}
Response fields
usage is the whole object of GET /v1/usage, and steps has seven entries.
| Field | Meaning |
|---|---|
token |
The token in use: its ID, its name and when it expires. Never the token itself. |
acts_as |
The member the token acts as, their role, and whether they have a second factor. |
organization |
The organization. details_complete is true once the legal name and the country are saved. |
domain |
The domain object. verification holds the DNS record once a domain is registered. |
plan |
The plan: sandbox is the id of the Free plan. |
usage |
The object of GET /v1/usage. events.used against events.allowance is the count to watch. |
locked |
null, or the lock when the plan's limit was reached. See When the account is locked. |
live |
ready: a live key can be created now. live: ready and holding a live key. blockers lists what stands in the way, in the order to fix it. needs_person is true when a blocker is the person's step. |
onboarding |
The four steps of the dashboard's Get started page. |
conformance |
What a live signature that fails a rule does. enforcement is notify (recorded, and you are told at once which rule failed and what to fix) or block (refused before it is sealed). api is the call that changes it and browser is the dashboard page. See Set what a failing live signature does. |
next_step |
The first entry of steps that is not done, or the upgrade when the account is locked. api is the call to make and browser is the dashboard page for the same step. |
steps |
Every step in order: create_test_key, first_test_record, register_domain, verify_domain, organization_details, accept_agreements, create_live_key. |
human_only |
The steps that stay with the person. |
api_url |
The base URL of the API for this domain. Store it as ESIGNCOMPLY_API_URL: the Node SDK and the CLI read that variable. |
Errors
This call has no error of its own. Like every call made with an agent token, it can also return missing_api_key, invalid_api_key, not_found, 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 GET /v1/agent
Which credential does GET /v1/agent need?
An agent token, which starts with esc_agent_. Send it as a Bearer token in the Authorization header. An API key is refused with invalid_api_key.
Does GET /v1/agent work with a test key?
An agent token has no test or live mode. It acts on the account, and the keys it creates are test keys or live keys.
Does GET /v1/agent 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 GET /v1/agent idempotent?
It is a read, so it is safe to repeat. It takes no Idempotency-Key header.
What is the rate limit for GET /v1/agent?
60 calls per minute for each agent token and 120 per minute for each IP address. Past the limit the API answers 429 rate_limit_exceeded with a Retry-After header.
Does the Node SDK have a method for GET /v1/agent?
No. The agent account API is called over HTTP with the agent token. The esigncomply package works with API keys.
Related
- Agent account API: the overview of the resource and all of its operations.
- Create an API key as an agent:
POST /v1/agent/api-keys - Retrieve the domain as an agent:
GET /v1/agent/domain - Register the domain as an agent:
PUT /v1/agent/domain - Verify the domain as an agent:
POST /v1/agent/domain/verify - MCP server
- Agent skill
- Errors: every error code, with what to do.
- API conventions: authentication, idempotency, rate limits and versioning.
Last updated · API version 2026-11-21