Administration

Permission profiles

What members may do: the built-in profiles and custom ones, as actions of the catalogue.

List permission profiles

GET/api/v1/permission-profiles

The built-in profiles, then the custom ones, with what each grants and how many members hold it

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

Permissionusers.read · OAuth scope admin:users

Returns

200 with a PermissionProfileList object.

GET/api/v1/permission-profiles

curl

curl https://sign.example.com/api/v1/permission-profiles \
  -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.listPermissionProfiles();

Python

import os
from openseal import OpenSeal

client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
data = client.list_permission_profiles()
Response200
{
  "items": [
    {
      "id": "0193fdeb-3389-72d1-8867-626d6d2b06b5",
      "name": "Sender",
      "kind": "admin",
      "builtin": false,
      "permissions": [
        "envelopes:read"
      ],
      "actions": [
        "envelopes.read"
      ],
      "admin_scope_group_ids": [
        "0193b015-9b5b-7e70-82f3-185b7cfa6739"
      ],
      "members": 1
    }
  ]
}
Errors this can answer
StatusCodeWhen
401CS-AUTH-0001No credential, or one that is expired or revoked (CS-AUTH-0002)
403CS-AUTH-0006The credential lacks users.read
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 permission profile

POST/api/v1/permission-profiles

Make a custom permission profile

Its permissions are scopes of docs/40 §2, view_all_envelopes and workspace actions; none may go beyond the caller's own, nor its group scope beyond the caller's, nor a sensitive action with a group scope (403 CS-ORG-0005). A name the account uses is 422 exists at /name.

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

Permissionprofiles.manage · OAuth scope admin:users

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 least 1 characters · at most 255 characters

  • permissionsarray of stringRequired
  • admin_scope_group_idsarray of string or null

    Groups of this account its holders administer (a delegated workspace admin); absent or null for the whole workspace. Never with a sensitive action.

    at least 1 items

Returns

201 Created with a PermissionProfile object.

POST/api/v1/permission-profiles

curl

curl -X POST https://sign.example.com/api/v1/permission-profiles \
  -H "Authorization: Bearer $OPENSEAL_API_KEY" \
  -H 'Idempotency-Key: order-1042' \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Sender",
  "permissions": [
    "envelopes:read"
  ],
  "admin_scope_group_ids": [
    "0193b015-9b5b-7e70-82f3-185b7cfa6739"
  ]
}'

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.createPermissionProfile({
  idempotencyKey: "order-1042",
  body: {
    "name": "Sender",
    "permissions": [
      "envelopes:read"
    ],
    "admin_scope_group_ids": [
      "0193b015-9b5b-7e70-82f3-185b7cfa6739"
    ]
  },
});

Python

import os
from openseal import OpenSeal

client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.create_permission_profile(
    idempotency_key="order-1042",
    body={
        "name": "Sender",
        "permissions": [
            "envelopes:read",
        ],
        "admin_scope_group_ids": [
            "0193b015-9b5b-7e70-82f3-185b7cfa6739",
        ],
    },
)
Response201
{
  "id": "0193fdeb-3389-72d1-8867-626d6d2b06b5",
  "name": "Sender",
  "kind": "admin",
  "builtin": false,
  "permissions": [
    "envelopes:read"
  ],
  "actions": [
    "envelopes.read"
  ],
  "admin_scope_group_ids": [
    "0193b015-9b5b-7e70-82f3-185b7cfa6739"
  ],
  "members": 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)
403CS-AUTH-0006The credential lacks profiles.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 permission profile

GET/api/v1/permission-profiles/{id}

A permission profile

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

Permissionusers.read · OAuth scope admin:users

