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
kindstringenvelopes(default) ortemplates; any other is 422.
Returns
200 with application/json.
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(){
"items": [
{
"id": "0193034a-0062-7488-8256-f14c8b14d025",
"name": "Q4 contracts",
"kind": "envelopes",
"count": 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 envelopes.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 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
Idempotency-KeystringUp to 255 printable ASCII characters; a replay within 24 hours returns the first response.
Request body
Content type application/json · required
Trimmed; unique among the caller's folders of its kind ignoring case (422
existsat /name)kindstringOn create only (422 at /kind on a rename):
envelopes(default) ortemplates
Returns
201 with a Folder object.
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",
},
){
"id": "0193034a-0062-7488-8256-f14c8b14d025",
"name": "Q4 contracts",
"kind": "envelopes",
"count": 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 envelopes.write |
| 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.
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
One of the caller's folders (another member's or account's is 404)
Request body
Content type application/json · required
Trimmed; unique among the caller's folders of its kind ignoring case (422
existsat /name)kindstringOn create only (422 at /kind on a rename):
envelopes(default) ortemplates
Returns
200 with a Folder object.
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",
},
){
"id": "0193034a-0062-7488-8256-f14c8b14d025",
"name": "Q4 contracts",
"kind": "envelopes",
"count": 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 envelopes.write |
| 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 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
One of the caller's folders (another member's or account's is 404)
Returns
204 Removed with no body.
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",
)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 envelopes.write |
| 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.
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
One of the caller's folders, or
noneto file the envelopes in no folder
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
200 with application/json.
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",
],
},
){
"moved": 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 envelopes.write |
| 404 | CS-API-0002 | No such object, or one of another account (answered alike) |
| 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.
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
One of the caller's template folders (an envelope folder is 404), or
noneto file the templates in no folder
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
200 with application/json.
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",
],
},
){
"moved": 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 templates.read |
| 404 | CS-API-0002 | No such object, or one of another account (answered alike) |
| 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.