Core resources
Documents
The PDFs of an envelope: upload, read in any version (original, normalized, sealed), the combined PDF, signer attachments, and the optional document analysis that suggests fields.
- GET
/api/v1/envelopes/{id}/attachments/{sha256} - GET
/api/v1/envelopes/{id}/documents/combined - GET
/api/v1/envelopes/{id}/documents - POST
/api/v1/envelopes/{id}/documents - GET
/api/v1/envelopes/{id}/documents/{doc} - DELETE
/api/v1/envelopes/{id}/documents/{doc} - GET
/api/v1/envelopes/{id}/documents/{doc}/content - POST
/api/v1/envelopes/{id}/documents/{doc}/detect-fields - GET
/api/v1/envelopes/{id}/documents/{doc}/analysis - POST
/api/v1/envelopes/{id}/documents/{doc}/analysis - GET
/api/v1/envelopes/{id}/suggestions - POST
/api/v1/envelopes/{id}/suggestions/{s}/accept - POST
/api/v1/envelopes/{id}/suggestions/{s}/dismiss
Get attachment
GET/api/v1/envelopes/{id}/attachments/{sha256}
A signer's attachment, recorded as attachment.downloaded
The file an attachment field's value names, checked against its hash, served as an attachment of the type its leading bytes show (PDF, PNG or JPEG). Recorded in the chain as attachment.downloaded with the field and the hash. Any other hash is 404.
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissionenvelopes.read · OAuth scope envelopes:read
Path parameters
Object id (UUIDv7)
The attachment's SHA-256, 64 lower-case hex digits (an attachment field's value)
Returns
200 The file with application/pdf.
curl
curl https://sign.example.com/api/v1/envelopes/01934c50-3ca6-7776-81e5-c4aaecfe9962/attachments/9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08 \
-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.getAttachment({
id: "01934c50-3ca6-7776-81e5-c4aaecfe9962",
sha256: "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
});Python
import os
from openseal import OpenSeal
client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
data = client.get_attachment(
id="01934c50-3ca6-7776-81e5-c4aaecfe9962",
sha256="9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
)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 envelopes.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 combined PDF
GET/api/v1/envelopes/{id}/documents/combined
Sealed documents and certificate as one PDF (made by the seal job)
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissionenvelopes.read · OAuth scope envelopes:read
Path parameters
Object id (UUIDv7)
Returns
200 PDF with application/pdf.
curl
curl https://sign.example.com/api/v1/envelopes/01934c50-3ca6-7776-81e5-c4aaecfe9962/documents/combined \
-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.getCombined({
id: "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"])
data = client.get_combined(
id="01934c50-3ca6-7776-81e5-c4aaecfe9962",
)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 envelopes.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.
List documents
GET/api/v1/envelopes/{id}/documents
Documents in order
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissionenvelopes.read · OAuth scope envelopes:read
Path parameters
Object id (UUIDv7)
Returns
200 with a DocumentList object.
curl
curl https://sign.example.com/api/v1/envelopes/01934c50-3ca6-7776-81e5-c4aaecfe9962/documents \
-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.listDocuments({
id: "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"])
data = client.list_documents(
id="01934c50-3ca6-7776-81e5-c4aaecfe9962",
){
"items": [
{
"id": "019343cc-23fa-752b-887b-4cc1d02b5b11",
"name": "contract.pdf",
"pages": 2,
"bytes": 1,
"upload_sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
"delivered_sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
"admission_findings": 1,
"fixed": 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 envelopes.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 document
POST/api/v1/envelopes/{id}/documents
Upload a document, a PDF or a Word document (.docx, converted to PDF): admitted and normalized; JSON, or the file itself with ?name=
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissionenvelopes.write · OAuth scope envelopes:write
Path parameters
Object id (UUIDv7)
Query parameters
namestringThe document's name, when the body is the file itself
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 with a Document object.
curl
curl -X POST https://sign.example.com/api/v1/envelopes/01934c50-3ca6-7776-81e5-c4aaecfe9962/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.addDocument({
id: "01934c50-3ca6-7776-81e5-c4aaecfe9962",
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_document(
id="01934c50-3ca6-7776-81e5-c4aaecfe9962",
idempotency_key="order-1042",
body={
"name": "contract.pdf",
"content_base64": "JVBERi0xLjcKJcfsj6IK",
},
){
"id": "019343cc-23fa-752b-887b-4cc1d02b5b11",
"name": "contract.pdf",
"pages": 2,
"bytes": 1,
"upload_sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
"delivered_sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
"admission_findings": 1,
"fixed": 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 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.
Get document
GET/api/v1/envelopes/{id}/documents/{doc}
A document's metadata
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissionenvelopes.read · OAuth scope envelopes:read
Path parameters
Object id (UUIDv7)
Document id
Returns
200 with a Document object.
curl
curl https://sign.example.com/api/v1/envelopes/01934c50-3ca6-7776-81e5-c4aaecfe9962/documents/019343cc-23fa-752b-887b-4cc1d02b5b11 \
-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.getDocument({
id: "01934c50-3ca6-7776-81e5-c4aaecfe9962",
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_document(
id="01934c50-3ca6-7776-81e5-c4aaecfe9962",
doc="019343cc-23fa-752b-887b-4cc1d02b5b11",
){
"id": "019343cc-23fa-752b-887b-4cc1d02b5b11",
"name": "contract.pdf",
"pages": 2,
"bytes": 1,
"upload_sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
"delivered_sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
"admission_findings": 1,
"fixed": 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 envelopes.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.
Delete document
DELETE/api/v1/envelopes/{id}/documents/{doc}
Remove a document (If-Match required)
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissionenvelopes.write · OAuth scope envelopes:write
Path parameters
Object id (UUIDv7)
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/envelopes/01934c50-3ca6-7776-81e5-c4aaecfe9962/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.deleteDocument({
id: "01934c50-3ca6-7776-81e5-c4aaecfe9962",
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_document(
id="01934c50-3ca6-7776-81e5-c4aaecfe9962",
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 envelopes.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 document content
GET/api/v1/envelopes/{id}/documents/{doc}/content
Document bytes: original (a converted upload's original is its Word document), normalized or sealed
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissionenvelopes.read · OAuth scope envelopes:read
Path parameters
Object id (UUIDv7)
Document id
Query parameters
versionstringcurrent: the sealed version once sealed, else a preview of the values completed so far with a not-signed banner on every page, made on request and never stored; theX-OpenSeal-Documentheader sayssealedorpreview.
Returns
200 PDF (or, for the original of a converted upload, the Word document) with application/pdf.
curl
curl https://sign.example.com/api/v1/envelopes/01934c50-3ca6-7776-81e5-c4aaecfe9962/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.getDocumentContent({
id: "01934c50-3ca6-7776-81e5-c4aaecfe9962",
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_document_content(
id="01934c50-3ca6-7776-81e5-c4aaecfe9962",
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 envelopes.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.
Detect fields
POST/api/v1/envelopes/{id}/documents/{doc}/detect-fields
Suggested fields from the document's lines, boxes, labels and form fields
Nothing is changed or recorded. Each suggestion is in the field endpoints' geometry (displayed page space, points, origin top-left); add one by posting it to /fields with a recipient_id. At most 500, ordered by page, top, left; truncated says a bound was reached.
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissionenvelopes.write · OAuth scope envelopes:write
Path parameters
Object id (UUIDv7)
Document id
Headers
Idempotency-KeystringUp to 255 printable ASCII characters; a replay within 24 hours returns the first response.
Returns
200 with a DetectedFields object.
curl
curl -X POST https://sign.example.com/api/v1/envelopes/01934c50-3ca6-7776-81e5-c4aaecfe9962/documents/019343cc-23fa-752b-887b-4cc1d02b5b11/detect-fields \
-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.detectFields({
id: "01934c50-3ca6-7776-81e5-c4aaecfe9962",
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.detect_fields(
id="01934c50-3ca6-7776-81e5-c4aaecfe9962",
doc="019343cc-23fa-752b-887b-4cc1d02b5b11",
idempotency_key="order-1042",
){
"items": [
{
"document_id": "019343cc-23fa-752b-887b-4cc1d02b5b11",
"type": "signature",
"page": 1,
"x": "72",
"y": "600",
"width": "180",
"height": "40",
"source": "underline",
"cue": "example",
"confidence": 1
}
],
"truncated": 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 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) |
| 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 analysis
GET/api/v1/envelopes/{id}/documents/{doc}/analysis
The document's newest analysis
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissionenvelopes.read · OAuth scope envelopes:read
Path parameters
Object id (UUIDv7)
Document id
Returns
200 with a Analysis object.
curl
curl https://sign.example.com/api/v1/envelopes/01934c50-3ca6-7776-81e5-c4aaecfe9962/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.getAnalysis({
id: "01934c50-3ca6-7776-81e5-c4aaecfe9962",
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_analysis(
id="01934c50-3ca6-7776-81e5-c4aaecfe9962",
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 envelopes.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 analysis
POST/api/v1/envelopes/{id}/documents/{doc}/analysis
Ask for a draft's document to be analysed
Idempotent on the job key (account, document, its SHA-256, the features, the model bundle). 403 CS-ML-0011 with no feature in effect; 409 CS-WF-0001 once the envelope is no longer a draft; 404 once it is purged (a deleted draft). The envelope's sender or an administrator.
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissionenvelopes.write · OAuth scope envelopes:write
Path parameters
Object id (UUIDv7)
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/envelopes/01934c50-3ca6-7776-81e5-c4aaecfe9962/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.requestAnalysis({
id: "01934c50-3ca6-7776-81e5-c4aaecfe9962",
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_analysis(
id="01934c50-3ca6-7776-81e5-c4aaecfe9962",
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 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) |
| 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 suggestions
GET/api/v1/envelopes/{id}/suggestions
Suggestions of the envelope's analyses
Only kinds whose feature is in effect, only for documents still in the envelope. 403 CS-ML-0011 with no feature in effect; 404 once the envelope is purged.
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissionenvelopes.read · OAuth scope envelopes:read
Path parameters
Object id (UUIDv7)
Query parameters
Returns
200 with a SuggestionPage object.
curl
curl https://sign.example.com/api/v1/envelopes/01934c50-3ca6-7776-81e5-c4aaecfe9962/suggestions?limit=20 \
-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.listSuggestions({
id: "01934c50-3ca6-7776-81e5-c4aaecfe9962",
limit: 20,
});Python
import os
from openseal import OpenSeal
client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
data = client.list_suggestions(
id="01934c50-3ca6-7776-81e5-c4aaecfe9962",
limit=20,
){
"items": [
{
"id": "0193650f-fa82-7126-8b74-c533df581cbc",
"kind": "template",
"document_id": "019343cc-23fa-752b-887b-4cc1d02b5b11",
"page": 1,
"rect": {},
"label": "company_name",
"value": "Example Corp",
"normalized": "example",
"score": 1.0,
"model": {
"id": "0193650f-fa82-7126-8b74-c533df581cbc",
"sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"
},
"state": "open",
"template_id": "01935cde-0f12-798f-841f-7d1c8b907a36",
"pages_matched": 1,
"pages_total": 1,
"decided_by": "example",
"decided_at": "2026-11-20T09:30:00Z"
}
],
"next_cursor": "eyJpZCI6IjAxOTMifQ"
}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 |
| 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.
Accept suggestion
POST/api/v1/envelopes/{id}/suggestions/{s}/accept
Accept a suggestion
Records who accepted it and when. The action it suggests (applying a template, adding a field) is the person's own, through the ordinary endpoints. 409 CS-ML-0012 when already decided or its document left the envelope.
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissionenvelopes.write · OAuth scope envelopes:write
Path parameters
Object id (UUIDv7)
Suggestion id
Headers
Idempotency-KeystringUp to 255 printable ASCII characters; a replay within 24 hours returns the first response.
Returns
200 with a Suggestion object.
curl
curl -X POST https://sign.example.com/api/v1/envelopes/01934c50-3ca6-7776-81e5-c4aaecfe9962/suggestions/0193650f-fa82-7126-8b74-c533df581cbc/accept \
-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.acceptSuggestion({
id: "01934c50-3ca6-7776-81e5-c4aaecfe9962",
s: "0193650f-fa82-7126-8b74-c533df581cbc",
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.accept_suggestion(
id="01934c50-3ca6-7776-81e5-c4aaecfe9962",
s="0193650f-fa82-7126-8b74-c533df581cbc",
idempotency_key="order-1042",
){
"id": "0193650f-fa82-7126-8b74-c533df581cbc",
"kind": "template",
"document_id": "019343cc-23fa-752b-887b-4cc1d02b5b11",
"page": 1,
"rect": {},
"label": "company_name",
"value": "Example Corp",
"normalized": "example",
"score": 1.0,
"model": {
"id": "0193650f-fa82-7126-8b74-c533df581cbc",
"sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"
},
"state": "open",
"template_id": "01935cde-0f12-798f-841f-7d1c8b907a36",
"pages_matched": 1,
"pages_total": 1,
"decided_by": "example",
"decided_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 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) |
| 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.
Dismiss suggestion
POST/api/v1/envelopes/{id}/suggestions/{s}/dismiss
Dismiss a suggestion
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissionenvelopes.write · OAuth scope envelopes:write
Path parameters
Object id (UUIDv7)
Suggestion id
Headers
Idempotency-KeystringUp to 255 printable ASCII characters; a replay within 24 hours returns the first response.
Returns
200 with a Suggestion object.
curl
curl -X POST https://sign.example.com/api/v1/envelopes/01934c50-3ca6-7776-81e5-c4aaecfe9962/suggestions/0193650f-fa82-7126-8b74-c533df581cbc/dismiss \
-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.dismissSuggestion({
id: "01934c50-3ca6-7776-81e5-c4aaecfe9962",
s: "0193650f-fa82-7126-8b74-c533df581cbc",
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.dismiss_suggestion(
id="01934c50-3ca6-7776-81e5-c4aaecfe9962",
s="0193650f-fa82-7126-8b74-c533df581cbc",
idempotency_key="order-1042",
){
"id": "0193650f-fa82-7126-8b74-c533df581cbc",
"kind": "template",
"document_id": "019343cc-23fa-752b-887b-4cc1d02b5b11",
"page": 1,
"rect": {},
"label": "company_name",
"value": "Example Corp",
"normalized": "example",
"score": 1.0,
"model": {
"id": "0193650f-fa82-7126-8b74-c533df581cbc",
"sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"
},
"state": "open",
"template_id": "01935cde-0f12-798f-841f-7d1c8b907a36",
"pages_matched": 1,
"pages_total": 1,
"decided_by": "example",
"decided_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 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) |
| 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.