Administration

Sessions and sign-in

Staff sign-in for the web app: sessions, second factors, passkeys and workspace switching. Integrations authenticate with API keys or OAuth instead.

Sign in

POST/api/v1/auth/login

Local password login: session cookie and CSRF token

AuthNone (public)

Request body

Content type application/json · required

Returns

200 with a LoginResponse object.

POST/api/v1/auth/login

curl

curl -X POST https://sign.example.com/api/v1/auth/login \
  -H "Content-Type: application/json" \
  -d '{
  "email": "[email protected]",
  "password": "correct-horse-battery-staple",
  "account_id": "01939af2-1132-79b2-8fc8-2e5efe906062"
}'

TypeScript

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

const os = new OpenSeal({ baseUrl: "https://sign.example.com" });
const result = await os.login({
  body: {
    "email": "[email protected]",
    "password": "correct-horse-battery-staple",
    "account_id": "01939af2-1132-79b2-8fc8-2e5efe906062"
  },
});

Python

import os
from openseal import OpenSeal

client = OpenSeal("https://sign.example.com")
result = client.login(
    body={
        "email": "[email protected]",
        "password": "correct-horse-battery-staple",
        "account_id": "01939af2-1132-79b2-8fc8-2e5efe906062",
    },
)
Response200
{
  "account_id": "01939af2-1132-79b2-8fc8-2e5efe906062",
  "user_id": "019304f8-996d-7a76-83b7-a969b1028ee3",
  "csrf_token": "example",
  "expires_at": "2026-12-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
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.

Accept invite

POST/api/v1/auth/accept-invite

Spend a user invitation's one-time link and set the password

An unknown, expired, spent or revoked link, or a member disabled meanwhile, is 401 CS-AUTH-0002, all alike. Setting the password ends the member's sessions in every account they belong to. The member then logs in with /auth/login. Rate-limited as login.

AuthNone (public)

Request body

Content type application/json · required

  • tokenstringRequired

    The token from the invitation link

    at most 128 characters

  • passwordstringRequired

    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

Returns

200 with application/json.

POST/api/v1/auth/accept-invite

curl

curl -X POST https://sign.example.com/api/v1/auth/accept-invite \
  -H "Content-Type: application/json" \
  -d '{
  "token": "tok_example",
  "password": "correct-horse-battery-staple"
}'

TypeScript

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

const os = new OpenSeal({ baseUrl: "https://sign.example.com" });
const result = await os.acceptInvite({
  body: {
    "token": "tok_example",
    "password": "correct-horse-battery-staple"
  },
});

Python

import os
from openseal import OpenSeal

client = OpenSeal("https://sign.example.com")
result = client.accept_invite(
    body={
        "token": "tok_example",
        "password": "correct-horse-battery-staple",
    },
)
Response200
{
  "account_id": "01939af2-1132-79b2-8fc8-2e5efe906062",
  "user_id": "019304f8-996d-7a76-83b7-a969b1028ee3"
}
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
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.

Sign out

POST/api/v1/auth/logout

End the current staff session

Also for a session that still owes its second factor (x-permission: signing-in).

AuthA staff session, also one that still owes its second factor

Headers

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

    at most 255 characters

Returns

204 Done with no body.

POST/api/v1/auth/logout

curl

curl -X POST https://sign.example.com/api/v1/auth/logout \
  -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.logout({
  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.logout(
    idempotency_key="order-1042",
)
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)
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.

Request password reset

POST/api/v1/auth/password-reset

Ask for a password-reset email

No session. 202 {} for any well-formed address, whether or not it has an account (no enumeration). For a local, enabled user the worker emails a one-time link that expires in an hour; only the SHA-256 of its token is stored. At most one email a minute per user; rate-limited as login, per address and per client.

AuthNone (public)

Request body

Content type application/json · required

Returns

202 Accepted with a Object object.

POST/api/v1/auth/password-reset

curl

curl -X POST https://sign.example.com/api/v1/auth/password-reset \
  -H "Content-Type: application/json" \
  -d '{
  "email": "[email protected]"
}'

TypeScript

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

