Core resources

Audit and evidence

The envelope's hash-chained audit trail, the certificate of completion, and the anchor proof that ties the trail's head to a time-stamped daily anchor. Each can be checked offline.

Get audit trail

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

Hash-chained audit events, re-verified on read

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

Permissionaudit.read · OAuth scope audit:read

Path parameters

  • idstringRequired

    Object id (UUIDv7)

Returns

200 with a AuditEvents object.

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

curl

curl https://sign.example.com/api/v1/envelopes/01934c50-3ca6-7776-81e5-c4aaecfe9962/audit \
  -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.getAudit({
  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_audit(
    id="01934c50-3ca6-7776-81e5-c4aaecfe9962",
)
Response200
{
  "items": [
    {
      "seq": 12,
      "type": "signature",
      "at": "2026-11-20T09:30:00Z",
      "hash": "example",
      "prev": "example",
      "event": {}
    }
  ],
  "chain_head": "example"
}
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 audit.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 anchor proof

GET/api/v1/envelopes/{id}/anchor-proof

The anchor proof of the envelope's latest anchored chain head

The proof file (openseal.anchor-proof v1, canonical JSON) of the envelope's latest audit chain head that the daily anchor job anchored: the head, its leaf index and audit path, and that day's anchor with its RFC 3161 token. Check it offline with openseal anchor verify or the Verify page. 404 CS-API-0017 while no head of the envelope is anchored yet (the job runs after each UTC day closes). A read of evidence (security log); not recorded in the chain.

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 The proof file, as an attachment named anchor-proof.json with a AnchorProof object.

GET/api/v1/envelopes/{id}/anchor-proof

curl

curl https://sign.example.com/api/v1/envelopes/01934c50-3ca6-7776-81e5-c4aaecfe9962/anchor-proof \
  -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.getAnchorProof({
  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_anchor_proof(
    id="01934c50-3ca6-7776-81e5-c4aaecfe9962",
)
Response200
{
  "format": "openseal.anchor-proof",
  "v": 1,
  "envelope_id": "01934c50-3ca6-7776-81e5-c4aaecfe9962",
  "seq": 12,
  "head": "example",
  "leaf_index": 1,
  "path": [
    "example"
  ],
  "anchor": {
    "format": "openseal.anchor",
    "v": 1,
    "id": "019379bf-b0e2-7ba7-86b9-d447606ddbcc",
    "period": "2026-11-20",
    "tree_size": 1,
    "root": "example",
    "statement": "example",
    "tsa_time": "2026-11-20T09:30:00Z",
    "timestamp_token": "example"
  }
}
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 certificate

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

Certificate of completion PDF (made by the seal job), or a declined, voided or expired envelope's envelope certificate

A completed envelope's certificate of completion. A declined, voided or expired envelope's envelope certificate says how it ended and never claims completion; the worker makes and seals it when the envelope ends. 409 CS-API-0009 before either exists (an ended envelope without one asks the worker for it then).

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}/certificate

curl

curl https://sign.example.com/api/v1/envelopes/01934c50-3ca6-7776-81e5-c4aaecfe9962/certificate \
  -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.getCertificate({
  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_certificate(
    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.

Get evidence package

GET/api/v1/envelopes/{id}/evidence-package

One ZIP with everything that proves the agreement, recorded as envelope.exported

For an envelope that is over (completed, or declined, voided or expired): a ZIP of stored entries holding manifest.json, each document as sealed (as it ended, with the "not signed" banner, for one that ended without completing) under documents/, certificate.pdf (the certificate of completion, or the envelope certificate of UXW-30) and audit-trail.json (the events as GET …/audit gives them, with chain_head). The manifest (format: openseal.evidence-package, version: 1) names every other entry with its sha256 and size, and the chain head. The export is recorded first as envelope.exported, so the trail in the package ends with it. In flight, a draft, or purged is 409 CS-WF-0001; a certificate not made yet 409 CS-API-0009 (an ended envelope asks the worker for it, as GET …/certificate does).

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 ZIP with application/zip.

GET/api/v1/envelopes/{id}/evidence-package

curl

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

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.getEvidencePackage({
  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_evidence_package(
    id="01934c50-3ca6-7776-81e5-c4aaecfe9962",
)
Response200

The file itself (application/zip), 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.