Administration

Users

Members of a workspace: invite, change, disable, remove and erase, and the caller's own profile and data export.

Get my profile

GET/api/v1/users/me

The signed-in user's own profile

{id, name, email, notifications {completed, declined, viewed}, signature, initials}; each mark is {image_base64} or null. Notices and marks are this account's.

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

Returns

200 with a Object object.

GET/api/v1/users/me

curl

curl https://sign.example.com/api/v1/users/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.getMe();

Python

import os
from openseal import OpenSeal

client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
data = client.get_me()
Response200
{}
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 my profile

PATCH/api/v1/users/me

Change one's own profile

{name?, notifications?, signature?, initials?, password?, current_password?}. A mark is {image_base64} (PNG or JPEG, at most 5 MiB) or null to remove it. The name and password are the user's in every account and change only through their own session (422 with another credential). A new password needs the current one (401 CS-AUTH-0007 when wrong) and ends every other session of the user in every account; this session stays.

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

Request body

Content type application/json · required

Object

Returns

200 with a Object object.

Limits

  • Saved signature or initials (PATCH /users/me, UXW-37): a PNG or JPEG of 1 byte to 5 MiB (base64 text at most 6,990,508 characters); a name 1–255 characters after trimming
PATCH/api/v1/users/me

curl

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

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

Python

import os
from openseal import OpenSeal

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

Erase my account

DELETE/api/v1/users/me

Erase one's own identity in this workspace

After a recent re-authentication (403 CS-AUTH-0013 otherwise), from a session of the person (422 with another credential): name and email replaced by a marker, login binding, password and second factor removed, sessions here ended, saved signature, notices, invitations and password resets deleted, owned API clients revoked; recorded as the admin event member.erased. Audit events, admin logs, tombstones and sealed documents are never altered. 403 CS-API-0015 for a member of another workspace too; 409 CS-API-0018 for the workspace's last administrator or an organization administrator.

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

Returns

204 Erased with no body.

DELETE/api/v1/users/me

curl

curl -X DELETE https://sign.example.com/api/v1/users/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 result = await os.eraseMe();

Python

import os
from openseal import OpenSeal

client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.erase_me()
Response204

No body.

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.

Export my data

GET/api/v1/users/me/export

Export one's own data in this workspace

One JSON document {format: "openseal.personal-data-export", v: 1, exported_at, workspace, user, login_kind, profile, sessions, api_clients, envelopes, templates, kept}. Each envelope the caller sent lists the routes serving its documents, certificate and audit trail, each authorized and logged per object. Nothing of another workspace or member. At most 3 a minute per user (429); logged as a data.document_read security event.

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

Returns

200 with a Object object.

GET/api/v1/users/me/export

curl

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

Python

import os
from openseal import OpenSeal

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

List users

GET/api/v1/users

Members of the account

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

Permissionusers.read · OAuth scope admin:users

Returns

200 with a UserList object.

GET/api/v1/users

curl

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

Python

import os
from openseal import OpenSeal

client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
data = client.list_users()
Response200
{
  "items": [
    {
      "id": "019304f8-996d-7a76-83b7-a969b1028ee3",
      "email": "[email protected]",
      "name": "Example Signer",
      "login_kind": "example",
      "permission_profile_id": "0193de47-4272-71ee-8dd9-deab850e36ce",
      "disabled": false,
      "invitation": "pending"
    }
  ]
}
Errors this can answer
StatusCodeWhen
401CS-AUTH-0001No credential, or one that is expired or revoked (CS-AUTH-0002)
403CS-AUTH-0006The credential lacks users.read
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.

Create user

POST/api/v1/users

Add a local member

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

Permissionusers.invite · OAuth scope admin:users

Headers

  • Up to 255 printable ASCII characters; a replay within 24 hours returns the first response.

    at most 255 characters

Request body

Content type application/json · required

  • emailstringRequired
  • namestringRequired

    at most 255 characters

  • profilestringRequired

    admin, sender, viewer, or a permission profile id

  • passwordstring

    Not on the bundled list of breached passwords, case ignored (422 common_password at /password); setting it emails the user a notice

    at least 12 characters · at most 256 characters

  • inviteboolean

    Email a one-time link to set a password, valid 7 days; not with password

    Default false

Returns

201 with a User object.

POST/api/v1/users

curl

curl -X POST https://sign.example.com/api/v1/users \
  -H "Authorization: Bearer $OPENSEAL_API_KEY" \
  -H 'Idempotency-Key: order-1042' \
  -H "Content-Type: application/json" \
  -d '{
  "email": "[email protected]",
  "name": "Example Signer",
  "profile": "example",
  "password": "correct-horse-battery-staple",
  "invite": 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.createUser({
  idempotencyKey: "order-1042",
  body: {
    "email": "[email protected]",
    "name": "Example Signer",
    "profile": "example",
    "password": "correct-horse-battery-staple",
    "invite": false
  },
});

