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.
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(){
"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
| Status | Code | When |
|---|---|---|
| 401 | CS-AUTH-0001 | No credential, or one that is expired or revoked (CS-AUTH-0002) |
| 429 | CS-API-0003 | Rate 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
Merged;
nullremoves a key.workflow_policymust be a valid policy.stamp_envelope_idis a boolean: whether a new envelope whose request does not say stamps its id on every page.mfa_policyisadministrators(the default, also when unset),everyoneoroptional: who must sign in with a second factor; requiring one is409 CS-API-0009while the server has noOPENSEAL_MFA_KEY. A setting the organization's policy governs that changes to a locked or looser value is422 CS-ORG-0002, naming the setting and the key.
Returns
200 with a Object object.
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": {},
},
){}Errors this can answer
| Status | Code | When |
|---|---|---|
| 400 / 422 | CS-API-0001 | Malformed request: a parameter or member is missing, unknown or out of range; errors[] points at it |
| 401 | CS-AUTH-0001 | No credential, or one that is expired or revoked (CS-AUTH-0002) |
| 403 | CS-AUTH-0006 | The credential lacks settings.sending |
| 413 | CS-API-0006 | The request body is over its limit |
| 415 | CS-API-0007 | The body is not application/json |
| 429 | CS-API-0003 | Rate 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.
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(){
"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
| Status | Code | When |
|---|---|---|
| 401 | CS-AUTH-0001 | No credential, or one that is expired or revoked (CS-AUTH-0002) |
| 403 | CS-AUTH-0006 | The credential lacks settings.sending |
| 429 | CS-API-0003 | Rate 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
ocrbooleantemplate_matchingbooleanextractionbooleanpersonal_databooleanpersonal_data_modelstring or nullocr_scriptsarray of stringreread_scanner_textboolean
Returns
200 with a MlSettings object.
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,
},
){
"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
| Status | Code | When |
|---|---|---|
| 400 / 422 | CS-API-0001 | Malformed request: a parameter or member is missing, unknown or out of range; errors[] points at it |
| 401 | CS-AUTH-0001 | No credential, or one that is expired or revoked (CS-AUTH-0002) |
| 403 | CS-AUTH-0006 | The credential lacks settings.sending |
| 413 | CS-API-0006 | The request body is over its limit |
| 415 | CS-API-0007 | The body is not application/json |
| 429 | CS-API-0003 | Rate limited: wait for Retry-After seconds |
Every error is an RFC 9457 problem with a stable code and a request_id; see Errors.