Integrations
API clients
Personal API keys, OAuth apps and JWT integrations of a workspace. A key or secret is shown once, when it is created.
List API clients
GET/api/v1/api-clients
API keys and OAuth clients
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissionapi_clients.manage · OAuth scope admin:account
Returns
200 with a ApiClientList object.
curl
curl https://sign.example.com/api/v1/api-clients \
-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.listApiClients();Python
import os
from openseal import OpenSeal
client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
data = client.list_api_clients(){
"items": [
{
"id": "019314c2-529e-7b44-898c-5d1ffd6915d0",
"kind": "api_key",
"name": "Example integration",
"owner_user_id": "019375bd-5bce-7f00-81ba-1c18ab1f685e",
"key_prefix": "osk_3f9a",
"scopes": [
"envelopes:read"
],
"expires_at": "2026-12-20T09:30:00Z",
"revoked": false,
"redirect_uris": [
"https://app.example.com/openseal/callback"
],
"has_public_key": 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 api_clients.manage |
| 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 API client
POST/api/v1/api-clients
New API key or OAuth client; the secret is shown once
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissionapi_clients.manage · OAuth scope admin:account
Headers
Idempotency-KeystringUp to 255 printable ASCII characters; a replay within 24 hours returns the first response.
Request body
Content type application/json · required
owner_user_idstringexpires_in_daysintegerredirect_urisarray of stringOAuth apps and JWT integrations: where authorization codes go after consent;
https://, orhttp://to localhost, 127.0.0.1 or [::1]; no fragment (422at/redirect_uris/{i})public_keystringJWT integrations only, and required: a
-----BEGIN PUBLIC KEY-----PEM, EC P-256 (ES256) or RSA (RS256); a private key is refused (422at/public_key)
Returns
201 with a ApiClientCreated object.
curl
curl -X POST https://sign.example.com/api/v1/api-clients \
-H "Authorization: Bearer $OPENSEAL_API_KEY" \
-H 'Idempotency-Key: order-1042' \
-H "Content-Type: application/json" \
-d '{
"name": "CRM sync",
"kind": "api_key",
"scopes": [
"envelopes:read",
"envelopes:write"
],
"expires_in_days": 90
}'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.createApiClient({
idempotencyKey: "order-1042",
body: {
"name": "CRM sync",
"kind": "api_key",
"scopes": [
"envelopes:read",
"envelopes:write"
],
"expires_in_days": 90
},
});Python
import os
from openseal import OpenSeal
client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.create_api_client(
idempotency_key="order-1042",
body={
"name": "CRM sync",
"kind": "api_key",
"scopes": [
"envelopes:read",
"envelopes:write",
],
"expires_in_days": 90,
},
){
"id": "019314c2-529e-7b44-898c-5d1ffd6915d0",
"kind": "api_key",
"name": "Example integration",
"owner_user_id": "019375bd-5bce-7f00-81ba-1c18ab1f685e",
"key_prefix": "osk_3f9a",
"scopes": [
"envelopes:read"
],
"expires_at": "2026-12-20T09:30:00Z",
"revoked": false,
"redirect_uris": [
"https://app.example.com/openseal/callback"
],
"has_public_key": false,
"key": "osk_3f9a6c1e8b2d4f7a9c0e5b1d3f6a8c2e",
"client_id": "0193948f-e603-7f61-8dc0-36b5c596dc09",
"client_secret": "example-client-secret-shown-once"
}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 api_clients.manage |
| 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.
Get API client
GET/api/v1/api-clients/{id}
An API client
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissionapi_clients.manage · OAuth scope admin:account
Path parameters
Object id (UUIDv7)
Returns
200 with a ApiClient object.
curl
curl https://sign.example.com/api/v1/api-clients/0193948f-e603-7f61-8dc0-36b5c596dc09 \
-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.getApiClient({
id: "0193948f-e603-7f61-8dc0-36b5c596dc09",
});Python
import os
from openseal import OpenSeal
client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
data = client.get_api_client(
id="0193948f-e603-7f61-8dc0-36b5c596dc09",
){
"id": "019314c2-529e-7b44-898c-5d1ffd6915d0",
"kind": "api_key",
"name": "Example integration",
"owner_user_id": "019375bd-5bce-7f00-81ba-1c18ab1f685e",
"key_prefix": "osk_3f9a",
"scopes": [
"envelopes:read"
],
"expires_at": "2026-12-20T09:30:00Z",
"revoked": false,
"redirect_uris": [
"https://app.example.com/openseal/callback"
],
"has_public_key": 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 api_clients.manage |
| 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.
Revoke API client
DELETE/api/v1/api-clients/{id}
Revoke an API client
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissionapi_clients.manage · OAuth scope admin:account
Path parameters
Object id (UUIDv7)
Returns
204 Done with no body.
curl
curl -X DELETE https://sign.example.com/api/v1/api-clients/0193948f-e603-7f61-8dc0-36b5c596dc09 \
-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.revokeApiClient({
id: "0193948f-e603-7f61-8dc0-36b5c596dc09",
});Python
import os
from openseal import OpenSeal
client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.revoke_api_client(
id="0193948f-e603-7f61-8dc0-36b5c596dc09",
)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 api_clients.manage |
| 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.