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.
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(){
"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
| 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 users.read |
| 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 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
Idempotency-KeystringUp to 255 printable ASCII characters; a replay within 24 hours returns the first response.
Request body
Content type application/json · required
admin_scope_group_idsarray of string or nullGroups of this account its holders administer (a delegated workspace admin); absent or null for the whole workspace. Never with a sensitive action.
Returns
201 Created with a PermissionProfile object.
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",
],
},
){
"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
| 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 profiles.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 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
A permission profile of this account (another account's is 404)
Returns
200 with a PermissionProfile object.
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",
){
"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
| 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 users.read |
| 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.
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
A permission profile of this account (another account's is 404)
Request body
Content type application/json · required
namestringpermissionsarray of stringadmin_scope_group_idsarray of string or nullAbsent unchanged; null the whole workspace; a list those groups
Returns
200 with a PermissionProfile object.
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",
],
},
){
"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
| 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 profiles.manage |
| 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.
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
A permission profile of this account (another account's is 404)
Returns
204 Deleted with no body.
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",
)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 profiles.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.