Python

import os
from openseal import OpenSeal

client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.create_user(
    idempotency_key="order-1042",
    body={
        "email": "[email protected]",
        "name": "Example Signer",
        "profile": "example",
        "password": "correct-horse-battery-staple",
        "invite": False,
    },
)
Response201
{
  "id": "019304f8-996d-7a76-83b7-a969b1028ee3",
  "email": "[email protected]",
  "name": "Example Signer",
  "login_kind": "example",
  "permission_profile_id": "0193de47-4272-71ee-8dd9-deab850e36ce",
  "disabled": false,
  "invitation": "pending"
}
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 users.invite
409CS-API-0004The idempotency key was used with a different body (CS-API-0011 while the first is still running)
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.

Erase user

POST/api/v1/users/{id}/erase

Erase a member's identity

As DELETE /users/me, by an administrator after a recent re-authentication: never their own (422), never a member above them (403 CS-ORG-0005), never a member of another workspace too (403 CS-API-0015), never the last administrator or an organization administrator (409 CS-API-0018).

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

Permissionusers.remove · OAuth scope admin:users

Path parameters

  • idstringRequired

    Object id (UUIDv7)

    uuid

Returns

204 Erased with no body.

POST/api/v1/users/{id}/erase

curl

curl -X POST https://sign.example.com/api/v1/users/019304f8-996d-7a76-83b7-a969b1028ee3/erase \
  -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 result = await os.eraseUser({
  id: "019304f8-996d-7a76-83b7-a969b1028ee3",
});

Python

import os
from openseal import OpenSeal

client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.erase_user(
    id="019304f8-996d-7a76-83b7-a969b1028ee3",
)
Response204

No body.

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 users.remove
404CS-API-0002No such object, or one of another account (answered alike)
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 user

GET/api/v1/users/{id}

A member

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

Permissionusers.read · OAuth scope admin:users

Path parameters

  • idstringRequired

    Object id (UUIDv7)

Returns

200 with a User object.

GET/api/v1/users/{id}

curl

curl https://sign.example.com/api/v1/users/019304f8-996d-7a76-83b7-a969b1028ee3 \
  -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.getUser({
  id: "019304f8-996d-7a76-83b7-a969b1028ee3",
});

Python

import os
from openseal import OpenSeal

client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
data = client.get_user(
    id="019304f8-996d-7a76-83b7-a969b1028ee3",
)
Response200
{
  "id": "019304f8-996d-7a76-83b7-a969b1028ee3",
  "email": "[email protected]",
  "name": "Example Signer",
  "login_kind": "example",
  "permission_profile_id": "0193de47-4272-71ee-8dd9-deab850e36ce",
  "disabled": false,
  "invitation": "pending"
}
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 users.read
404CS-API-0002No such object, or one of another account (answered alike)
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 user

PATCH/api/v1/users/{id}

Rename a member, set their password, change their profile, disable or enable them

