Administration

Account settings

The workspace's settings: sending, signing, security, branding defaults and document analysis.

Get account

GET/api/v1/accounts/me

The caller's account

AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session; any signed-in caller

Returns

200 with a Account object.

GET/api/v1/accounts/me

curl

curl https://sign.example.com/api/v1/accounts/me \
  -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.getAccount();

Python

import os
from openseal import OpenSeal

client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
data = client.get_account()
Response200
{
  "id": "01939af2-1132-79b2-8fc8-2e5efe906062",
  "name": "Example Workspace",
  "settings": {},
  "data_region": "example",
  "created_at": "2026-11-20T09:30:00Z",
  "sandbox": false,
  "organization_policy": {}
}
Errors this can answer
StatusCodeWhen
401CS-AUTH-0001No credential, or one that is expired or revoked (CS-AUTH-0002)
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.

Update account

PATCH/api/v1/accounts/me

Merge into the account's settings

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

Permissionsettings.sending · OAuth scope admin:account

Request body

Content type application/json · required

  • settingsobjectRequired

    Merged; null removes a key. workflow_policy must be a valid policy. stamp_envelope_id is a boolean: whether a new envelope whose request does not say stamps its id on every page. mfa_policy is administrators (the default, also when unset), everyone or optional: who must sign in with a second factor; requiring one is 409 CS-API-0009 while the server has no OPENSEAL_MFA_KEY. A setting the organization's policy governs that changes to a locked or looser value is 422 CS-ORG-0002, naming the setting and the key.

Returns

200 with a Object object.

PATCH/api/v1/accounts/me

curl

curl -X PATCH https://sign.example.com/api/v1/accounts/me \
  -H "Authorization: Bearer $OPENSEAL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "settings": {}
}'

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.patchAccount({
  body: {
    "settings": {}
  },
});

Python

import os
from openseal import OpenSeal

client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.patch_account(
    body={
        "settings": {},
    },
)
Response200
{}
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 settings.sending
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.

Get ML settings

GET/api/v1/account/settings/ml

The workspace's document-analysis settings

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

Permissionsettings.sending · OAuth scope admin:account

Returns

200 with a MlSettings object.

GET/api/v1/account/settings/ml

curl

curl https://sign.example.com/api/v1/account/settings/ml \
  -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.getMlSettings();

Python

import os
from openseal import OpenSeal

client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
data = client.get_ml_settings()
Response200
{
  "ocr": false,
  "template_matching": false,
  "extraction": false,
  "personal_data": false,
  "personal_data_model": "123456",
  "ocr_scripts": [
    "latin"
  ],
  "reread_scanner_text": false,
  "not_in_plan": [
    "ocr"
  ],
  "installed": false
}
Errors this can answer
StatusCodeWhen
401CS-AUTH-0001No credential, or one that is expired or revoked (CS-AUTH-0002)
403CS-AUTH-0006The credential lacks settings.sending
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.

Update ML settings

PATCH/api/v1/account/settings/ml

Turn document-analysis features on or off

Turning on a feature the plan lacks, or any feature while the model service is not installed, is 403 CS-ML-0011; turning one off is always allowed.

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

Permissionsettings.sending · OAuth scope admin:account

Request body

Content type application/json · required

Returns

200 with a MlSettings object.

PATCH/api/v1/account/settings/ml

curl

curl -X PATCH https://sign.example.com/api/v1/account/settings/ml \
  -H "Authorization: Bearer $OPENSEAL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "ocr": false,
  "template_matching": false,
  "extraction": false,
  "personal_data": false,
  "personal_data_model": "123456",
  "ocr_scripts": [
    "latin"
  ],
  "reread_scanner_text": false
}'

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.patchMlSettings({
  body: {
    "ocr": false,
    "template_matching": false,
    "extraction": false,
    "personal_data": false,
    "personal_data_model": "123456",
    "ocr_scripts": [
      "latin"
    ],
    "reread_scanner_text": false
  },
});

Python

import os
from openseal import OpenSeal

client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.patch_ml_settings(
    body={
        "ocr": False,
        "template_matching": False,
        "extraction": False,
        "personal_data": False,
        "personal_data_model": "123456",
        "ocr_scripts": [
            "latin",
        ],
        "reread_scanner_text": False,
    },
)
Response200
{
  "ocr": false,
  "template_matching": false,
  "extraction": false,
  "personal_data": false,
  "personal_data_model": "123456",
  "ocr_scripts": [
    "latin"
  ],
  "reread_scanner_text": false,
  "not_in_plan": [
    "ocr"
  ],
  "installed": false
}
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 settings.sending
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.