const os = new OpenSeal({ baseUrl: "https://sign.example.com" });
const result = await os.requestPasswordReset({
  body: {
    "email": "[email protected]"
  },
});

Python

import os
from openseal import OpenSeal

client = OpenSeal("https://sign.example.com")
result = client.request_password_reset(
    body={
        "email": "[email protected]",
    },
)
Response202
{}
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
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.

Confirm password reset

POST/api/v1/auth/password-reset/confirm

Spend a password-reset link and set a new password

An unknown, expired, spent or revoked link is 401 CS-AUTH-0002, all alike. Setting the password ends the user's sessions in every account and revokes their other open resets. Rate-limited as login.

AuthNone (public)

Request body

Content type application/json · required

  • tokenstringRequired

    The token from the invitation link

    at most 128 characters

  • passwordstringRequired

    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

Returns

200 with application/json.

Limits

  • Password-reset link (POST /auth/password-reset/confirm, UXW-38): a token of 1–128 characters; valid one hour from sending, once; at most one email a minute per user
POST/api/v1/auth/password-reset/confirm

curl

curl -X POST https://sign.example.com/api/v1/auth/password-reset/confirm \
  -H "Content-Type: application/json" \
  -d '{
  "token": "tok_example",
  "password": "correct-horse-battery-staple"
}'

TypeScript

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

const os = new OpenSeal({ baseUrl: "https://sign.example.com" });
const result = await os.confirmPasswordReset({
  body: {
    "token": "tok_example",
    "password": "correct-horse-battery-staple"
  },
});

Python

import os
from openseal import OpenSeal

client = OpenSeal("https://sign.example.com")
result = client.confirm_password_reset(
    body={
        "token": "tok_example",
        "password": "correct-horse-battery-staple",
    },
)
Response200
{
  "account_id": "01939af2-1132-79b2-8fc8-2e5efe906062",
  "user_id": "019304f8-996d-7a76-83b7-a969b1028ee3"
}
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
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.

List sign-in providers

GET/api/v1/auth/providers

SSO identity providers offered on sign-in

No session. {items: [{id, name, url}]}; empty until SSO is built.

AuthNone (public)

Returns

200 with a Object object.

GET/api/v1/auth/providers

curl

curl https://sign.example.com/api/v1/auth/providers

TypeScript

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

const os = new OpenSeal({ baseUrl: "https://sign.example.com" });
const data = await os.authProviders();

Python

import os
from openseal import OpenSeal

client = OpenSeal("https://sign.example.com")
data = client.auth_providers()
Response200
{}
Errors this can answer
StatusCodeWhen
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 my workspaces

GET/api/v1/auth/workspaces

The caller's workspaces, grouped by organization

Every workspace the signed-in person holds an enabled membership in, by organization, with the session's own workspace marked current. Metadata only. A staff session only: an API key or access token belongs to one workspace and gets 422 CS-API-0001.

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

Returns

200 with a MyWorkspaces object.

GET/api/v1/auth/workspaces

curl

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

Python

import os
from openseal import OpenSeal

client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
data = client.list_my_workspaces()
Response200
{
  "current": "example",
  "organizations": [
    {
      "id": "01930384-6851-78ad-8812-2e13112743f8",
      "name": "Example Workspace",
      "workspaces": [
        {
          "id": "01930384-6851-78ad-8812-2e13112743f8",
          "name": "Example Workspace",
          "status": "active",
          "current": false
        }
      ]
    }
  ]
}
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.

Reauthenticate

POST/api/v1/auth/reauthenticate

Prove the password again before a sensitive action

password, and when the user has a second factor also code (single use), recovery_code (spent), or passkey, an assertion answering a reauthenticate challenge from POST /auth/mfa/passkeys/options. Opens a five-minute window in which the session's sensitive actions are served; outside it they answer 403 CS-AUTH-0013 and the client asks for this and repeats the request. 401 CS-AUTH-0007 for a wrong password, 401 CS-AUTH-0012 for a wrong or reused code, 422 CS-API-0001 (/code) when a factor is needed and none was sent. Rate-limited per user as login is. A staff session only.

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

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

Returns

200 with application/json.

POST/api/v1/auth/reauthenticate

curl

