On this page
Signing API¶
The signing server exposes sender, recipient and browser session routes under /v1/signing. Start the local signing pilot to call them on http://127.0.0.1:8091.
Sender and recipient routes¶
Sender routes accept a configured project key or a browser panel session. Recipient routes use the token after the invitation URL fragment as an authorization bearer. Opening the page and reading the agreement are separate from the submission that records consent.
| Method and path | Purpose |
|---|---|
GET /v1/signing/templates |
List template IDs, SHA-256 digests and textFields for simple text bindings. A null field list indicates structured data. |
POST /v1/signing/revisions |
Prepare from templateId, templateSha256 and data. Send an Idempotency-Key. The response includes revisionId, pdfSha256, dimensions and field positions. |
GET /v1/signing/revisions/{revisionId}/pdf |
Download the exact review bytes. |
POST /v1/signing/envelopes |
Open an envelope with revisionId, pdfSha256 and one email in recipients for each template signer, in order. |
GET /v1/signing/envelopes/{envelopeId} |
Read agreement and mail status, the manual invitation when configured, and final digests. |
POST /v1/signing/envelopes/{envelopeId}/revoke |
Revoke an open request. |
GET /v1/signing/envelopes/{envelopeId}/{pdf,evidence} |
Download either published artifact as the sender. |
GET /v1/signing/invitation |
Retrieve the review metadata, consent and prior acceptance, if applicable. |
POST /v1/signing/invitation |
Send the review ID and hash, action, consent, name, prior acceptance ID and initials when the signer has initials boxes. Follow the exact request shape in the browser client. |
GET /v1/signing/invitation/{original,pdf,evidence} |
Download the original review, final PDF or CMS evidence as the recipient. |
The pilot stores PDFs and evidence in PostgreSQL. The final acceptance and closing job are committed together. Workers may retry the seal after a failed attempt. Only the worker with the current lease can publish, and publication commits the PDF, evidence and status together.
Browser panel sessions¶
These routes start and end the sender panel's browser session. See open the panel from your application for the flow.
| Method and path | Purpose |
|---|---|
POST /v1/signing/panel-links |
Called by your backend with the project's secret key. Returns 201 with a one-time panel url and expiresIn in seconds. |
POST /v1/signing/panel-links/inspect |
Called by the panel with {"ticket": ...} from the link fragment. Returns the project name and leaves the ticket unused. |
POST /v1/signing/panel-session |
Exchange the ticket in {"ticket": ...}, or a project key in Authorization, for the session cookie. A ticket works once. Returns the project name. |
GET /v1/signing/panel-session |
Return the project for the current session cookie. |
DELETE /v1/signing/panel-session |
End the current session and clear the cookie. |
Inspecting a link, opening a session and ending it require a request from the panel origin. Other origins get 403 with panel_origin_required. Set PRESSJET_SIGNING_PANEL_ORIGIN when a reverse proxy serves the panel.
Acceptance receipts and signed evidence¶
Every acceptance records the signer name, invited email, participant ID, role, consent,
document hash and acceptedAt from the database clock in UTC. New receipts also include
ipAddress, ipAddressSource and userAgent. The user agent is the value reported by the
client, up to 512 bytes. An unavailable user agent is recorded as null.
The server records ipAddress only when it can vouch for its source. A connection from a
non-loopback address is recorded as that address, with ipAddressSource connection. A
connection from loopback, which is where a reverse proxy normally sits, has no address of its
own, so without more it records ipAddress: null and ipAddressSource: "unavailable".
When a reverse proxy runs in front of the signing service, set
PRESSJET_SIGNING_TRUSTED_PROXY_IP to the exact loopback IPv4 address it uses to connect, and
PRESSJET_SIGNING_PROXY_SECRET to a secret of at least 32 characters (the service refuses to
start with one and not the other). Configure that proxy to add X-Pressjet-Proxy-Secret with the
secret, and to overwrite X-Real-IP with one client IPv4 or IPv6 address. Use a proxy source
address controlled by the operator. The server accepts the forwarded address only from that
configured peer and only with a matching secret (compared in constant time), and records the
source as trusted-proxy. A missing or wrong secret, or an absent or invalid X-Real-IP,
produces null and unavailable, and rate limiting treats the request as having no client
address.
The sender and the invited signers can download the completed CMS evidence with all receipts. Identical retries return the first recorded receipt. Earlier receipts may lack the network and browser fields.
Limits¶
Each client address, and each credential sent in Authorization, may make
PRESSJET_SIGNING_RATE_LIMIT_PER_MINUTE requests a minute (default 600), with bursts of
PRESSJET_SIGNING_RATE_LIMIT_BURST (default a sixth of that). Static pages and assets are not
counted. A request over either allowance gets 429 with rate_limited and Retry-After. The
client address is the one described above: with PRESSJET_SIGNING_TRUSTED_PROXY_IP set, the
X-Real-IP the proxy sends with its secret. Requests whose client address is the machine's own (127.0.0.1,
::1 or 127.0.1.1) share one allowance ten times the size of an address's. Without
PRESSJET_SIGNING_TRUSTED_PROXY_IP every request through a reverse proxy arrives from loopback
and shares that allowance, so the service warns at start when it is not set. CORS preflight
requests are not counted.
A request that cannot get a database connection within two seconds gets 503 with
database_unavailable and Retry-After: 1. The signing service applies the same connection settings as the main
server (PRESSJET_MAX_CONNECTIONS, PRESSJET_MAX_CONNECTIONS_PER_ADDRESS,
PRESSJET_FIRST_BYTE_SECONDS and PRESSJET_HEADER_TIMEOUT_MS, described in
self-hosting). Connections from the trusted proxy and from
PRESSJET_PROXY_ADDRESSES are not counted per address.