PenlyDoc
v0.1.1Send documents for e-signature, track who signed and save sealed PDFs with PenlyDoc.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_organisation Organisation
Shows which PenlyDoc organisation the API key belongs to, its default language and its sending limit.
list_templates List templates
Lists the organisation's templates: id, name, the roles to fill (e.g. "tenant", "landlord"), the data keys to fill, and whether the template is ready to send.
send_from_template Send from a template
Creates a document from a template: one person per role, values for its data keys. With send=true PenlyDoc immediately e-mails the people with delivery EMAIL; confirm the people and values with the user first. With send=false it creates a draft the user can review in the console. Use the same externalRef/idempotencyKey to safely retry.
| Parameter | Type | Description |
|---|---|---|
roles * | object | Keyed by role key from list_templates, e.g. {"tenant": {"name": "Mia Novak", "email": "mia@example.com"}} |
send * | boolean | true = e-mail people now; false = draft |
templateId * | string | |
data | object | Values for the template data keys, e.g. {"Rent": "950 EUR"} |
externalRef | string | Your own reference, e.g. an order or contract number |
idempotencyKey | string | |
message | string | |
title | string |
send_document Send a document
Uploads local files (PDF, or PNG/JPEG photos of pages, joined in order) and creates a document for signature. Signature boxes come from {{sig:1}}-style tags in the PDF or from the fields argument (points, top-left origin). With send=true PenlyDoc e-mails the people right away; confirm with the user first. Without tags or fields, use send=false and let the user place the boxes in the console (the result has a link).
| Parameter | Type | Description |
|---|---|---|
files * | array | Local file paths |
recipients * | array | |
send * | boolean | |
title * | string | |
data | object | Values for {{data:Key}} tags in the PDF |
expiresInDays | integer | |
externalRef | string | |
fields | array | |
message | string | |
signingOrder | string |
list_documents List documents
Lists documents sent for signature, newest first, with who has signed. Filter by status or by your externalRef.
| Parameter | Type | Description |
|---|---|---|
externalRef | string | |
limit | integer | |
status | string |
get_document Document status
Full status of one document: each person, whether they opened, signed or declined (with the reason), and when.
| Parameter | Type | Description |
|---|---|---|
id * | string |
get_history Document history
The hash-chained history of a document: every step with time, who and IP address, and whether the chain is intact.
| Parameter | Type | Description |
|---|---|---|
id * | string |
send_draft Send a draft
Sends a DRAFT document: PenlyDoc e-mails the first people to sign. Confirm with the user first.
| Parameter | Type | Description |
|---|---|---|
id * | string |
send_reminder Remind
E-mails a reminder now to everyone whose turn it is on this document. Confirm with the user first.
| Parameter | Type | Description |
|---|---|---|
id * | string |
cancel_document Cancel a document
Cancels (voids) a document that is still being signed. Signing links stop working and the people still to act are told by e-mail. This cannot be undone; confirm with the user first.
| Parameter | Type | Description |
|---|---|---|
id * | string | |
reason * | string |
create_signing_link Signing link for an embedded signer
Creates a one-hour signing link for a person with delivery EMBEDDED, to open in your own app or hand to that person. The link lets whoever has it sign as that person: share it only with them.
| Parameter | Type | Description |
|---|---|---|
id * | string | |
recipientId * | string | |
returnUrl | string |
download_signed_pdf Download the signed PDF
Saves the sealed, signed PDF (with the certificate of completion as last page) of a COMPLETED document to a local file.
| Parameter | Type | Description |
|---|---|---|
id * | string | |
saveTo * | string | Local path for the PDF, e.g. ./signed/contract.pdf |
verify_pdf Check a signed PDF
Checks a local signed PDF: is the seal intact, when was it sealed, who signed. Works for any PDF; nothing is stored. No API key needed.
| Parameter | Type | Description |
|---|---|---|
file * | string | Local path of the PDF |