curl -X POST https://sign.example.com/api/v1/auth/reauthenticate \
  -H "Authorization: Bearer $OPENSEAL_API_KEY" \
  -H 'Idempotency-Key: order-1042' \
  -H "Content-Type: application/json" \
  -d '{
  "password": "correct-horse-battery-staple",
  "code": "123456",
  "recovery_code": "example",
  "passkey": {
    "credential_id": "0193e265-b6f5-7646-801a-1fe8dc42785c",
    "client_data_json": "example",
    "authenticator_data": "example",
    "signature": "example"
  }
}'

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.reauthenticate({
  idempotencyKey: "order-1042",
  body: {
    "password": "correct-horse-battery-staple",
    "code": "123456",
    "recovery_code": "example",
    "passkey": {
      "credential_id": "0193e265-b6f5-7646-801a-1fe8dc42785c",
      "client_data_json": "example",
      "authenticator_data": "example",
      "signature": "example"
    }
  },
});

Python

import os
from openseal import OpenSeal

client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.reauthenticate(
    idempotency_key="order-1042",
    body={
        "password": "correct-horse-battery-staple",
        "code": "123456",
        "recovery_code": "example",
        "passkey": {
            "credential_id": "0193e265-b6f5-7646-801a-1fe8dc42785c",
            "client_data_json": "example",
            "authenticator_data": "example",
            "signature": "example",
        },
    },
)
Response200
{
  "reauthenticated_until": "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)
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.

List my sessions

GET/api/v1/auth/sessions

The caller's own live sessions, in every workspace of theirs

Each workspace's idle and absolute limits applied; the calling session is marked current. Another user's sessions are never listed. A staff session only.

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

Returns

200 with application/json.

Limits

  • Own sessions listed (GET /auth/sessions); a session's browser name: 200; 1–64 characters from a closed list
GET/api/v1/auth/sessions

curl

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

Python

import os
from openseal import OpenSeal

client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
data = client.list_my_sessions()
Response200
{
  "items": [
    {
      "id": "01935b39-7565-71c3-8cab-92d044c096dc",
      "workspace": {
        "id": "01935b39-7565-71c3-8cab-92d044c096dc",
        "name": "Example Signer"
      },
      "method": "password",
      "client": "example",
      "created_at": "2026-11-20T09:30:00Z",
      "last_seen_at": "2026-11-20T09:30:00Z",
      "idle_expires_at": "2026-11-20T09:30:00Z",
      "expires_at": "2026-12-20T09:30:00Z",
      "current": false
    }
  ]
}
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.

End my other sessions

POST/api/v1/auth/sessions/end-others

End every other session of the caller

In every workspace. Needs a re-authentication within five minutes (403 CS-AUTH-0013).

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

Headers

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

    at most 255 characters

Returns

200 with application/json.

POST/api/v1/auth/sessions/end-others

curl

curl -X POST https://sign.example.com/api/v1/auth/sessions/end-others \
  -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.endMyOtherSessions({
  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.end_my_other_sessions(
    idempotency_key="order-1042",
)
Response200
{
  "ended": 1
}
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)
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.

End my session

DELETE/api/v1/auth/sessions/{id}

End one of the caller's other sessions

404 for a session that is not the caller's, has ended, or does not exist; the calling session itself is 422 (use POST /auth/logout). Needs a re-authentication within five minutes (403 CS-AUTH-0013).

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

Path parameters

  • idstringRequired

    Object id (UUIDv7)

Returns

204 Ended with no body.

DELETE/api/v1/auth/sessions/{id}

curl

curl -X DELETE https://sign.example.com/api/v1/auth/sessions/01933f3a-f1ec-7ebb-8d14-10ab417ec0d2 \
  -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.endMySession({
  id: "01933f3a-f1ec-7ebb-8d14-10ab417ec0d2",
});

Python

import os
from openseal import OpenSeal

client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.end_my_session(
    id="01933f3a-f1ec-7ebb-8d14-10ab417ec0d2",
)
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)
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.

Switch workspace

POST/api/v1/auth/switch

Move the session to another workspace of the caller

Ends the current session and issues a new one in account_id, carrying the same sign-in (method, time and expiry), so a switch never extends a session. The caller must hold an enabled membership there: otherwise, or for an id that does not exist, 403 CS-ORG-0001. A staff session with its CSRF token only. The workspace always comes from the session; no header or parameter chooses another.

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

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

Returns

200 with a LoginResponse object.

POST/api/v1/auth/switch

curl

curl -X POST https://sign.example.com/api/v1/auth/switch \
  -H "Authorization: Bearer $OPENSEAL_API_KEY" \
  -H 'Idempotency-Key: order-1042' \
  -H "Content-Type: application/json" \
  -d '{
  "account_id": "01939af2-1132-79b2-8fc8-2e5efe906062"
}'

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.switchWorkspace({
  idempotencyKey: "order-1042",
  body: {
    "account_id": "01939af2-1132-79b2-8fc8-2e5efe906062"
  },
});

