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.
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(){
"items": [
{
"id": "0193bdef-c259-7426-8bd0-86d1126108ac",
"name": "Example Signer",
"kind": "csc",
"enabled": false
}
]
}Errors this can answer
| Status | Code | When |
|---|---|---|
| 401 | CS-AUTH-0001 | No credential, or one that is expired or revoked (CS-AUTH-0002) |
| 403 | CS-AUTH-0006 | The credential lacks envelopes.write |
| 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 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
The catalogue's provider id
Returns
200 with a SigningProviderSettings object.
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",
){
"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
| Status | Code | When |
|---|---|---|
| 400 / 422 | CS-API-0001 | Malformed request: a parameter or member is missing, unknown or out of range; errors[] points at it |
| 401 | CS-AUTH-0001 | No credential, or one that is expired or revoked (CS-AUTH-0002) |
| 403 | CS-AUTH-0006 | The credential lacks settings.signing |
| 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.
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
The catalogue's provider id
Request body
Content type application/json · required
required_qualifiersarray of stringrefuse_name_mismatchbooleansession_minutesintegerclient_secretstring or nullThe account's own OAuth client secret for this provider: stored sealed with AES-256-GCM, never returned;
nullremoves it
Returns
200 with a SigningProviderSettings object.
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",
},
){
"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
| Status | Code | When |
|---|---|---|
| 400 / 422 | CS-API-0001 | Malformed request: a parameter or member is missing, unknown or out of range; errors[] points at it |
| 401 | CS-AUTH-0001 | No credential, or one that is expired or revoked (CS-AUTH-0002) |
| 403 | CS-AUTH-0006 | The credential lacks settings.signing |
| 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.