Core resources
Templates
Reusable documents with roles and fields. Use one or several to create an envelope, share them with members, and keep them in folders.
- GET
/api/v1/templates - POST
/api/v1/templates - GET
/api/v1/templates/{id} - PATCH
/api/v1/templates/{id} - DELETE
/api/v1/templates/{id} - POST
/api/v1/templates/{id}/restore - GET
/api/v1/templates/{id}/shares - PUT
/api/v1/templates/{id}/shares - PUT
/api/v1/templates/{id}/favourite - DELETE
/api/v1/templates/{id}/favourite - POST
/api/v1/templates/{id}/duplicate - POST
/api/v1/templates/{id}/documents - DELETE
/api/v1/templates/{id}/documents/{doc} - GET
/api/v1/templates/{id}/documents/{doc}/content - GET
/api/v1/templates/{id}/documents/{doc}/analysis - POST
/api/v1/templates/{id}/documents/{doc}/analysis - POST
/api/v1/templates/{id}/roles - PATCH
/api/v1/templates/{id}/roles/{role} - DELETE
/api/v1/templates/{id}/roles/{role} - GET
/api/v1/templates/{id}/fields - POST
/api/v1/templates/{id}/fields - PATCH
/api/v1/templates/{id}/fields/{f} - DELETE
/api/v1/templates/{id}/fields/{f}
List templates
GET/api/v1/templates
Templates the caller may use, by view; with deleted=true the Deleted view
The live templates the caller may use, by name: their own, those shared with them (directly, through a group, or with the whole account) and, for an administrator, every one. view narrows the list: owned, shared (Shared with me: another member's templates a share reaches the caller by) or favourites (the caller's starred ones). With deleted=true, the deleted templates the caller owns (every one for an administrator), kept whole and restorable, most recently deleted first. Any other value is 422.
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissiontemplates.read · OAuth scope templates:read
Query parameters
deletedstringtrue: the Deleted view.viewstringall(default),owned,shared(Shared with me) orfavourites.folderstringOne of the caller's template folders (another member's matches nothing), or
none: in none of the caller's folders. Each item carries the caller'sfolder_id(or null).
Returns
200 with a TemplateList object.
curl
curl https://sign.example.com/api/v1/templates \
-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.listTemplates();Python
import os
from openseal import OpenSeal
client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
data = client.list_templates(){
"items": [
{
"id": "01935cde-0f12-798f-841f-7d1c8b907a36",
"name": "Mutual NDA",
"version": 3,
"email_subject": "example",
"email_message": "example",
"roles": [
{}
],
"documents": [
{}
],
"fields": [
{}
],
"access": "owner",
"favourite": false,
"shared": false,
"folder_id": "0193034a-0062-7488-8256-f14c8b14d025"
}
]
}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 |
| 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 template
POST/api/v1/templates
Create a template with roles
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissiontemplates.write · OAuth scope templates: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
email_subjectstringemail_messagestringrolesarray of objectChild attributes of
rolesrouting_orderinteger
Returns
201 with a Template object.
curl
curl -X POST https://sign.example.com/api/v1/templates \
-H "Authorization: Bearer $OPENSEAL_API_KEY" \
-H 'Idempotency-Key: order-1042' \
-H "Content-Type: application/json" \
-d '{
"name": "Mutual NDA",
"email_subject": "example",
"email_message": "example",
"roles": [
{
"name": "Mutual NDA",
"type": "signer"
}
]
}'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.createTemplate({
idempotencyKey: "order-1042",
body: {
"name": "Mutual NDA",
"email_subject": "example",
"email_message": "example",
"roles": [
{
"name": "Mutual NDA",
"type": "signer"
}
]
},
});Python
import os
from openseal import OpenSeal
client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.create_template(
idempotency_key="order-1042",
body={
"name": "Mutual NDA",
"email_subject": "example",
"email_message": "example",
"roles": [
{
"name": "Mutual NDA",
"type": "signer",
},
],
},
){
"id": "01935cde-0f12-798f-841f-7d1c8b907a36",
"name": "Mutual NDA",
"version": 3,
"email_subject": "example",
"email_message": "example",
"roles": [
{}
],
"documents": [
{}
],
"fields": [
{}
],
"access": "owner",
"favourite": false,
"shared": false,
"folder_id": "0193034a-0062-7488-8256-f14c8b14d025"
}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.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.
Get template
GET/api/v1/templates/{id}
A template and its roles
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissiontemplates.read · OAuth scope templates:read
Path parameters
Object id (UUIDv7)
Returns
200 with a Template object.
curl
curl https://sign.example.com/api/v1/templates/01935cde-0f12-798f-841f-7d1c8b907a36 \
-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.getTemplate({
id: "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"])
data = client.get_template(
id="01935cde-0f12-798f-841f-7d1c8b907a36",
){
"id": "01935cde-0f12-798f-841f-7d1c8b907a36",
"name": "Mutual NDA",
"version": 3,
"email_subject": "example",
"email_message": "example",
"roles": [
{}
],
"documents": [
{}
],
"fields": [
{}
],
"access": "owner",
"favourite": false,
"shared": false,
"folder_id": "0193034a-0062-7488-8256-f14c8b14d025"
}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) |
| 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 template
PATCH/api/v1/templates/{id}
Rename a template or change its email subject and message (If-Match required)
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissiontemplates.write · OAuth scope templates:write
Path parameters
Object id (UUIDv7)
Headers
The envelope's
ETagas read ("v<version>"); a stale one is412 CS-WF-0002, none is428 CS-API-0008.
Request body
Content type application/json · required
namestringemail_subjectstring or nullemail_messagestring or null
Returns
200 with a Template object.
curl
curl -X PATCH https://sign.example.com/api/v1/templates/01935cde-0f12-798f-841f-7d1c8b907a36 \
-H "Authorization: Bearer $OPENSEAL_API_KEY" \
-H 'If-Match: "v3"' \
-H "Content-Type: application/json" \
-d '{
"name": "Mutual NDA",
"email_subject": "example",
"email_message": "example"
}'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.patchTemplate({
id: "01935cde-0f12-798f-841f-7d1c8b907a36",
ifMatch: '"v3"',
body: {
"name": "Mutual NDA",
"email_subject": "example",
"email_message": "example"
},
});Python
import os
from openseal import OpenSeal
client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.patch_template(
id="01935cde-0f12-798f-841f-7d1c8b907a36",
if_match="\"v3\"",
body={
"name": "Mutual NDA",
"email_subject": "example",
"email_message": "example",
},
){
"id": "01935cde-0f12-798f-841f-7d1c8b907a36",
"name": "Mutual NDA",
"version": 3,
"email_subject": "example",
"email_message": "example",
"roles": [
{}
],
"documents": [
{}
],
"fields": [
{}
],
"access": "owner",
"favourite": false,
"shared": false,
"folder_id": "0193034a-0062-7488-8256-f14c8b14d025"
}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.write |
| 404 | CS-API-0002 | No such object, or one of another account (answered alike) |
| 412 | CS-WF-0002 | The If-Match version is stale: read the object again |
| 428 | CS-API-0008 | If-Match is required and absent |
| 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 template
DELETE/api/v1/templates/{id}
Move a live template to the Deleted view, kept whole; delete one already there for good, with its roles, documents and fields; envelopes made from it keep their copies
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissiontemplates.write · OAuth scope templates:write
Path parameters
Object id (UUIDv7)
Headers
The envelope's
ETagas read ("v<version>"); a stale one is412 CS-WF-0002, none is428 CS-API-0008.
Returns
204 Done with no body.
curl
curl -X DELETE https://sign.example.com/api/v1/templates/01935cde-0f12-798f-841f-7d1c8b907a36 \
-H "Authorization: Bearer $OPENSEAL_API_KEY" \
-H 'If-Match: "v3"'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.deleteTemplate({
id: "01935cde-0f12-798f-841f-7d1c8b907a36",
ifMatch: '"v3"',
});Python
import os
from openseal import OpenSeal
client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.delete_template(
id="01935cde-0f12-798f-841f-7d1c8b907a36",
if_match="\"v3\"",
)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 templates.write |
| 404 | CS-API-0002 | No such object, or one of another account (answered alike) |
| 412 | CS-WF-0002 | The If-Match version is stale: read the object again |
| 428 | CS-API-0008 | If-Match is required and absent |
| 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.
Restore template
POST/api/v1/templates/{id}/restore
Bring a template of the Deleted view back, with everything it had
If-Match is honoured when given. A live template, or none, is 404. The body is empty or {}.
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissiontemplates.write · OAuth scope templates:write
Path parameters
Object id (UUIDv7)
Headers
Idempotency-KeystringUp to 255 printable ASCII characters; a replay within 24 hours returns the first response.
If-Matchstring"v<version>"
Returns
200 with a Template object.
curl
curl -X POST https://sign.example.com/api/v1/templates/01935cde-0f12-798f-841f-7d1c8b907a36/restore \
-H "Authorization: Bearer $OPENSEAL_API_KEY" \
-H 'Idempotency-Key: order-1042' \
-H 'If-Match: "v3"'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.restoreTemplate({
id: "01935cde-0f12-798f-841f-7d1c8b907a36",
idempotencyKey: "order-1042",
ifMatch: '"v3"',
});Python
import os
from openseal import OpenSeal
client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.restore_template(
id="01935cde-0f12-798f-841f-7d1c8b907a36",
idempotency_key="order-1042",
if_match="\"v3\"",
){
"id": "01935cde-0f12-798f-841f-7d1c8b907a36",
"name": "Mutual NDA",
"version": 3,
"email_subject": "example",
"email_message": "example",
"roles": [
{}
],
"documents": [
{}
],
"fields": [
{}
],
"access": "owner",
"favourite": false,
"shared": false,
"folder_id": "0193034a-0062-7488-8256-f14c8b14d025"
}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.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) |
| 412 | CS-WF-0002 | The If-Match version is stale: read the object again |
| 428 | CS-API-0008 | If-Match is required and absent |
| 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.
List template shares
GET/api/v1/templates/{id}/shares
Whom a template is shared with; its owner's or an administrator's
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissiontemplates.read · OAuth scope templates:read
Path parameters
Returns
200 with a TemplateShares object.
{
"items": [
{
"id": "01935cde-0f12-798f-841f-7d1c8b907a36",
"can_edit": false,
"user": {},
"group": {},
"account": false
}
]
}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) |
| 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.
Replace template shares
PUT/api/v1/templates/{id}/shares
Replace a template's shares with members, groups or the whole account
The whole set of shares. A user is a member of this account, named by id or email; a group is one of its groups. Sharing with the owner, or naming one target twice, is 422. A share lets its members use the template, and edit it with can_edit; deleting, restoring and sharing stay with the owner and administrators. Anyone without access is answered 404, too little access 403.
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissiontemplates.write · OAuth scope templates:write
Path parameters
Request body
Content type application/json · required
Returns
200 with a TemplateShares object.
Limits
- Template shares (
PUT /templates/{id}/shares,UXW-06): shares per template; a member's email: 0–500; 3–320 bytes after trimming
{
"items": [
{
"id": "01935cde-0f12-798f-841f-7d1c8b907a36",
"can_edit": false,
"user": {},
"group": {},
"account": false
}
]
}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.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.
Favourite template
PUT/api/v1/templates/{id}/favourite
Star a template for the caller (Favourites); idempotent
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissiontemplates.read · OAuth scope templates:read
Path parameters
Object id (UUIDv7)
Returns
204 Starred with no body.
curl
curl -X PUT https://sign.example.com/api/v1/templates/01935cde-0f12-798f-841f-7d1c8b907a36/favourite \
-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.favouriteTemplate({
id: "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.favourite_template(
id="01935cde-0f12-798f-841f-7d1c8b907a36",
)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 templates.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.
Unfavourite template
DELETE/api/v1/templates/{id}/favourite
Unstar a template for the caller; idempotent
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissiontemplates.read · OAuth scope templates:read
Path parameters
Object id (UUIDv7)
Returns
204 Unstarred with no body.
curl
curl -X DELETE https://sign.example.com/api/v1/templates/01935cde-0f12-798f-841f-7d1c8b907a36/favourite \
-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.unfavouriteTemplate({
id: "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.unfavourite_template(
id="01935cde-0f12-798f-841f-7d1c8b907a36",
)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 templates.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.
Duplicate template
POST/api/v1/templates/{id}/duplicate
A copy owned by the caller, with new ids, sharing the stored PDFs
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissiontemplates.write · OAuth scope templates:write
Path parameters
Object id (UUIDv7)
Headers
Idempotency-KeystringUp to 255 printable ASCII characters; a replay within 24 hours returns the first response.
Request body
Content type application/json
namestringDefault
Copy of <name>
Returns
201 Created with a Template object.
curl
curl -X POST https://sign.example.com/api/v1/templates/01935cde-0f12-798f-841f-7d1c8b907a36/duplicate \
-H "Authorization: Bearer $OPENSEAL_API_KEY" \
-H 'Idempotency-Key: order-1042' \
-H "Content-Type: application/json" \
-d '{
"name": "Example Signer"
}'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.duplicateTemplate({
id: "01935cde-0f12-798f-841f-7d1c8b907a36",
idempotencyKey: "order-1042",
body: {
"name": "Example Signer"
},
});Python
import os
from openseal import OpenSeal
client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.duplicate_template(
id="01935cde-0f12-798f-841f-7d1c8b907a36",
idempotency_key="order-1042",
body={
"name": "Example Signer",
},
){
"id": "01935cde-0f12-798f-841f-7d1c8b907a36",
"name": "Mutual NDA",
"version": 3,
"email_subject": "example",
"email_message": "example",
"roles": [
{}
],
"documents": [
{}
],
"fields": [
{}
],
"access": "owner",
"favourite": false,
"shared": false,
"folder_id": "0193034a-0062-7488-8256-f14c8b14d025"
}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.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.
Add template document
POST/api/v1/templates/{id}/documents
Add a document {name, content_base64}, a PDF or a Word document (converted), admitted and normalized as an upload
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissiontemplates.write · OAuth scope templates:write
Path parameters
Object id (UUIDv7)
Headers
Idempotency-KeystringUp to 255 printable ASCII characters; a replay within 24 hours returns the first response.
Request body
Content type application/json · required
At most 50 MiB decoded
Returns
201 The template with a Template object.
curl
curl -X POST https://sign.example.com/api/v1/templates/01935cde-0f12-798f-841f-7d1c8b907a36/documents \
-H "Authorization: Bearer $OPENSEAL_API_KEY" \
-H 'Idempotency-Key: order-1042' \
-H "Content-Type: application/json" \
-d '{
"name": "contract.pdf",
"content_base64": "JVBERi0xLjcKJcfsj6IK"
}'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.addTemplateDocument({
id: "01935cde-0f12-798f-841f-7d1c8b907a36",
idempotencyKey: "order-1042",
body: {
"name": "contract.pdf",
"content_base64": "JVBERi0xLjcKJcfsj6IK"
},
});Python
import os
from openseal import OpenSeal
client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.add_template_document(
id="01935cde-0f12-798f-841f-7d1c8b907a36",
idempotency_key="order-1042",
body={
"name": "contract.pdf",
"content_base64": "JVBERi0xLjcKJcfsj6IK",
},
){
"id": "01935cde-0f12-798f-841f-7d1c8b907a36",
"name": "Mutual NDA",
"version": 3,
"email_subject": "example",
"email_message": "example",
"roles": [
{}
],
"documents": [
{}
],
"fields": [
{}
],
"access": "owner",
"favourite": false,
"shared": false,
"folder_id": "0193034a-0062-7488-8256-f14c8b14d025"
}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.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.
Delete template document
DELETE/api/v1/templates/{id}/documents/{doc}
Remove a document and the fields on it
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissiontemplates.write · OAuth scope templates:write
Path parameters
Object id (UUIDv7)
Template document id
Headers
The envelope's
ETagas read ("v<version>"); a stale one is412 CS-WF-0002, none is428 CS-API-0008.
Returns
204 Done with no body.
curl
curl -X DELETE https://sign.example.com/api/v1/templates/01935cde-0f12-798f-841f-7d1c8b907a36/documents/019343cc-23fa-752b-887b-4cc1d02b5b11 \
-H "Authorization: Bearer $OPENSEAL_API_KEY" \
-H 'If-Match: "v3"'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.deleteTemplateDocument({
id: "01935cde-0f12-798f-841f-7d1c8b907a36",
doc: "019343cc-23fa-752b-887b-4cc1d02b5b11",
ifMatch: '"v3"',
});Python
import os
from openseal import OpenSeal
client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.delete_template_document(
id="01935cde-0f12-798f-841f-7d1c8b907a36",
doc="019343cc-23fa-752b-887b-4cc1d02b5b11",
if_match="\"v3\"",
)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 templates.write |
| 404 | CS-API-0002 | No such object, or one of another account (answered alike) |
| 412 | CS-WF-0002 | The If-Match version is stale: read the object again |
| 428 | CS-API-0008 | If-Match is required and absent |
| 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 template document content
GET/api/v1/templates/{id}/documents/{doc}/content
The template document's normalized PDF
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissiontemplates.read · OAuth scope templates:read
Path parameters
Object id (UUIDv7)
Template document id
Returns
200 PDF with application/pdf.
curl
curl https://sign.example.com/api/v1/templates/01935cde-0f12-798f-841f-7d1c8b907a36/documents/019343cc-23fa-752b-887b-4cc1d02b5b11/content \
-H "Authorization: Bearer $OPENSEAL_API_KEY" \
-o download.pdfTypeScript
import { OpenSeal } from "@openseal/sdk";
const os = new OpenSeal({ baseUrl: "https://sign.example.com", apiKey: process.env.OPENSEAL_API_KEY });
const data = await os.getTemplateDocumentContent({
id: "01935cde-0f12-798f-841f-7d1c8b907a36",
doc: "019343cc-23fa-752b-887b-4cc1d02b5b11",
});Python
import os
from openseal import OpenSeal
client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
data = client.get_template_document_content(
id="01935cde-0f12-798f-841f-7d1c8b907a36",
doc="019343cc-23fa-752b-887b-4cc1d02b5b11",
)The file itself (application/pdf), not JSON.
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) |
| 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 template analysis
GET/api/v1/templates/{id}/documents/{doc}/analysis
The template document's newest analysis
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissiontemplates.read · OAuth scope templates:read
Path parameters
Object id (UUIDv7)
Template document id
Returns
200 with a Analysis object.
curl
curl https://sign.example.com/api/v1/templates/01935cde-0f12-798f-841f-7d1c8b907a36/documents/019343cc-23fa-752b-887b-4cc1d02b5b11/analysis \
-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.getTemplateAnalysis({
id: "01935cde-0f12-798f-841f-7d1c8b907a36",
doc: "019343cc-23fa-752b-887b-4cc1d02b5b11",
});Python
import os
from openseal import OpenSeal
client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
data = client.get_template_analysis(
id="01935cde-0f12-798f-841f-7d1c8b907a36",
doc="019343cc-23fa-752b-887b-4cc1d02b5b11",
){
"id": "0193f44e-85c4-7b8e-8a2a-ddc796f8beab",
"document_id": "019343cc-23fa-752b-887b-4cc1d02b5b11",
"status": "queued",
"uses": [
"ocr"
],
"ocr_pages": [
1
],
"truncated": false,
"bundle_id": "01931e6e-d65d-777d-8636-4eeaed5a745b",
"code": "123456",
"created_at": "2026-11-20T09:30:00Z",
"finished_at": "2026-11-20T09:30:00Z"
}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) |
| 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.
Request template analysis
POST/api/v1/templates/{id}/documents/{doc}/analysis
Ask for a template document's page hashes, for matching uploads
403 CS-ML-0011 unless template matching is in effect.
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissiontemplates.write · OAuth scope templates:write
Path parameters
Object id (UUIDv7)
Template document id
Headers
Idempotency-KeystringUp to 255 printable ASCII characters; a replay within 24 hours returns the first response.
Returns
202 Accepted with a Analysis object.
curl
curl -X POST https://sign.example.com/api/v1/templates/01935cde-0f12-798f-841f-7d1c8b907a36/documents/019343cc-23fa-752b-887b-4cc1d02b5b11/analysis \
-H "Authorization: Bearer $OPENSEAL_API_KEY" \
-H 'Idempotency-Key: order-1042'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.requestTemplateAnalysis({
id: "01935cde-0f12-798f-841f-7d1c8b907a36",
doc: "019343cc-23fa-752b-887b-4cc1d02b5b11",
idempotencyKey: "order-1042",
});Python
import os
from openseal import OpenSeal
client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.request_template_analysis(
id="01935cde-0f12-798f-841f-7d1c8b907a36",
doc="019343cc-23fa-752b-887b-4cc1d02b5b11",
idempotency_key="order-1042",
){
"id": "0193f44e-85c4-7b8e-8a2a-ddc796f8beab",
"document_id": "019343cc-23fa-752b-887b-4cc1d02b5b11",
"status": "queued",
"uses": [
"ocr"
],
"ocr_pages": [
1
],
"truncated": false,
"bundle_id": "01931e6e-d65d-777d-8636-4eeaed5a745b",
"code": "123456",
"created_at": "2026-11-20T09:30:00Z",
"finished_at": "2026-11-20T09:30:00Z"
}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.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) |
| 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.
Add template role
POST/api/v1/templates/{id}/roles
Add a role
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissiontemplates.write · OAuth scope templates:write
Path parameters
Object id (UUIDv7)
Headers
Idempotency-KeystringUp to 255 printable ASCII characters; a replay within 24 hours returns the first response.
Request body
Content type application/json · required
routing_orderinteger
Returns
201 The template with a Template object.
curl
curl -X POST https://sign.example.com/api/v1/templates/01935cde-0f12-798f-841f-7d1c8b907a36/roles \
-H "Authorization: Bearer $OPENSEAL_API_KEY" \
-H 'Idempotency-Key: order-1042' \
-H "Content-Type: application/json" \
-d '{
"name": "Mutual NDA",
"type": "signature",
"routing_order": 1
}'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.addTemplateRole({
id: "01935cde-0f12-798f-841f-7d1c8b907a36",
idempotencyKey: "order-1042",
body: {
"name": "Mutual NDA",
"type": "signature",
"routing_order": 1
},
});Python
import os
from openseal import OpenSeal
client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.add_template_role(
id="01935cde-0f12-798f-841f-7d1c8b907a36",
idempotency_key="order-1042",
body={
"name": "Mutual NDA",
"type": "signature",
"routing_order": 1,
},
){
"id": "01935cde-0f12-798f-841f-7d1c8b907a36",
"name": "Mutual NDA",
"version": 3,
"email_subject": "example",
"email_message": "example",
"roles": [
{}
],
"documents": [
{}
],
"fields": [
{}
],
"access": "owner",
"favourite": false,
"shared": false,
"folder_id": "0193034a-0062-7488-8256-f14c8b14d025"
}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.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.
Update template role
PATCH/api/v1/templates/{id}/roles/{role}
Rename a role or change its type or routing order
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissiontemplates.write · OAuth scope templates:write
Path parameters
Object id (UUIDv7)
Role id
Headers
The envelope's
ETagas read ("v<version>"); a stale one is412 CS-WF-0002, none is428 CS-API-0008.
Request body
Content type application/json · required
namestringtypestringrouting_orderinteger
Returns
200 The template with a Template object.
curl
curl -X PATCH https://sign.example.com/api/v1/templates/01935cde-0f12-798f-841f-7d1c8b907a36/roles/01934b16-8d88-7dc8-872a-7753c2bc35b3 \
-H "Authorization: Bearer $OPENSEAL_API_KEY" \
-H 'If-Match: "v3"' \
-H "Content-Type: application/json" \
-d '{
"name": "Mutual NDA",
"type": "signature",
"routing_order": 1
}'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.patchTemplateRole({
id: "01935cde-0f12-798f-841f-7d1c8b907a36",
role: "01934b16-8d88-7dc8-872a-7753c2bc35b3",
ifMatch: '"v3"',
body: {
"name": "Mutual NDA",
"type": "signature",
"routing_order": 1
},
});Python
import os
from openseal import OpenSeal
client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.patch_template_role(
id="01935cde-0f12-798f-841f-7d1c8b907a36",
role="01934b16-8d88-7dc8-872a-7753c2bc35b3",
if_match="\"v3\"",
body={
"name": "Mutual NDA",
"type": "signature",
"routing_order": 1,
},
){
"id": "01935cde-0f12-798f-841f-7d1c8b907a36",
"name": "Mutual NDA",
"version": 3,
"email_subject": "example",
"email_message": "example",
"roles": [
{}
],
"documents": [
{}
],
"fields": [
{}
],
"access": "owner",
"favourite": false,
"shared": false,
"folder_id": "0193034a-0062-7488-8256-f14c8b14d025"
}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.write |
| 404 | CS-API-0002 | No such object, or one of another account (answered alike) |
| 412 | CS-WF-0002 | The If-Match version is stale: read the object again |
| 428 | CS-API-0008 | If-Match is required and absent |
| 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 template role
DELETE/api/v1/templates/{id}/roles/{role}
Remove a role and its fields
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissiontemplates.write · OAuth scope templates:write
Path parameters
Object id (UUIDv7)
Role id
Headers
The envelope's
ETagas read ("v<version>"); a stale one is412 CS-WF-0002, none is428 CS-API-0008.
Returns
204 Done with no body.
curl
curl -X DELETE https://sign.example.com/api/v1/templates/01935cde-0f12-798f-841f-7d1c8b907a36/roles/01934b16-8d88-7dc8-872a-7753c2bc35b3 \
-H "Authorization: Bearer $OPENSEAL_API_KEY" \
-H 'If-Match: "v3"'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.deleteTemplateRole({
id: "01935cde-0f12-798f-841f-7d1c8b907a36",
role: "01934b16-8d88-7dc8-872a-7753c2bc35b3",
ifMatch: '"v3"',
});Python
import os
from openseal import OpenSeal
client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.delete_template_role(
id="01935cde-0f12-798f-841f-7d1c8b907a36",
role="01934b16-8d88-7dc8-872a-7753c2bc35b3",
if_match="\"v3\"",
)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 templates.write |
| 404 | CS-API-0002 | No such object, or one of another account (answered alike) |
| 412 | CS-WF-0002 | The If-Match version is stale: read the object again |
| 428 | CS-API-0008 | If-Match is required and absent |
| 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.
List template fields
GET/api/v1/templates/{id}/fields
A template's fields
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissiontemplates.read · OAuth scope templates:read
Path parameters
Object id (UUIDv7)
Returns
200 with a TemplateFieldList object.
curl
curl https://sign.example.com/api/v1/templates/01935cde-0f12-798f-841f-7d1c8b907a36/fields \
-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.listTemplateFields({
id: "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"])
data = client.list_template_fields(
id="01935cde-0f12-798f-841f-7d1c8b907a36",
){
"items": [
{}
]
}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) |
| 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.
Add template fields
POST/api/v1/templates/{id}/fields
Add one field, or {items: [...]}, bound to roles
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissiontemplates.write · OAuth scope templates:write
Path parameters
Object id (UUIDv7)
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 TemplateFieldList object.
curl
curl -X POST https://sign.example.com/api/v1/templates/01935cde-0f12-798f-841f-7d1c8b907a36/fields \
-H "Authorization: Bearer $OPENSEAL_API_KEY" \
-H 'Idempotency-Key: order-1042' \
-H "Content-Type: application/json" \
-d '{}'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.addTemplateFields({
id: "01935cde-0f12-798f-841f-7d1c8b907a36",
idempotencyKey: "order-1042",
body: {},
});Python
import os
from openseal import OpenSeal
client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.add_template_fields(
id="01935cde-0f12-798f-841f-7d1c8b907a36",
idempotency_key="order-1042",
body={},
){
"items": [
{}
]
}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.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.
Update template field
PATCH/api/v1/templates/{id}/fields/{f}
Change a field: the members given replace its own, null removes one; checked whole again
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissiontemplates.write · OAuth scope templates:write
Path parameters
Object id (UUIDv7)
Field id
Headers
The envelope's
ETagas read ("v<version>"); a stale one is412 CS-WF-0002, none is428 CS-API-0008.
Request body
Content type application/json · required
Returns
200 with a TemplateField object.
curl
curl -X PATCH https://sign.example.com/api/v1/templates/01935cde-0f12-798f-841f-7d1c8b907a36/fields/0193c0d2-856b-774d-80df-05b9d4456b17 \
-H "Authorization: Bearer $OPENSEAL_API_KEY" \
-H 'If-Match: "v3"' \
-H "Content-Type: application/json" \
-d '{}'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.patchTemplateField({
id: "01935cde-0f12-798f-841f-7d1c8b907a36",
f: "0193c0d2-856b-774d-80df-05b9d4456b17",
ifMatch: '"v3"',
body: {},
});Python
import os
from openseal import OpenSeal
client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.patch_template_field(
id="01935cde-0f12-798f-841f-7d1c8b907a36",
f="0193c0d2-856b-774d-80df-05b9d4456b17",
if_match="\"v3\"",
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 templates.write |
| 404 | CS-API-0002 | No such object, or one of another account (answered alike) |
| 412 | CS-WF-0002 | The If-Match version is stale: read the object again |
| 428 | CS-API-0008 | If-Match is required and absent |
| 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 template field
DELETE/api/v1/templates/{id}/fields/{f}
Remove a field
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissiontemplates.write · OAuth scope templates:write
Path parameters
Object id (UUIDv7)
Field id
Headers
The envelope's
ETagas read ("v<version>"); a stale one is412 CS-WF-0002, none is428 CS-API-0008.
Returns
204 Done with no body.
curl
curl -X DELETE https://sign.example.com/api/v1/templates/01935cde-0f12-798f-841f-7d1c8b907a36/fields/0193c0d2-856b-774d-80df-05b9d4456b17 \
-H "Authorization: Bearer $OPENSEAL_API_KEY" \
-H 'If-Match: "v3"'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.deleteTemplateField({
id: "01935cde-0f12-798f-841f-7d1c8b907a36",
f: "0193c0d2-856b-774d-80df-05b9d4456b17",
ifMatch: '"v3"',
});Python
import os
from openseal import OpenSeal
client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.delete_template_field(
id="01935cde-0f12-798f-841f-7d1c8b907a36",
f="0193c0d2-856b-774d-80df-05b9d4456b17",
if_match="\"v3\"",
)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 templates.write |
| 404 | CS-API-0002 | No such object, or one of another account (answered alike) |
| 412 | CS-WF-0002 | The If-Match version is stale: read the object again |
| 428 | CS-API-0008 | If-Match is required and absent |
| 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.