Path parameters

  • idstringRequired

    A permission profile of this account (another account's is 404)

Returns

200 with a PermissionProfile object.

GET/api/v1/permission-profiles/{id}

curl

curl https://sign.example.com/api/v1/permission-profiles/01931900-eab6-7c02-8848-3d7126599ee6 \
  -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.getPermissionProfile({
  id: "01931900-eab6-7c02-8848-3d7126599ee6",
});

Python

import os
from openseal import OpenSeal

client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
data = client.get_permission_profile(
    id="01931900-eab6-7c02-8848-3d7126599ee6",
)
Response200
{
  "id": "0193fdeb-3389-72d1-8867-626d6d2b06b5",
  "name": "Sender",
  "kind": "admin",
  "builtin": false,
  "permissions": [
    "envelopes:read"
  ],
  "actions": [
    "envelopes.read"
  ],
  "admin_scope_group_ids": [
    "0193b015-9b5b-7e70-82f3-185b7cfa6739"
  ],
  "members": 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)
403CS-AUTH-0006The credential lacks users.read
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.

Update permission profile

PATCH/api/v1/permission-profiles/{id}

Change a custom profile; its members hold the new permissions from their next request

A built-in profile is 409 CS-WF-0001. The profile as it was and as it becomes must both be within the caller's rights and scope, and never the caller's own profile (403 CS-ORG-0005). Giving sending to more members is checked against the plan's seats (CS-PLAN-0003).

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

Permissionprofiles.manage · OAuth scope admin:users

Path parameters

  • idstringRequired

    A permission profile of this account (another account's is 404)

Request body

Content type application/json · required

  • namestring

    at least 1 characters · at most 255 characters

  • permissionsarray of string
  • admin_scope_group_idsarray of string or null

    Absent unchanged; null the whole workspace; a list those groups

    at least 1 items

Returns

200 with a PermissionProfile object.

PATCH/api/v1/permission-profiles/{id}

curl

curl -X PATCH https://sign.example.com/api/v1/permission-profiles/01931900-eab6-7c02-8848-3d7126599ee6 \
  -H "Authorization: Bearer $OPENSEAL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Sender",
  "permissions": [
    "envelopes:read"
  ],
  "admin_scope_group_ids": [
    "0193b015-9b5b-7e70-82f3-185b7cfa6739"
  ]
}'

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.updatePermissionProfile({
  id: "01931900-eab6-7c02-8848-3d7126599ee6",
  body: {
    "name": "Sender",
    "permissions": [
      "envelopes:read"
    ],
    "admin_scope_group_ids": [
      "0193b015-9b5b-7e70-82f3-185b7cfa6739"
    ]
  },
});

Python

import os
from openseal import OpenSeal

client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.update_permission_profile(
    id="01931900-eab6-7c02-8848-3d7126599ee6",
    body={
        "name": "Sender",
        "permissions": [
            "envelopes:read",
        ],
        "admin_scope_group_ids": [
            "0193b015-9b5b-7e70-82f3-185b7cfa6739",
        ],
    },
)
Response200
{
  "id": "0193fdeb-3389-72d1-8867-626d6d2b06b5",
  "name": "Sender",
  "kind": "admin",
  "builtin": false,
  "permissions": [
    "envelopes:read"
  ],
  "actions": [
    "envelopes.read"
  ],
  "admin_scope_group_ids": [
    "0193b015-9b5b-7e70-82f3-185b7cfa6739"
  ],
  "members": 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)
403CS-AUTH-0006The credential lacks profiles.manage
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.

Delete permission profile

DELETE/api/v1/permission-profiles/{id}

Delete a custom profile no member holds (409 CS-WF-0001 for a built-in or a held one)

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

Permissionprofiles.manage · OAuth scope admin:users

Path parameters

  • idstringRequired

    A permission profile of this account (another account's is 404)

Returns

204 Deleted with no body.

DELETE/api/v1/permission-profiles/{id}

curl

curl -X DELETE https://sign.example.com/api/v1/permission-profiles/01931900-eab6-7c02-8848-3d7126599ee6 \
  -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.deletePermissionProfile({
  id: "01931900-eab6-7c02-8848-3d7126599ee6",
});

Python

import os
from openseal import OpenSeal

client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.delete_permission_profile(
    id="01931900-eab6-7c02-8848-3d7126599ee6",
)
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 profiles.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.