Python

import os
from openseal import OpenSeal

client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.switch_workspace(
    idempotency_key="order-1042",
    body={
        "account_id": "01939af2-1132-79b2-8fc8-2e5efe906062",
    },
)
Response200
{
  "account_id": "01939af2-1132-79b2-8fc8-2e5efe906062",
  "user_id": "019304f8-996d-7a76-83b7-a969b1028ee3",
  "csrf_token": "example",
  "expires_at": "2026-12-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)
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.

Get session

GET/api/v1/auth/session

Who the credential is

Also for a session that still owes its second factor: second_factor says what it owes (verify or enrol), or passed or none.

AuthA staff session, also one that still owes its second factor

Returns

200 with a SessionInfo object.

GET/api/v1/auth/session

curl

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

Python

import os
from openseal import OpenSeal

client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
data = client.get_session()
Response200
{
  "account_id": "01939af2-1132-79b2-8fc8-2e5efe906062",
  "user_id": "019304f8-996d-7a76-83b7-a969b1028ee3",
  "credential": "session",
  "client_id": "0193948f-e603-7f61-8dc0-36b5c596dc09",
  "scopes": [
    "envelopes:read"
  ],
  "admin": false,
  "actions": [
    "envelopes.read"
  ],
  "second_factor": "none",
  "factors": {
    "totp": false,
    "passkeys": 1,
    "recovery_codes_left": 1,
    "reset_by_admin": false,
    "passkeys_available": false
  },
  "sandbox": false,
  "reauthenticated_until": "2026-11-20T09:30:00Z"
}
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.

Verify second factor

POST/api/v1/auth/mfa/verify

Pass the session's second factor

With code, six digits from the user's authenticator (RFC 6238, 30-second steps, one step of drift either way); or with recovery_code, one of the ten codes shown at enrolment, which is spent (case, spaces and dashes do not matter). Each TOTP code is accepted once: a code for a step no later than the last accepted one is refused. 401 CS-AUTH-0012 for a wrong, replayed or spent code. Rate-limited per user as login is. Until a session that owes a factor passes it, every other /api/v1 call but GET /auth/session and POST /auth/logout answers 403 CS-AUTH-0011. With passkey, an assertion answering the session's verify challenge: refused (401 CS-AUTH-0012) for another purpose's, an expired or a spent challenge, another origin or RP id, a credential not the user's, a bad signature, or a signature counter that did not move past the stored one (a cloned authenticator; logged with reason: counter).

AuthA staff session, also one that still owes its second factor

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

Returns

200 Passed with application/json.

POST/api/v1/auth/mfa/verify

curl

curl -X POST https://sign.example.com/api/v1/auth/mfa/verify \
  -H "Authorization: Bearer $OPENSEAL_API_KEY" \
  -H 'Idempotency-Key: order-1042' \
  -H "Content-Type: application/json" \
  -d '{
  "code": "123456",
  "recovery_code": "example",
  "passkey": {
    "credential_id": "0193e265-b6f5-7646-801a-1fe8dc42785c",
    "client_data_json": "example",
    "authenticator_data": "example",
    "signature": "example"
  }
}'

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.verifySecondFactor({
  idempotencyKey: "order-1042",
  body: {
    "code": "123456",
    "recovery_code": "example",
    "passkey": {
      "credential_id": "0193e265-b6f5-7646-801a-1fe8dc42785c",
      "client_data_json": "example",
      "authenticator_data": "example",
      "signature": "example"
    }
  },
});

