Skip to content
DocsMenu

Create a conformance run

View as Markdown

Open this page inChatGPTClaudeCursor

In the Esign Comply API, POST /v1/conformance/runs gathers the conformance findings of recent signing sessions into one report and returns it completed. Run it before go-live or in continuous integration, where the CLI's check command calls it for you. It takes a secret key with full_access or recording_access permission.

POST /v1/conformance/runs · API version 2026-11-21

Authentication

Send a secret key in the Authorization header: Bearer $ESIGNCOMPLY_API_KEY. The key needs full_access or recording_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 https://esigncomply.com/v1/conformance/runs \
  -H "Authorization: Bearer $ESIGNCOMPLY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "http://localhost:3000/signup",
    "since": "2026-11-25T23:15:10.425Z"
  }'

Node SDK

import { EsignComply } from "esigncomply";

const esc = new EsignComply(process.env.ESIGNCOMPLY_API_KEY);

const { data, error } = await esc.conformance.run({ url: "http://localhost:3000/signup", since: "2026-11-25T23:15:10.425Z" });

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

Every ceremony is evaluated against the conformance rules as its events arrive, and those findings come back on each event response. A run gathers the findings of recent ceremonies in the key's environment into one report: each rule, its status, what was measured, a plain-language fix and the pages it was seen on. Use it before go-live or in continuous integration. The run is computed in the request and returned with status: "completed".

For each session, rule and slot only the latest result counts, so a later pass on a repaired page supersedes an earlier failure.

A finding marked block or warn names the rule your screen missed and the fix.

Parameters

Body fields

All fields are optional. An empty body covers the last 24 hours.

Field Type Required Description
session_ids string[] No Up to 200 session IDs to report on. When sent, since is ignored.
since timestamp No Include results created after this time. Default: 24 hours ago.
url string No Only results recorded on this exact page URL (the session's context.url).
limit integer No Caps how many recent results are read, 1 to 500. Default 200.

The example shows one of the nine findings.

Field Description
summary Sessions covered, rules evaluated, the number of rules at block, warn and pass, the overall status (the most severe) and the since bound used.
findings[] One entry per rule, most severe first. status is the most severe result for the rule; counts splits the sessions by result. state is enforce (a block result refuses a live signature) or advise (the signature is recorded and the finding reported). message, measurement and fix come from a failing example when there is one. maps_to lists the pack rules behind the check. pages lists up to 10 page URLs. doc_url points at the rule in the conformance reference.
markdown The failing findings as Markdown, ready to paste back into an AI coding tool.
rules_version The rule-set version the results were evaluated under.

Test mode never blocks on a finding: it reports every finding so the page can be repaired. In live mode, by default, a signature with a block finding is recorded, and you are told at once which rule failed and what to fix. Turn on blocking and a block finding in the enforce state stops sealing. See When a live signature fails a rule. The conformance.run_completed webhook is sent with run_id, status, block and warn.

For the active check that drives your pages in a headless browser at three viewport sizes and then asks for a run, use the CLI: npx esigncomply check --url http://localhost:3000/signup. See the CLI reference.

Headers: Idempotency-Key (optional, up to 255 characters) and Esign-Comply-Version (optional, a dated API version). See API conventions.

Response

201 Created with a ConformanceRun object.

{
  "object": "conformance_run",
  "id": "cfr_qXiZ",
  "livemode": false,
  "status": "completed",
  "rules_version": "2026.11.2",
  "summary": {
    "sessions": 3,
    "rules_evaluated": 9,
    "block": 0,
    "warn": 0,
    "pass": 9,
    "status": "pass",
    "since": "2026-11-25T23:15:10.425Z"
  },
  "findings": [
    {
      "rule": "CR-01",
      "title": "Affirmative assent control",
      "status": "pass",
      "state": "enforce",
      "counts": {
        "pass": 3,
        "warn": 0,
        "block": 0
      },
      "message": "Assent control was unchecked or empty at load and changed by a trusted user event.",
      "measurement": {},
      "fix": null,
      "maps_to": [
        "US-08",
        "EU-01"
      ],
      "pages": [
        "http://localhost:3000/signup"
      ],
      "example_session": null,
      "doc_url": "https://esigncomply.com/docs/conformance#cr-01"
    },
    {
      "rule": "CR-02",
      "title": "Notice text names every document",
      "status": "pass",
      "state": "enforce",
      "counts": {
        "pass": 1,
        "warn": 0,
        "block": 0
      },
      "message": "Notice text exists inside the assent region and contains the title of every document in the session.",
      "measurement": {},
      "fix": null,
      "maps_to": [
        "US-09"
      ],
      "pages": [
        "http://localhost:3000/signup"
      ],
      "example_session": null,
      "doc_url": "https://esigncomply.com/docs/conformance#cr-02"
    },
    {
      "rule": "CR-03",
      "title": "Notice names the action control",
      "status": "pass",
      "state": "enforce",
      "counts": {
        "pass": 1,
        "warn": 0,
        "block": 0
      },
      "message": "Notice text names the action control by its label (for example \"By clicking 'Create account'\"), or the assent control is a checkbox whose own label states agreement to the named documents. A button label alone never satisfies this rule (Godun v. JustAnswer (9th Cir. 2025)). Vague phrases (\"by clicking below\", \"by continuing\") are flagged.",
      "measurement": {},
      "fix": null,
      "maps_to": [
        "US-09"
      ],
      "pages": [
        "http://localhost:3000/signup"
      ],
      "example_session": null,
      "doc_url": "https://esigncomply.com/docs/conformance#cr-03"
    }
  ],
  "markdown": "# Esign Comply conformance run cfr_qXiZ\n\nFindings are advisory and describe measurable design facts. They are not a statement that a flow is lawful or enforceable.\n\nNo findings.",
  "note": "Findings are advisory and describe measurable design facts. They are not a statement that a flow is lawful or enforceable.",
  "created_at": "2026-11-26T00:17:50.553Z"
}

Response fields

Field Type Description
object string
id string
livemode boolean
status string
rules_version string
summary object
findings array
markdown string The failing findings as Markdown, to paste into a coding tool.

Errors

Code HTTP When
invalid_request 400 A field has the wrong type or is out of range.
insufficient_permission 403 A read_only key cannot create a run.

Like every call made with a secret key, it can also return missing_api_key, invalid_api_key, 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/conformance/runs

Which credential does POST /v1/conformance/runs need?

A secret key with full_access or recording_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/conformance/runs 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/conformance/runs 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/conformance/runs 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/conformance/runs?

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/conformance/runs?

Yes: esc.conformance.run() in the esigncomply package. It resolves to { data, error } and does not throw.

Last updated · API version 2026-11-21