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.

GET/api/v1/api-clients

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()
Response200
{
  "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
StatusCodeWhen
401CS-AUTH-0001No credential, or one that is expired or revoked (CS-AUTH-0002)
403CS-AUTH-0006The credential lacks api_clients.manage
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.

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

  • 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 255 characters

  • kindstringRequired

    One of api_key, oauth_app, jwt_integration

  • scopesarray of stringRequired
  • minimum 1 · maximum 3650

  • redirect_urisarray of string

    OAuth apps and JWT integrations: where authorization codes go after consent; https://, or http:// to localhost, 127.0.0.1 or [::1]; no fragment (422 at /redirect_uris/{i})

    at most 10 items

  • JWT integrations only, and required: a -----BEGIN PUBLIC KEY----- PEM, EC P-256 (ES256) or RSA (RS256); a private key is refused (422 at /public_key)

    at most 8192 characters

Returns

201 with a ApiClientCreated object.

POST/api/v1/api-clients

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,
    },
)
Response201
{
  "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
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 api_clients.manage
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 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

  • idstringRequired

    Object id (UUIDv7)

Returns

200 with a ApiClient object.

GET/api/v1/api-clients/{id}

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",
)
Response200
{
  "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
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 api_clients.manage
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.

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

  • idstringRequired

    Object id (UUIDv7)

Returns

204 Done with no body.

DELETE/api/v1/api-clients/{id}

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",
)
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)
403CS-AUTH-0006The credential lacks api_clients.manage
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.