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.
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(){}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 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
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
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={},
){}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) |
| 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.
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.
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()No body.
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.
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.
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(){}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.
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.
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(){
"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
| 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 users.read |
| 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.
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
Idempotency-KeystringUp to 255 printable ASCII characters; a replay within 24 hours returns the first response.
Request body
Content type application/json · required
admin,sender,viewer, or a permission profile idpasswordstringNot on the bundled list of breached passwords, case ignored (422
common_passwordat /password); setting it emails the user a noticeinvitebooleanEmail a one-time link to set a password, valid 7 days; not with
password
Returns
201 with a User object.
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,
},
){
"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
| 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 users.invite |
| 409 | CS-API-0004 | The idempotency key was used with a different body (CS-API-0011 while the first is still running) |
| 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.
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
Object id (UUIDv7)
Returns
204 Erased with no body.
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",
)No body.
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 users.remove |
| 404 | CS-API-0002 | No such object, or one of another account (answered alike) |
| 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 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
Object id (UUIDv7)
Returns
200 with a User object.
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",
){
"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
| 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 users.read |
| 404 | CS-API-0002 | No such object, or one of another account (answered alike) |
| 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 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
Object id (UUIDv7)
Request body
Content type application/json · required
namestringpasswordstringNot on the bundled list of breached passwords, case ignored (422
common_passwordat /password); setting it emails the user a noticeprofilestringadmin,sender,viewer, or a permission profile id; not your owndisabledbooleanDisable (ending their sessions and open invitations) or enable the member in this account only; not yourself
Returns
200 with a User object.
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,
},
){
"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
| 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 users.update |
| 404 | CS-API-0002 | No such object, or one of another account (answered alike) |
| 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.
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
Object id (UUIDv7)
Returns
204 Done with no body.
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",
)No body.
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 users.remove |
| 404 | CS-API-0002 | No such object, or one of another account (answered alike) |
| 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.
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
Object id (UUIDv7)
Headers
Idempotency-KeystringUp to 255 printable ASCII characters; a replay within 24 hours returns the first response.
Request body
Content type application/json · required
Returns
200 Reset with application/json.
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",
},
){
"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
| 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 users.update |
| 404 | CS-API-0002 | No such object, or one of another account (answered alike) |
| 409 | CS-API-0004 | The idempotency key was used with a different body (CS-API-0011 while the first is still running) |
| 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.
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
Object id (UUIDv7)
Headers
Idempotency-KeystringUp to 255 printable ASCII characters; a replay within 24 hours returns the first response.
Returns
202 Queued with a User object.
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",
){
"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
| 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 users.invite |
| 404 | CS-API-0002 | No such object, or one of another account (answered alike) |
| 409 | CS-API-0004 | The idempotency key was used with a different body (CS-API-0011 while the first is still running) |
| 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.