Python

import os
from openseal import OpenSeal

client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.verify_second_factor(
    idempotency_key="order-1042",
    body={
        "code": "123456",
        "recovery_code": "example",
        "passkey": {
            "credential_id": "0193e265-b6f5-7646-801a-1fe8dc42785c",
            "client_data_json": "example",
            "authenticator_data": "example",
            "signature": "example",
        },
    },
)
Response200
{
  "second_factor": "passed",
  "recovery_codes_left": 1
}
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)
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.

Enrol TOTP

POST/api/v1/auth/mfa/totp/enrol

Start TOTP enrolment for the session's own user

A new 160-bit seed, shown once as an otpauth:// URI (for a QR code; labelled with the user id, never the email) and as base32 secret; stored only sealed (AES-256-GCM under OPENSEAL_MFA_KEY). Calling again before confirming draws a new seed. 409 CS-API-0009 once a factor is confirmed, or when the server has no sealing key. Staff sessions only (422 for an API key or token).

AuthA staff session, also one that still owes its second factor

Headers

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

    at most 255 characters

Returns

200 The seed, shown once (Cache-Control: no-store) with application/json.

POST/api/v1/auth/mfa/totp/enrol

curl

curl -X POST https://sign.example.com/api/v1/auth/mfa/totp/enrol \
  -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.enrolTotp({
  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.enrol_totp(
    idempotency_key="order-1042",
)
Response200
{
  "otpauth_uri": "example",
  "secret": "whsec_MfKQ9r8GKYqrTwjUPD8ILPZIo2LaLaSw"
}
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)
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.

Confirm TOTP

POST/api/v1/auth/mfa/totp/confirm

Confirm TOTP enrolment with a first code

A code from the new authenticator confirms the enrolment; the session has then passed its second factor, and the answer shows ten one-time recovery codes once (112 random bits each; only their SHA-256 is stored). 401 CS-AUTH-0012 for a wrong code; 409 CS-API-0009 before enrol or after a confirmation.

AuthA staff session, also one that still owes its second factor

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

Returns

200 Confirmed (Cache-Control: no-store) with application/json.

POST/api/v1/auth/mfa/totp/confirm

curl

curl -X POST https://sign.example.com/api/v1/auth/mfa/totp/confirm \
  -H "Authorization: Bearer $OPENSEAL_API_KEY" \
  -H 'Idempotency-Key: order-1042' \
  -H "Content-Type: application/json" \
  -d '{
  "code": "123456"
}'

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.confirmTotp({
  idempotencyKey: "order-1042",
  body: {
    "code": "123456"
  },
});

Python

import os
from openseal import OpenSeal

client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.confirm_totp(
    idempotency_key="order-1042",
    body={
        "code": "123456",
    },
)
Response200
{
  "second_factor": "passed",
  "recovery_codes": [
    "example",
    "example",
    "example",
    "example",
    "example",
    "example",
    "example",
    "example",
    "example",
    "example"
  ]
}
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)
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.

Passkey options

POST/api/v1/auth/mfa/passkeys/options

Options and a challenge for one passkey ceremony

purpose is register (navigator.credentials.create), verify (the sign-in step) or reauthenticate (step-up, navigator.credentials.get). The 32-byte challenge is kept on the session for five minutes, one at a time, and spent by the call that answers it, whatever the outcome. The RP id is the public URL's host (or OPENSEAL_WEBAUTHN_RP_ID); attestation none; ES256, EdDSA and RS256. register beside an existing factor needs a session that passed it and re-authenticated within five minutes (403 CS-AUTH-0011, 403 CS-AUTH-0013); at most 10 passkeys (409 CS-API-0009). verify and reauthenticate without a passkey: 409 CS-API-0009. 409 CS-API-0014 when the public URL's host cannot be an RP id. A staff session only.

AuthA staff session, also one that still owes its second factor

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

  • purposestringRequired

    One of register, verify, reauthenticate

Returns

200 The options (Cache-Control: no-store), binary members base64url with application/json.

