Core resources

Folders

Each member's own folders for envelopes and templates.

List folders

GET/api/v1/folders

The caller's own envelope (or template) folders, by name, with counts

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

Permissionenvelopes.read · OAuth scope envelopes:read

Query parameters

  • kindstring

    envelopes (default) or templates; any other is 422.

    One of envelopes, templates

Returns

200 with application/json.

GET/api/v1/folders

curl

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

Python

import os
from openseal import OpenSeal

client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
data = client.list_folders()
Response200
{
  "items": [
    {
      "id": "0193034a-0062-7488-8256-f14c8b14d025",
      "name": "Q4 contracts",
      "kind": "envelopes",
      "count": 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 envelopes.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 folder

POST/api/v1/folders

A new folder of the caller's (at most 500)

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

Permissionenvelopes.write · OAuth scope envelopes:write

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

    Trimmed; unique among the caller's folders of its kind ignoring case (422 exists at /name)

    at least 1 characters · at most 100 characters

  • kindstring

    On create only (422 at /kind on a rename): envelopes (default) or templates

    One of envelopes, templates

Returns

201 with a Folder object.

POST/api/v1/folders

curl

curl -X POST https://sign.example.com/api/v1/folders \
  -H "Authorization: Bearer $OPENSEAL_API_KEY" \
  -H 'Idempotency-Key: order-1042' \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Q4 contracts",
  "kind": "envelopes"
}'

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.createFolder({
  idempotencyKey: "order-1042",
  body: {
    "name": "Q4 contracts",
    "kind": "envelopes"
  },
});

Python

import os
from openseal import OpenSeal

client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.create_folder(
    idempotency_key="order-1042",
    body={
        "name": "Q4 contracts",
        "kind": "envelopes",
    },
)
Response201
{
  "id": "0193034a-0062-7488-8256-f14c8b14d025",
  "name": "Q4 contracts",
  "kind": "envelopes",
  "count": 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 envelopes.write
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.

Rename folder

PATCH/api/v1/folders/{id}

Rename one of the caller's folders

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

Permissionenvelopes.write · OAuth scope envelopes:write

Path parameters

  • idstringRequired

    One of the caller's folders (another member's or account's is 404)

Request body

Content type application/json · required

  • namestringRequired

    Trimmed; unique among the caller's folders of its kind ignoring case (422 exists at /name)

    at least 1 characters · at most 100 characters

  • kindstring

    On create only (422 at /kind on a rename): envelopes (default) or templates

    One of envelopes, templates

Returns

200 with a Folder object.

PATCH/api/v1/folders/{id}

curl

curl -X PATCH https://sign.example.com/api/v1/folders/0193034a-0062-7488-8256-f14c8b14d025 \
  -H "Authorization: Bearer $OPENSEAL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Q4 contracts",
  "kind": "envelopes"
}'

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.renameFolder({
  id: "0193034a-0062-7488-8256-f14c8b14d025",
  body: {
    "name": "Q4 contracts",
    "kind": "envelopes"
  },
});

Python

import os
from openseal import OpenSeal

client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.rename_folder(
    id="0193034a-0062-7488-8256-f14c8b14d025",
    body={
        "name": "Q4 contracts",
        "kind": "envelopes",
    },
)
Response200
{
  "id": "0193034a-0062-7488-8256-f14c8b14d025",
  "name": "Q4 contracts",
  "kind": "envelopes",
  "count": 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 envelopes.write
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 folder

DELETE/api/v1/folders/{id}

Remove one of the caller's folders; what was filed in it is in no folder

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

Permissionenvelopes.write · OAuth scope envelopes:write

Path parameters

  • idstringRequired

    One of the caller's folders (another member's or account's is 404)

Returns

204 Removed with no body.

DELETE/api/v1/folders/{id}

curl

curl -X DELETE https://sign.example.com/api/v1/folders/0193034a-0062-7488-8256-f14c8b14d025 \
  -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.deleteFolder({
  id: "0193034a-0062-7488-8256-f14c8b14d025",
});

Python

import os
from openseal import OpenSeal

client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.delete_folder(
    id="0193034a-0062-7488-8256-f14c8b14d025",
)
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 envelopes.write
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.

Move envelopes

POST/api/v1/folders/{id}/envelopes

File 1 to 200 envelopes the caller may see in a folder of theirs, or in none, all or nothing

Filing is the caller's own view of their lists: the envelopes, their updated_at and their audit chains are untouched. An envelope the caller may not see is 404 and nothing moves.

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

Permissionenvelopes.write · OAuth scope envelopes:write

Path parameters

  • idstringRequired

    One of the caller's folders, or none to file the envelopes in no folder

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

  • envelope_idsarray of stringRequired

    at least 1 items · at most 200 items

Returns

200 with application/json.

POST/api/v1/folders/{id}/envelopes

curl

curl -X POST https://sign.example.com/api/v1/folders/0193034a-0062-7488-8256-f14c8b14d025/envelopes \
  -H "Authorization: Bearer $OPENSEAL_API_KEY" \
  -H 'Idempotency-Key: order-1042' \
  -H "Content-Type: application/json" \
  -d '{
  "envelope_ids": [
    "01934c50-3ca6-7776-81e5-c4aaecfe9962"
  ]
}'

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.moveEnvelopes({
  id: "0193034a-0062-7488-8256-f14c8b14d025",
  idempotencyKey: "order-1042",
  body: {
    "envelope_ids": [
      "01934c50-3ca6-7776-81e5-c4aaecfe9962"
    ]
  },
});

Python

import os
from openseal import OpenSeal

client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.move_envelopes(
    id="0193034a-0062-7488-8256-f14c8b14d025",
    idempotency_key="order-1042",
    body={
        "envelope_ids": [
            "01934c50-3ca6-7776-81e5-c4aaecfe9962",
        ],
    },
)
Response200
{
  "moved": 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 envelopes.write
404CS-API-0002No such object, or one of another account (answered alike)
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.

Move templates

POST/api/v1/folders/{id}/templates

File 1 to 200 templates the caller may use in a template folder of theirs, or in none, all or nothing

Filing is the caller's own view of their template list: the templates and their versions are untouched. A template the caller may not use, or another account's, is 404 and nothing moves.

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

Permissiontemplates.read · OAuth scope templates:read

Path parameters

  • idstringRequired

    One of the caller's template folders (an envelope folder is 404), or none to file the templates in no folder

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

  • template_idsarray of stringRequired

    at least 1 items · at most 200 items

Returns

200 with application/json.

POST/api/v1/folders/{id}/templates

curl

curl -X POST https://sign.example.com/api/v1/folders/0193034a-0062-7488-8256-f14c8b14d025/templates \
  -H "Authorization: Bearer $OPENSEAL_API_KEY" \
  -H 'Idempotency-Key: order-1042' \
  -H "Content-Type: application/json" \
  -d '{
  "template_ids": [
    "01935cde-0f12-798f-841f-7d1c8b907a36"
  ]
}'

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.moveTemplates({
  id: "0193034a-0062-7488-8256-f14c8b14d025",
  idempotencyKey: "order-1042",
  body: {
    "template_ids": [
      "01935cde-0f12-798f-841f-7d1c8b907a36"
    ]
  },
});

Python

import os
from openseal import OpenSeal

client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.move_templates(
    id="0193034a-0062-7488-8256-f14c8b14d025",
    idempotency_key="order-1042",
    body={
        "template_ids": [
            "01935cde-0f12-798f-841f-7d1c8b907a36",
        ],
    },
)
Response200
{
  "moved": 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 templates.read
404CS-API-0002No such object, or one of another account (answered alike)
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.