Administration
Groups
Groups of members, used for template sharing and administrative scope.
List groups
GET/api/v1/groups
The account's groups with member counts, for sharing templates
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissiontemplates.read · OAuth scope templates:read
Returns
200 with a GroupList object.
curl
curl https://sign.example.com/api/v1/groups \
-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.listGroups();Python
import os
from openseal import OpenSeal
client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
data = client.list_groups(){
"items": [
{
"id": "0193ad93-6fcb-7ed6-831f-a67e05c3ea03",
"name": "Sales",
"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 templates.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 group
POST/api/v1/groups
Make a group of members; a name the account uses is 422 exists at /name
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissiongroups.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
Returns
201 Created with a Group object.
curl
curl -X POST https://sign.example.com/api/v1/groups \
-H "Authorization: Bearer $OPENSEAL_API_KEY" \
-H 'Idempotency-Key: order-1042' \
-H "Content-Type: application/json" \
-d '{
"name": "Sales"
}'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.createGroup({
idempotencyKey: "order-1042",
body: {
"name": "Sales"
},
});Python
import os
from openseal import OpenSeal
client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.create_group(
idempotency_key="order-1042",
body={
"name": "Sales",
},
){
"id": "0193ad93-6fcb-7ed6-831f-a67e05c3ea03",
"name": "Sales",
"members": 1,
"user_ids": [
"019304f8-996d-7a76-83b7-a969b1028ee3"
]
}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 groups.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 group
GET/api/v1/groups/{id}
A group with its members' user ids
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissiongroups.manage · OAuth scope admin:users
Path parameters
A group of this account (another account's is 404)
Returns
200 with a Group object.
curl
curl https://sign.example.com/api/v1/groups/0193ad93-6fcb-7ed6-831f-a67e05c3ea03 \
-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.getGroup({
id: "0193ad93-6fcb-7ed6-831f-a67e05c3ea03",
});Python
import os
from openseal import OpenSeal
client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
data = client.get_group(
id="0193ad93-6fcb-7ed6-831f-a67e05c3ea03",
){
"id": "0193ad93-6fcb-7ed6-831f-a67e05c3ea03",
"name": "Sales",
"members": 1,
"user_ids": [
"019304f8-996d-7a76-83b7-a969b1028ee3"
]
}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 groups.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.
Rename group
PATCH/api/v1/groups/{id}
Rename a group
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissiongroups.manage · OAuth scope admin:users
Path parameters
A group of this account (another account's is 404)
Request body
Content type application/json · required
Returns
200 with a Group object.
curl
curl -X PATCH https://sign.example.com/api/v1/groups/0193ad93-6fcb-7ed6-831f-a67e05c3ea03 \
-H "Authorization: Bearer $OPENSEAL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Sales"
}'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.renameGroup({
id: "0193ad93-6fcb-7ed6-831f-a67e05c3ea03",
body: {
"name": "Sales"
},
});Python
import os
from openseal import OpenSeal
client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.rename_group(
id="0193ad93-6fcb-7ed6-831f-a67e05c3ea03",
body={
"name": "Sales",
},
){
"id": "0193ad93-6fcb-7ed6-831f-a67e05c3ea03",
"name": "Sales",
"members": 1,
"user_ids": [
"019304f8-996d-7a76-83b7-a969b1028ee3"
]
}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 groups.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 group
DELETE/api/v1/groups/{id}
Delete a group; its template shares go with it
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissiongroups.manage · OAuth scope admin:users
Path parameters
A group of this account (another account's is 404)
Returns
204 Deleted with no body.
curl
curl -X DELETE https://sign.example.com/api/v1/groups/0193ad93-6fcb-7ed6-831f-a67e05c3ea03 \
-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.deleteGroup({
id: "0193ad93-6fcb-7ed6-831f-a67e05c3ea03",
});Python
import os
from openseal import OpenSeal
client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.delete_group(
id="0193ad93-6fcb-7ed6-831f-a67e05c3ea03",
)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 groups.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.
Set group members
PUT/api/v1/groups/{id}/members
Make the group's members exactly these members of the account
Each id must be a member of this account (422 at /user_ids/{i} otherwise); a repeated id counts once. Each member added or removed is its own admin event.
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissiongroups.manage · OAuth scope admin:users
Path parameters
A group of this account (another account's is 404)
Request body
Content type application/json · required
Returns
200 with a Group object.
curl
curl -X PUT https://sign.example.com/api/v1/groups/0193ad93-6fcb-7ed6-831f-a67e05c3ea03/members \
-H "Authorization: Bearer $OPENSEAL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"user_ids": [
"019304f8-996d-7a76-83b7-a969b1028ee3"
]
}'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.setGroupMembers({
id: "0193ad93-6fcb-7ed6-831f-a67e05c3ea03",
body: {
"user_ids": [
"019304f8-996d-7a76-83b7-a969b1028ee3"
]
},
});Python
import os
from openseal import OpenSeal
client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.set_group_members(
id="0193ad93-6fcb-7ed6-831f-a67e05c3ea03",
body={
"user_ids": [
"019304f8-996d-7a76-83b7-a969b1028ee3",
],
},
){
"id": "0193ad93-6fcb-7ed6-831f-a67e05c3ea03",
"name": "Sales",
"members": 1,
"user_ids": [
"019304f8-996d-7a76-83b7-a969b1028ee3"
]
}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 groups.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.