Administration

Electronic disclosure

Versions of the electronic records and signature disclosure recipients consent to.

List ERSD versions

GET/api/v1/ersd-versions

The account's electronic disclosure: the one the workflow policy names, with its text, and the published versions

current is the disclosure settings.workflow_policy.ersd names, with its published text (text null when no intact published row has that hash), or null when the account requires none. items are the published versions, newest first, at most 100, without their text.

AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session

Permissionersd.manage · OAuth scope admin:account

Returns

200 with a ErsdVersions object.

GET/api/v1/ersd-versions

curl

curl https://sign.example.com/api/v1/ersd-versions \
  -H "Authorization: Bearer $OPENSEAL_API_KEY"

TypeScript

import { OpenSeal } from "@openseal/sdk";

const os = new OpenSeal({ baseUrl: "https://sign.example.com", apiKey: process.env.OPENSEAL_API_KEY });
const data = await os.listErsdVersions();

Python

import os
from openseal import OpenSeal

client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
data = client.list_ersd_versions()
Response200
{
  "current": {
    "label": "company_name",
    "sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
    "version": 3,
    "language": "en",
    "published_at": "2026-11-20T09:30:00Z",
    "text": "Example text"
  },
  "items": [
    {
      "id": "019316ba-f930-7f55-8e0b-545557a40802",
      "version": 3,
      "label": "company_name",
      "language": "en",
      "sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
      "published_at": "2026-11-20T09:30:00Z"
    }
  ]
}
Errors this can answer
StatusCodeWhen
401CS-AUTH-0001No credential, or one that is expired or revoked (CS-AUTH-0002)
403CS-AUTH-0006The credential lacks ersd.manage
429CS-API-0003Rate limited: wait for Retry-After seconds

Every error is an RFC 9457 problem with a stable code and a request_id; see Errors.

Publish ERSD version

POST/api/v1/ersd-versions

Publish disclosure text as the next version and require it, in one step

Writes the next version of language (one more than its highest), its ersd.published admin event, and settings.workflow_policy.ersd = {version, hash} with its workspace.settings_changed event, in one transaction. Envelopes already sent then ask for consent to the new version. Published rows are never changed: a new text is a new version. An empty or blank text, one with a NUL, or a bad language tag is 422 CS-API-0001; a text over 100,000 bytes is 413 CS-API-0006.

AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session

Permissionersd.manage · OAuth scope admin:account

Request body

Content type application/json · required

  • textstringRequired

    The disclosure recipients read and consent to; at most 100,000 bytes of UTF-8, not blank, no NUL

    at least 1 characters · at most 100000 characters

  • languagestring

    matches ^[A-Za-z][A-Za-z0-9-]{1,34}$ · Default en

Returns

201 Published and required with a ErsdVersion object.

Limits

  • Electronic disclosure text (POST /ersd-versions, ERSD-01); its language tag: 100,000 bytes of UTF-8, not blank, no NUL; 2 to 35 ASCII letters, digits and -, starting with a letter
POST/api/v1/ersd-versions

curl

curl -X POST https://sign.example.com/api/v1/ersd-versions \
  -H "Authorization: Bearer $OPENSEAL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "text": "Example text",
  "language": "en"
}'

TypeScript

import { OpenSeal } from "@openseal/sdk";

const os = new OpenSeal({ baseUrl: "https://sign.example.com", apiKey: process.env.OPENSEAL_API_KEY });
const result = await os.publishErsdVersion({
  body: {
    "text": "Example text",
    "language": "en"
  },
});

Python

import os
from openseal import OpenSeal

client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.publish_ersd_version(
    body={
        "text": "Example text",
        "language": "en",
    },
)
Response201
{
  "id": "019316ba-f930-7f55-8e0b-545557a40802",
  "version": 3,
  "label": "company_name",
  "language": "en",
  "sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
  "published_at": "2026-11-20T09:30:00Z"
}
Errors this can answer
StatusCodeWhen
400 / 422CS-API-0001Malformed request: a parameter or member is missing, unknown or out of range; errors[] points at it
401CS-AUTH-0001No credential, or one that is expired or revoked (CS-AUTH-0002)
403CS-AUTH-0006The credential lacks ersd.manage
413CS-API-0006The request body is over its limit
415CS-API-0007The body is not application/json
429CS-API-0003Rate limited: wait for Retry-After seconds

Every error is an RFC 9457 problem with a stable code and a request_id; see Errors.