POST/api/v1/auth/mfa/passkeys/options

curl

curl -X POST https://sign.example.com/api/v1/auth/mfa/passkeys/options \
  -H "Authorization: Bearer $OPENSEAL_API_KEY" \
  -H 'Idempotency-Key: order-1042' \
  -H "Content-Type: application/json" \
  -d '{
  "purpose": "register"
}'

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.passkeyOptions({
  idempotencyKey: "order-1042",
  body: {
    "purpose": "register"
  },
});

Python

import os
from openseal import OpenSeal

client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.passkey_options(
    idempotency_key="order-1042",
    body={
        "purpose": "register",
    },
)
Response200
{
  "purpose": "example",
  "public_key": {}
}
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)
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.

List passkeys

GET/api/v1/auth/mfa/passkeys

The caller's passkeys

In every workspace of theirs. A staff session only.

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

Returns

200 with application/json.

GET/api/v1/auth/mfa/passkeys

curl

curl https://sign.example.com/api/v1/auth/mfa/passkeys \
  -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.listPasskeys();

Python

import os
from openseal import OpenSeal

client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
data = client.list_passkeys()
Response200
{
  "items": [
    {
      "id": "01934b94-9c13-7090-8450-6119a31ad2ca",
      "name": "Laptop",
      "created_at": "2026-11-20T09:30:00Z",
      "last_used_at": "2026-11-20T09:30:00Z",
      "backup_eligible": false
    }
  ]
}
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.

Register passkey

POST/api/v1/auth/mfa/passkeys

Register a passkey as a second factor (CON-13, ASVS 2.3.2)

The browser's registration answering a register challenge: id (rawId), client_data_json, authenticator_data (getAuthenticatorData()), public_key (getPublicKey(), SubjectPublicKeyInfo DER), public_key_algorithm and transports, base64url. Checked per WebAuthn Level 2 §7.1: type, challenge, origin, RP id hash, user presence, the attested credential id. As the first factor it is the enrolment a policy asks for: the session has passed, and the answer shows ten recovery codes once. Beside another factor, only from a session that passed it and re-authenticated within five minutes. 401 CS-AUTH-0012 for a refused registration; 409 CS-API-0009 for a credential already registered or an eleventh passkey. The user is told by email.

AuthA staff session, also one that still owes its second factor

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

Returns

201 Registered (Cache-Control: no-store) with application/json.

POST/api/v1/auth/mfa/passkeys

curl

curl -X POST https://sign.example.com/api/v1/auth/mfa/passkeys \
  -H "Authorization: Bearer $OPENSEAL_API_KEY" \
  -H 'Idempotency-Key: order-1042' \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Example Signer",
  "credential": {
    "id": "01932958-d416-7d08-8aa5-a472d7b50903",
    "client_data_json": "example",
    "authenticator_data": "example",
    "public_key": "-----BEGIN PUBLIC KEY-----\n…\n-----END PUBLIC KEY-----",
    "public_key_algorithm": -7
  }
}'

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.registerPasskey({
  idempotencyKey: "order-1042",
  body: {
    "name": "Example Signer",
    "credential": {
      "id": "01932958-d416-7d08-8aa5-a472d7b50903",
      "client_data_json": "example",
      "authenticator_data": "example",
      "public_key": "-----BEGIN PUBLIC KEY-----\n…\n-----END PUBLIC KEY-----",
      "public_key_algorithm": -7
    }
  },
});

Python

import os
from openseal import OpenSeal

client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.register_passkey(
    idempotency_key="order-1042",
    body={
        "name": "Example Signer",
        "credential": {
            "id": "01932958-d416-7d08-8aa5-a472d7b50903",
            "client_data_json": "example",
            "authenticator_data": "example",
            "public_key": '-----BEGIN PUBLIC KEY-----\n…\n-----END PUBLIC KEY-----',
            "public_key_algorithm": -7,
        },
    },
)
Response201
{
  "passkey": {
    "id": "01934b94-9c13-7090-8450-6119a31ad2ca",
    "name": "Laptop",
    "created_at": "2026-11-20T09:30:00Z",
    "last_used_at": "2026-11-20T09:30:00Z",
    "backup_eligible": false
  },
  "second_factor": "passed",
  "recovery_codes": [
    "example",
    "example",
    "example",
    "example",
    "example",
    "example",
    "example",
    "example",
    "example",
    "example"
  ]
}
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)
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.