The name and password belong to the user in every account. An administrator, or any API key (the user's own included), changes them only for a user whose one membership is this account; for a user who also belongs to another account it is 403 CS-API-0015 and nothing in the request is applied. The user changes their own name and password through their own session; a new password ends their sessions in every account. Profile fields and disabling apply to this account's membership only.

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

Permissionusers.update · OAuth scope admin:users

Path parameters

  • idstringRequired

    Object id (UUIDv7)

Request body

Content type application/json · required

  • namestring

    at most 255 characters

  • passwordstring

    Not on the bundled list of breached passwords, case ignored (422 common_password at /password); setting it emails the user a notice

    at least 12 characters · at most 256 characters

  • profilestring

    admin, sender, viewer, or a permission profile id; not your own

  • disabledboolean

    Disable (ending their sessions and open invitations) or enable the member in this account only; not yourself

Returns

200 with a User object.

PATCH/api/v1/users/{id}

curl

curl -X PATCH https://sign.example.com/api/v1/users/019304f8-996d-7a76-83b7-a969b1028ee3 \
  -H "Authorization: Bearer $OPENSEAL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Example Signer",
  "password": "correct-horse-battery-staple",
  "profile": "example",
  "disabled": 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.patchUser({
  id: "019304f8-996d-7a76-83b7-a969b1028ee3",
  body: {
    "name": "Example Signer",
    "password": "correct-horse-battery-staple",
    "profile": "example",
    "disabled": false
  },
});

Python

import os
from openseal import OpenSeal

client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.patch_user(
    id="019304f8-996d-7a76-83b7-a969b1028ee3",
    body={
        "name": "Example Signer",
        "password": "correct-horse-battery-staple",
        "profile": "example",
        "disabled": False,
    },
)
Response200
{
  "id": "019304f8-996d-7a76-83b7-a969b1028ee3",
  "email": "[email protected]",
  "name": "Example Signer",
  "login_kind": "example",
  "permission_profile_id": "0193de47-4272-71ee-8dd9-deab850e36ce",
  "disabled": false,
  "invitation": "pending"
}
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 users.update
404CS-API-0002No such object, or one of another account (answered alike)
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.

Delete user

DELETE/api/v1/users/{id}

Remove a member from the account

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

Permissionusers.remove · OAuth scope admin:users

Path parameters

  • idstringRequired

    Object id (UUIDv7)

Returns

204 Done with no body.

DELETE/api/v1/users/{id}

curl

curl -X DELETE https://sign.example.com/api/v1/users/019304f8-996d-7a76-83b7-a969b1028ee3 \
  -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 result = await os.deleteUser({
  id: "019304f8-996d-7a76-83b7-a969b1028ee3",
});

Python

import os
from openseal import OpenSeal

client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.delete_user(
    id="019304f8-996d-7a76-83b7-a969b1028ee3",
)
Response204

No body.

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 users.remove
404CS-API-0002No such object, or one of another account (answered alike)
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.

Reset member second factor

POST/api/v1/users/{id}/second-factor/reset

Reset the second factors of a member who lost them (ASVS-32, ASVS 2.5.7)

For an administrator of the workspace (or of its organization) signed in with a staff session that re-authenticated within five minutes (403 CS-AUTH-0013); never an API key or token, never oneself (422). identity_verified_by records how the person's identity was proved out of band. The member must belong to this workspace alone (403 CS-API-0015). Their TOTP authenticator, passkeys and recovery codes are removed, their sessions end, and their next sign-in must enrol a new factor before anything else, whatever the policy. Recorded in the administrative log (member.factors_reset) and the security log (auth.mfa_remove); the member is told by email.

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

Permissionusers.update · OAuth scope admin:users

Path parameters

  • idstringRequired

    Object id (UUIDv7)

Headers

  • Up to 255 printable ASCII characters; a replay within 24 hours returns the first response.

    at most 255 characters

Request body

Content type application/json · required

  • identity_verified_bystringRequired

    One of in_person, video_call, phone_callback, manager_confirmation, identity_document

Returns

200 Reset with application/json.

POST/api/v1/users/{id}/second-factor/reset

curl

curl -X POST https://sign.example.com/api/v1/users/019304f8-996d-7a76-83b7-a969b1028ee3/second-factor/reset \
  -H "Authorization: Bearer $OPENSEAL_API_KEY" \
  -H 'Idempotency-Key: order-1042' \
  -H "Content-Type: application/json" \
  -d '{
  "identity_verified_by": "in_person"
}'

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.resetMemberSecondFactor({
  id: "019304f8-996d-7a76-83b7-a969b1028ee3",
  idempotencyKey: "order-1042",
  body: {
    "identity_verified_by": "in_person"
  },
});

Python

import os
from openseal import OpenSeal

client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.reset_member_second_factor(
    id="019304f8-996d-7a76-83b7-a969b1028ee3",
    idempotency_key="order-1042",
    body={
        "identity_verified_by": "in_person",
    },
)
Response200
{
  "user_id": "019304f8-996d-7a76-83b7-a969b1028ee3",
  "removed": {
    "totp": false,
    "passkeys": 1
  },
  "identity_verified_by": "example",
  "enrol_at_next_sign_in": 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 users.update
404CS-API-0002No such object, or one of another account (answered alike)
409CS-API-0004The idempotency key was used with a different body (CS-API-0011 while the first is still running)
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.

Invite user

POST/api/v1/users/{id}/invite

Email the member a new one-time set-password link; earlier links stop working

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

Permissionusers.invite · OAuth scope admin:users

Path parameters

  • idstringRequired

    Object id (UUIDv7)

Headers

  • Up to 255 printable ASCII characters; a replay within 24 hours returns the first response.

    at most 255 characters

Returns

202 Queued with a User object.

POST/api/v1/users/{id}/invite

curl

curl -X POST https://sign.example.com/api/v1/users/019304f8-996d-7a76-83b7-a969b1028ee3/invite \
  -H "Authorization: Bearer $OPENSEAL_API_KEY" \
  -H 'Idempotency-Key: order-1042'

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.inviteUser({
  id: "019304f8-996d-7a76-83b7-a969b1028ee3",
  idempotencyKey: "order-1042",
});

Python

import os
from openseal import OpenSeal

client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.invite_user(
    id="019304f8-996d-7a76-83b7-a969b1028ee3",
    idempotency_key="order-1042",
)
Response202
{
  "id": "019304f8-996d-7a76-83b7-a969b1028ee3",
  "email": "[email protected]",
  "name": "Example Signer",
  "login_kind": "example",
  "permission_profile_id": "0193de47-4272-71ee-8dd9-deab850e36ce",
  "disabled": false,
  "invitation": "pending"
}
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 users.invite
404CS-API-0002No such object, or one of another account (answered alike)
409CS-API-0004The idempotency key was used with a different body (CS-API-0011 while the first is still running)
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.