Set what a failing live signature does
In the Esign Comply API, PUT /v1/agent/conformance sets whether a live signature that fails a rule is recorded and reported (notify) or refused before sealing (block). An AI agent calls it with an agent token after the person has chosen, and new live sessions use the value.
PUT /v1/agent/conformance · 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 -X PUT https://esigncomply.com/v1/agent/conformance \
-H "Authorization: Bearer $ESIGNCOMPLY_AGENT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"enforcement": "block"
}'
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 setting for the domain decides what happens when a live signature fails a rule. By default it is notify: the signature is recorded, and the owners and admins are told at once which rule failed and what to fix, by email and by the conformance.finding_reported webhook. With block, a failing live signature is refused before it is sealed: the completion call answers 422 conformance_failed with the findings. See When a live signature fails a rule.
This is a setting, not one of the person's steps. The call needs the role of an owner or an admin: with any other role it answers 403 insufficient_permission. Ask the person which they want before you change it.
Parameters
Body fields
| Field | Type | Required | Meaning |
|---|---|---|---|
enforcement |
string | Yes | notify or block. |
Response
200 OK with a ConformanceSettings object.
{
"object": "conformance_settings",
"domain_id": "dom_4Kx9",
"domain": "example.com",
"enforcement": "block",
"applies_to": "live",
"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."
},
"dashboard_url": "https://esigncomply.com/dashboard/conformance",
"previous": "notify",
"changed": true
}
Response fields
| Field | Meaning |
|---|---|
enforcement |
The value now in force: notify or block. |
applies_to |
Always live. Test mode never refuses a signature on a finding. |
choices |
One sentence on what each value does. |
previous, changed |
On PUT: the value before the call, and whether the call changed it. Sending the value already in force answers 200 with changed: false and writes nothing. |
Get the conformance setting returns the same object without previous and changed. It needs no more than the view permission, which every role has.
When the new value applies
The new value applies to live sessions created after the call. A session that is already open finishes under the value it was created with: each session object carries conformance_enforcement. The change is in the audit log as domain.conformance_enforcement_set, with the value before and after and the token's ID.
With block, handle conformance_failed where the page calls complete(): keep the form on screen, show the signer error.message, and repair the page from findings[].fix. The session stays open, so the signer can sign again once the page is right.
Errors
| Code | HTTP | When |
|---|---|---|
invalid_request |
400 | 400: enforcement is missing or is not notify or block. param is enforcement. |
insufficient_permission |
403 | 403: the member's role is not owner or admin. |
Like every call made with an agent token, it can also return missing_api_key, invalid_api_key, not_found, quota_exhausted, 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 PUT /v1/agent/conformance
Which credential does PUT /v1/agent/conformance 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 PUT /v1/agent/conformance 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 PUT /v1/agent/conformance 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 PUT /v1/agent/conformance idempotent?
It takes no Idempotency-Key header. The agent account API does not replay responses.
What is the rate limit for PUT /v1/agent/conformance?
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 PUT /v1/agent/conformance?
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.
- Get the account state:
GET /v1/agent - 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 - 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