Administration

Signing providers

The remote signing providers the operator offers the workspace (RSP-01): which are enabled, and their options.

List signing providers

GET/api/v1/signing-providers

Signing providers the operator offers this account

The providers of the operator's catalogue offered to this account, each with whether the account enabled it. A sender may name an enabled one as a signer's signature.provider_id.

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

Permissionenvelopes.write · OAuth scope envelopes:write

Returns

200 with a SigningProviderList object.

GET/api/v1/signing-providers

curl

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

Python

import os
from openseal import OpenSeal

client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
data = client.list_signing_providers()
Response200
{
  "items": [
    {
      "id": "0193bdef-c259-7426-8bd0-86d1126108ac",
      "name": "Example Signer",
      "kind": "csc",
      "enabled": false
    }
  ]
}
Errors this can answer
StatusCodeWhen
401CS-AUTH-0001No credential, or one that is expired or revoked (CS-AUTH-0002)
403CS-AUTH-0006The credential lacks envelopes.write
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 signing provider

GET/api/v1/signing-providers/{id}

A provider's settings for this account (404 when not offered)

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

Permissionsettings.signing · OAuth scope admin:account

Path parameters

  • idstringRequired

    The catalogue's provider id

Returns

200 with a SigningProviderSettings object.

GET/api/v1/signing-providers/{id}

curl

curl https://sign.example.com/api/v1/signing-providers/01934fc1-4a1e-7146-8484-a6a729ab7300 \
  -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.getSigningProvider({
  id: "01934fc1-4a1e-7146-8484-a6a729ab7300",
});

Python

import os
from openseal import OpenSeal

client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
data = client.get_signing_provider(
    id="01934fc1-4a1e-7146-8484-a6a729ab7300",
)
Response200
{
  "id": "0193bdef-c259-7426-8bd0-86d1126108ac",
  "name": "Example Signer",
  "kind": "csc",
  "enabled": false,
  "required_qualifiers": [
    "example"
  ],
  "refuse_name_mismatch": false,
  "session_minutes": 5,
  "own_client_secret": false
}
Errors this can answer
StatusCodeWhen
400 / 422CS-API-0001Malformed request: a parameter or member is missing, unknown or out of range; errors[] points at it
401CS-AUTH-0001No credential, or one that is expired or revoked (CS-AUTH-0002)
403CS-AUTH-0006The credential lacks settings.signing
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.

Put signing provider

PUT/api/v1/signing-providers/{id}

Enable or disable a provider and set its options

Each change is a workspace.signing_provider_changed admin event; an own client secret is recorded only as rotated or removed.

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

Permissionsettings.signing · OAuth scope admin:account

Path parameters

  • idstringRequired

    The catalogue's provider id

Request body

Content type application/json · required

Returns

200 with a SigningProviderSettings object.

PUT/api/v1/signing-providers/{id}

curl

curl -X PUT https://sign.example.com/api/v1/signing-providers/01934fc1-4a1e-7146-8484-a6a729ab7300 \
  -H "Authorization: Bearer $OPENSEAL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "enabled": false,
  "required_qualifiers": [
    "123456"
  ],
  "refuse_name_mismatch": false,
  "session_minutes": 5,
  "client_secret": "example-client-secret-shown-once"
}'

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.putSigningProvider({
  id: "01934fc1-4a1e-7146-8484-a6a729ab7300",
  body: {
    "enabled": false,
    "required_qualifiers": [
      "123456"
    ],
    "refuse_name_mismatch": false,
    "session_minutes": 5,
    "client_secret": "example-client-secret-shown-once"
  },
});

Python

import os
from openseal import OpenSeal

client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.put_signing_provider(
    id="01934fc1-4a1e-7146-8484-a6a729ab7300",
    body={
        "enabled": False,
        "required_qualifiers": [
            "123456",
        ],
        "refuse_name_mismatch": False,
        "session_minutes": 5,
        "client_secret": "example-client-secret-shown-once",
    },
)
Response200
{
  "id": "0193bdef-c259-7426-8bd0-86d1126108ac",
  "name": "Example Signer",
  "kind": "csc",
  "enabled": false,
  "required_qualifiers": [
    "example"
  ],
  "refuse_name_mismatch": false,
  "session_minutes": 5,
  "own_client_secret": false
}
Errors this can answer
StatusCodeWhen
400 / 422CS-API-0001Malformed request: a parameter or member is missing, unknown or out of range; errors[] points at it
401CS-AUTH-0001No credential, or one that is expired or revoked (CS-AUTH-0002)
403CS-AUTH-0006The credential lacks settings.signing
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.