Rename passkey

PATCH/api/v1/auth/mfa/passkeys/{id}

Rename one of the caller's passkeys

1 to 64 characters. Needs a re-authentication within five minutes (403 CS-AUTH-0013). 404 for a passkey that is not the caller's.

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

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

  • namestringRequired

    at most 64 characters

Returns

200 with a Passkey object.

PATCH/api/v1/auth/mfa/passkeys/{id}

curl

curl -X PATCH https://sign.example.com/api/v1/auth/mfa/passkeys/01934b94-9c13-7090-8450-6119a31ad2ca \
  -H "Authorization: Bearer $OPENSEAL_API_KEY" \
  -H 'Idempotency-Key: order-1042' \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Example Signer"
}'

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.renamePasskey({
  id: "01934b94-9c13-7090-8450-6119a31ad2ca",
  idempotencyKey: "order-1042",
  body: {
    "name": "Example Signer"
  },
});

Python

import os
from openseal import OpenSeal

client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.rename_passkey(
    id="01934b94-9c13-7090-8450-6119a31ad2ca",
    idempotency_key="order-1042",
    body={
        "name": "Example Signer",
    },
)
Response200
{
  "id": "01934b94-9c13-7090-8450-6119a31ad2ca",
  "name": "Laptop",
  "created_at": "2026-11-20T09:30:00Z",
  "last_used_at": "2026-11-20T09:30:00Z",
  "backup_eligible": 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)
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.

Remove passkey

DELETE/api/v1/auth/mfa/passkeys/{id}

Remove one of the caller's passkeys

Needs a re-authentication within five minutes (403 CS-AUTH-0013); 404 for a passkey that is not the caller's. With it the last factor, the recovery codes go too and the workspace's policy applies at once. The user is told by email.

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

Path parameters

  • idstringRequired

    Object id (UUIDv7)

Returns

204 Removed with no body.

DELETE/api/v1/auth/mfa/passkeys/{id}

curl

curl -X DELETE https://sign.example.com/api/v1/auth/mfa/passkeys/01934b94-9c13-7090-8450-6119a31ad2ca \
  -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.removePasskey({
  id: "01934b94-9c13-7090-8450-6119a31ad2ca",
});

Python

import os
from openseal import OpenSeal

client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.remove_passkey(
    id="01934b94-9c13-7090-8450-6119a31ad2ca",
)
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)
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.

Remove TOTP

DELETE/api/v1/auth/mfa/totp

Remove the caller's TOTP authenticator, to replace it

Needs a re-authentication within five minutes, which proved the current factor (403 CS-AUTH-0013). 409 CS-API-0009 when there is none. With it the last factor, the recovery codes go too and the workspace's policy applies at once. The user is told by email.

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

Returns

204 Removed with no body.

DELETE/api/v1/auth/mfa/totp

curl

curl -X DELETE https://sign.example.com/api/v1/auth/mfa/totp \
  -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.removeTotp();

Python

import os
from openseal import OpenSeal

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

Replace recovery codes

POST/api/v1/auth/mfa/recovery-codes

Ten new recovery codes, replacing the earlier ones

Needs a re-authentication within five minutes (403 CS-AUTH-0013). 409 CS-API-0009 without a second factor. Shown once; only their SHA-256 is stored. The user is told by email.

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

Headers

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

    at most 255 characters

Returns

200 The codes (Cache-Control: no-store) with application/json.

POST/api/v1/auth/mfa/recovery-codes

curl

curl -X POST https://sign.example.com/api/v1/auth/mfa/recovery-codes \
  -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.replaceRecoveryCodes({
  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.replace_recovery_codes(
    idempotency_key="order-1042",
)
Response200
{
  "recovery_codes": [
    "example",
    "example",
    "example",
    "example",
    "example",
    "example",
    "example",
    "example",
    "example",
    "example"
  ]
}
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)
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.