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 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

  • idstringRequired

    Object id (UUIDv7)

  • sha256stringRequired

    The attachment's SHA-256, 64 lower-case hex digits (an attachment field's value)

    matches ^[0-9a-f]{64}$

Returns

200 The file with application/pdf.

GET/api/v1/envelopes/{id}/attachments/{sha256}

curl

curl https://sign.example.com/api/v1/envelopes/01934c50-3ca6-7776-81e5-c4aaecfe9962/attachments/9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08 \
  -H "Authorization: Bearer $OPENSEAL_API_KEY" \
  -o download.pdf

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

The file itself (application/pdf), not JSON.

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
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.

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

  • idstringRequired

    Object id (UUIDv7)

Returns

200 PDF with application/pdf.

GET/api/v1/envelopes/{id}/documents/combined

curl

curl https://sign.example.com/api/v1/envelopes/01934c50-3ca6-7776-81e5-c4aaecfe9962/documents/combined \
  -H "Authorization: Bearer $OPENSEAL_API_KEY" \
  -o download.pdf

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

The file itself (application/pdf), not JSON.

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
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.

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

  • idstringRequired

    Object id (UUIDv7)

Returns

200 with a DocumentList object.

GET/api/v1/envelopes/{id}/documents

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

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

  • idstringRequired

    Object id (UUIDv7)

Query parameters

  • namestring

    The document's name, when the body is the file itself

Headers

  • Up to 255 printable ASCII characters; a replay within 24 hours returns the first response.

    at most 255 characters

Request body

Content type application/json · required

  • namestringRequired

    at most 255 characters

  • content_base64stringRequired

    At most 50 MiB decoded

Returns

201 with a Document object.

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

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",
    },
)
Response201
{
  "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
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.

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

  • idstringRequired

    Object id (UUIDv7)

  • docstringRequired

    Document id

Returns

200 with a Document object.

GET/api/v1/envelopes/{id}/documents/{doc}

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

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

  • idstringRequired

    Object id (UUIDv7)

  • docstringRequired

    Document id

Headers

  • If-MatchstringRequired

    The envelope's ETag as read ("v<version>"); a stale one is 412 CS-WF-0002, none is 428 CS-API-0008.

Returns

204 Done with no body.

DELETE/api/v1/envelopes/{id}/documents/{doc}

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\"",
)
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)
412CS-WF-0002The If-Match version is stale: read the object again
428CS-API-0008If-Match is required and absent
429CS-API-0003Rate limited: wait for Retry-After seconds

Every error is an RFC 9457 problem with a stable code and a request_id; see Errors.

Get 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

  • idstringRequired

    Object id (UUIDv7)

  • docstringRequired

    Document id

Query parameters

  • versionstring

    current: 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; the X-OpenSeal-Document header says sealed or preview.

    One of original, normalized, sealed, current · Default normalized

Returns

200 PDF (or, for the original of a converted upload, the Word document) with application/pdf.

GET/api/v1/envelopes/{id}/documents/{doc}/content

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.pdf

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

The file itself (application/pdf), not JSON.

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
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.

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

  • idstringRequired

    Object id (UUIDv7)

  • docstringRequired

    Document id

Headers

  • Up to 255 printable ASCII characters; a replay within 24 hours returns the first response.

    at most 255 characters

Returns

200 with a DetectedFields object.

POST/api/v1/envelopes/{id}/documents/{doc}/detect-fields

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",
)
Response200
{
  "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
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)
429CS-API-0003Rate limited: wait for Retry-After seconds

Every error is an RFC 9457 problem with a stable code and a request_id; see Errors.

Get 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

  • idstringRequired

    Object id (UUIDv7)

  • docstringRequired

    Document id

Returns

200 with a Analysis object.

GET/api/v1/envelopes/{id}/documents/{doc}/analysis

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

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

  • idstringRequired

    Object id (UUIDv7)

  • docstringRequired

    Document id

Headers

  • Up to 255 printable ASCII characters; a replay within 24 hours returns the first response.

    at most 255 characters

Returns

202 Accepted with a Analysis object.

POST/api/v1/envelopes/{id}/documents/{doc}/analysis

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

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

  • idstringRequired

    Object id (UUIDv7)

Query parameters

  • kindstring

    One of template, entity, personal_data

  • statestring

    One of open, accepted, dismissed

  • cursorstring
  • limitinteger

    minimum 1 · maximum 200 · Default 50

Returns

200 with a SuggestionPage object.

GET/api/v1/envelopes/{id}/suggestions

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

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

  • idstringRequired

    Object id (UUIDv7)

  • sstringRequired

    Suggestion id

Headers

  • Up to 255 printable ASCII characters; a replay within 24 hours returns the first response.

    at most 255 characters

Returns

200 with a Suggestion object.

POST/api/v1/envelopes/{id}/suggestions/{s}/accept

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

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

  • idstringRequired

    Object id (UUIDv7)

  • sstringRequired

    Suggestion id

Headers

  • Up to 255 printable ASCII characters; a replay within 24 hours returns the first response.

    at most 255 characters

Returns

200 with a Suggestion object.

POST/api/v1/envelopes/{id}/suggestions/{s}/dismiss

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