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.

GET/api/v1/groups

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()
Response200
{
  "items": [
    {
      "id": "0193ad93-6fcb-7ed6-831f-a67e05c3ea03",
      "name": "Sales",
      "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 templates.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 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

  • 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

Returns

201 Created with a Group object.

POST/api/v1/groups

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",
    },
)
Response201
{
  "id": "0193ad93-6fcb-7ed6-831f-a67e05c3ea03",
  "name": "Sales",
  "members": 1,
  "user_ids": [
    "019304f8-996d-7a76-83b7-a969b1028ee3"
  ]
}
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 groups.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 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

  • idstringRequired

    A group of this account (another account's is 404)

Returns

200 with a Group object.

GET/api/v1/groups/{id}

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",
)
Response200
{
  "id": "0193ad93-6fcb-7ed6-831f-a67e05c3ea03",
  "name": "Sales",
  "members": 1,
  "user_ids": [
    "019304f8-996d-7a76-83b7-a969b1028ee3"
  ]
}
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 groups.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.

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

  • idstringRequired

    A group of this account (another account's is 404)

Request body

Content type application/json · required

  • namestringRequired

    at least 1 characters · at most 255 characters

Returns

200 with a Group object.

PATCH/api/v1/groups/{id}

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",
    },
)
Response200
{
  "id": "0193ad93-6fcb-7ed6-831f-a67e05c3ea03",
  "name": "Sales",
  "members": 1,
  "user_ids": [
    "019304f8-996d-7a76-83b7-a969b1028ee3"
  ]
}
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 groups.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 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

  • idstringRequired

    A group of this account (another account's is 404)

Returns

204 Deleted with no body.

DELETE/api/v1/groups/{id}

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",
)
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 groups.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.

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

  • idstringRequired

    A group of this account (another account's is 404)

Request body

Content type application/json · required

Returns

200 with a Group object.

PUT/api/v1/groups/{id}/members

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",
        ],
    },
)
Response200
{
  "id": "0193ad93-6fcb-7ed6-831f-a67e05c3ea03",
  "name": "Sales",
  "members": 1,
  "user_ids": [
    "019304f8-996d-7a76-83b7-a969b1028ee3"
  ]
}
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 groups.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.