Version 1.30.0
This page holds the whole reference. Use the search of your browser to find a request or a term.
Send a document and the people who sign it from your own software.
With "level": "esign" each signer reads the PDF and signs on the
Tvarka page, with no account and no app (simple e-signatures).
With "level": "qualified", the default, each signer signs with
Smart-ID (signing confirmations). Your own
application can also run the Smart-ID step itself
(headless signatures). When everyone has signed,
the signed file and its evidence come back to your system.
/v1/signings and MCP with level: esign. Each signer reads the PDF and signs on the Tvarka page; one charge per completed document (simple e-signatures)./v1/timestamps and MCP seal a file, a hash or a captured web page, also from a chosen place (timestamps).level: qualified. Each signer signs with Smart-ID on the Tvarka page, and the signed original comes back./v1/signatures lets your application show a Smart-ID QR code, an app link or the verification code. It requires the workspace headless entitlement.The OpenAPI below defines the supported public request fields. For hosted signing, CreateSigningRequest takes level: qualified (the default) or esign.
Send "level": "esign" to POST /v1/signings, or to
MCP send_document and request_signatures. Each signer
reads the PDF and signs on the Tvarka page, with no eID. One PDF per signing
(Office files and images are converted first), one or more signers, parallel
or sequential, link or email delivery. A signer has
email, name, language and one
authentication: email_link (default),
access_code with a code you give the signer
yourself, or sms with a phoneNumber when SMS codes
are switched on for your workspace. Tvarka keeps only a hash of the code and
never returns it.
{"level": "esign", "title": "Service agreement",
"document": {"fileToken": "<uploaded-file-token>"},
"signers": [{"email": "alex@example.com", "name": "Alex Example"},
{"email": "sam@example.com", "authentication": {"type": "access_code", "code": "<out-of-band-code>"}}],
"signingOrder": "sequential", "delivery": "link"}
The signers are fixed when the signing is created: to change them, cancel
and create a new one. Once everybody has signed, Tvarka seals the file with a
document timestamp; meanwhile the signing is pending with
processingStage: finalizing. When it is completed,
GET /v1/signings/{signingId}/document returns the sealed PDF and
GET /v1/signings/{signingId}/evidence the evidence ZIP (the
sealed PDF, the signing summary and the timestamp tokens). The signing names
its evidence.referenceCode and a public
verificationUrl. One charge per completed document, however
many signers; nothing is charged for a signing that does not complete.
Sign in to the Sign app at tvarka.eu, open Settings and click Show or Copy beside API key. Every active member of your business with Sign access has a key. It is prepared on first use and reused on later visits.
Send Authorization: Bearer <key> or
X-Api-Key: <key> for REST and MCP. tsk_live_
selects production; tsk_test_ selects sandbox. The key acts as
the named member in one business workspace. Keep it in your application's
secret store.
Manage access, under Settings, revokes or replaces a key and changes the webhook secret. Removing a member from the business revokes their API access.
Use a POSIX shell with curl, jq and Python 3. Set TVARKA_SIGN_KEY in your local environment to an existing tsk_test_ key. Paid API calls work only when there is enough money on the company's balance. Add money to the balance in Billing before your first call. Questions are answered at info@tvarka.eu.
Use a small synthetic unsigned PDF named example.pdf. This flow uploads it, creates a link-delivered request without sending an invitation email, simulates completion, polls and verifies the downloaded artifact. For a simple e-signature, add "level": "esign" to create.json. The signers then read and sign on the Tvarka page with no eID (simple e-signatures). Run each create step once; retain its JSON body, key and returned ID before retrying.
set -eu
# Use an existing sandbox key. Never put a production key in this example.
case "$TVARKA_SIGN_KEY" in tsk_test_*) ;; *) echo "Use a sandbox key"; exit 1;; esac
BASE=https://sign-api.tvarka.eu
# Save any small, unsigned PDF as example.pdf before running this block.
# Keep this idempotency key and create.json for a retry of THIS signing.
IDEMPOTENCY_KEY="quickstart-$(python3 -c 'import uuid; print(uuid.uuid4())')"
TOKEN=$(curl --fail-with-body -sS "$BASE/v1/files" \
-H "Authorization: Bearer $TVARKA_SIGN_KEY" \
-F 'file=@example.pdf;type=application/pdf' | jq -er '.fileToken')
jq -n --arg token "$TOKEN" '{title:"Sandbox example",document:{fileToken:$token},delivery:"link",signers:[{email:"reader@example.test",name:"Example Reader",language:"en"}]}' > create.json
curl --fail-with-body -sS "$BASE/v1/signings" \
-H "Authorization: Bearer $TVARKA_SIGN_KEY" -H 'Content-Type: application/json' \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" --data-binary @create.json > signing.json
SIGNING=$(jq -er '.signingId' signing.json)
curl --fail-with-body -sS "$BASE/v1/signings/$SIGNING/simulate" \
-H "Authorization: Bearer $TVARKA_SIGN_KEY" -H 'Content-Type: application/json' \
-d '{"action":"complete"}' > simulated.json
curl --fail-with-body -sS "$BASE/v1/signings/$SIGNING" \
-H "Authorization: Bearer $TVARKA_SIGN_KEY" > result.json
jq -e '.status == "completed" and .completionMode == "sandbox_simulation" and .document.sandbox == true and .document.signed == false' result.json
curl --fail-with-body -sS "$BASE/v1/signings/$SIGNING/document" \
-H "Authorization: Bearer $TVARKA_SIGN_KEY" -D artifact.headers -o sandbox-result.pdf
python3 - <<'PY'
import hashlib, json
from pathlib import Path
result = json.loads(Path('result.json').read_text())
assert 'x-tvarka-sandbox: simulated-artifact-no-signature' in Path('artifact.headers').read_text().lower()
assert hashlib.sha256(Path('sandbox-result.pdf').read_bytes()).hexdigest() == result['document']['sha256']
print('Downloaded sandbox artifact; hash matches. No signature was created.')
PY
Multipart upload accepts up to 100,000,000 bytes; inline/base64 requests accept up to 15 MiB of decoded document bytes. Reuse fileToken for large files. Sandbox completion exercises the lifecycle and download path; it creates no qualified signature. Production uses the real signer ceremony instead of /simulate.
Using the same sandbox environment, this example supplies a synthetic identity and digest. In production, hash the exact document and display the corresponding content to the signer; renderHash records what you showed. Every production key signs headless at once.
# Sandbox only; set HEADLESS_REQUEST_KEY once and retain it for retries.
HEADLESS_REQUEST_KEY="headless-$(python3 -c 'import uuid; print(uuid.uuid4())')"
DIGEST=$(python3 -c 'import hashlib,base64; print(base64.b64encode(hashlib.sha256(b"Synthetic document").digest()).decode())')
jq -n --arg hash "$DIGEST" '{method:"smart_id",signer:{personalCode:"39001010011"},document:{name:"Synthetic document",profile:"cades-detached",hash:{algorithm:"sha256",value:$hash}},display:{text:"Sandbox signing"},renderHash:{algorithm:"sha256",value:$hash}}' > headless.json
curl --fail-with-body -sS "$BASE/v1/signatures" \
-H "Authorization: Bearer $TVARKA_SIGN_KEY" -H 'Content-Type: application/json' \
-H "Idempotency-Key: $HEADLESS_REQUEST_KEY" --data-binary @headless.json > signature.json
SIGNATURE=$(jq -er '.id' signature.json)
curl --fail-with-body -sS "$BASE/v1/signatures/$SIGNATURE/simulate" \
-H "Authorization: Bearer $TVARKA_SIGN_KEY" -H 'Content-Type: application/json' \
-d '{"action":"sign"}'
curl --fail-with-body -sS "$BASE/v1/signatures/$SIGNATURE" \
-H "Authorization: Bearer $TVARKA_SIGN_KEY"
Set a public HTTPS webhookUrl when creating a signing. Verify X-Tvarka-Signature-V2 against the raw body with your integration's webhook secret. V2 authenticates the attempt timestamp as well as the body. The older X-Tvarka-Signature is a body-only HMAC retained for existing consumers.
import hashlib
import hmac
import time
def verify_tvarka_webhook(raw_body: bytes, signature_v2: str, secret: str) -> bool:
# Call before parsing JSON. Pass the exact request bytes and the integration's
# webhook secret, not its API key. Keep the server clock synchronized.
try:
fields = dict(part.split('=', 1) for part in signature_v2.split(','))
timestamp = fields['t']
if abs(time.time() - int(timestamp)) > 300:
return False
expected = hmac.new(secret.encode('utf-8'),
timestamp.encode('ascii') + b'.' + raw_body,
hashlib.sha256).hexdigest()
return hmac.compare_digest(expected, fields['v1'])
except (ValueError, KeyError, UnicodeError):
return False
After verification, parse the JSON and check the signing ID against your own records. Process each event once: use an atomic durable record keyed by the authenticated payload's signing/signature ID, event type and optional signer ID; the supplied X-Tvarka-Idempotency-Key is also stable across retries. Acknowledge with 2xx after durable acceptance, then process asynchronously. Redeliveries may arrive, and polling remains available.
Automation platforms register their own callback URL: POST /v1/webhooks with url and events answers 201 with a Location header, and DELETE on that location turns it off. The subscription receives the chosen events of every signing this integration creates, signed with the same webhook secret. Each delivery carries eventId (the idempotency key), webhookId and the whole signing, without ceremony links. Answer 410 to remove a subscription from the receiving side. GET /v1/me tests a key and names its workspace; the key may also be sent as X-Api-Key.
Idempotency-Key. After an uncertain response or pending 409, reconcile the original operation before creating another. Do not solve a timeout by minting a new key.Retry-After. Stop automatic retries for invalid input, authentication and billing refusals until corrected. Reconcile a timed-out mutation before repeating it.Retry-After. A failed webhook does not cancel the signing; poll its state.qualified and esign orders: CC copy recipients (role: cc, automatic signed-file copy email on completion, attached up to 10 MiB or a 30-day download link above that), pre-sign approvers (role: approver, guest review and approve/decline page with parked signing invitations until all approvers approve, zero billing on decline, signing.approver_approved and signing.approver_declined webhooks, processingStage: awaiting_approvers), and recipient groups ("any 1 of N" via group on role: signer, retracting remaining peers once one member signs and allowing shared visibleSignature.field within a group).visibleSignature ({"anchor": "...", "offsetX", "offsetY", "width", "height", "occurrence"}) for both qualified and esign signings and headless pades; visibleSignature and returnUrl opened to level: esign; embedded iframe signing via registered embedOrigin with origin-locked postMessage events; and self-serve webhook delivery logs & retry via GET /v1/webhooks/deliveries, POST /v1/webhooks/deliveries/{deliveryId}/retry and the Sign API logs screen. An embedded signing cannot ask for an access code or an SMS code (400). A retry of a delivery that is being sent right now, or of a removed subscription, answers 409..edoc and .scs beside ASiC-E and BDOC, ASiC-S, PDFs signed or certified elsewhere, and .p7m for every signer. A file that can never take a signature (an earlier signature broken, a password, a certification that forbids changes, a damaged file) is answered once with 422 document-not-signable and a stable code; do not retry it. A busy converter or validator is still 503 and may be retried.signer.personalCode on POST /v1/signatures is read by country, so an Estonian code locks a Smart-ID signature by QR code or app link. A pinned Estonian signer who signs with Mobile-ID types the phone number only. Return addresses can be registered in the API settings of the Tvarka Sign app.signers[].personalCode and templateRoles[].personalCode is read as a code of your company's country. Write PNOEE- or PNOLT- before the digits to name the country./v1/capture-monitors), bundles of up to 20 addresses (/v1/capture-bundles) and page.quality on every capture.page.locations (2 to 5 places), page.device, page.locale, the cookie test page.consent, page.recheckAt, webhookUrl, secondTimestamp and a WACZ archive of each capture.page.location, a web page captured from a chosen country, state, city or postal code, with the exit recorded in page.exit."qualified": false on POST /v1/timestamps for a simple timestamp of a document or a hash.POST /v1/timestamps, qualified timestamps of a document, a hash or a captured web page, with a public check page.document.file for the headless profiles xades-enveloped, cades-enveloping-xml, asice, edoc and jades.cades-enveloping, the PDF inside the signature as a .pdf.p7m.authority on a signing, one check of each signer against the company's register entry.GET /v1/form-requests, the status staff_pending and signers on a form request.product: forms on POST /v1/kiosk-sessions and channel: kiosk on POST /v1/form-requests./v1/form-templates, /v1/form-requests and the form_request.* webhooks.GET /v1/kiosks and /v1/kiosk-sessions for a drawn signature at the desk.TemplateVisibleSignature, a template's saved box checked by the sizes the Tvarka Sign app saves it with./v1/templates), templateId on POST /v1/signings and sending to a list (/v1/templates/{templateId}/bulk-sends, up to 500 rows).stamp-controls-not-enabled is retired.pades signature, with visibleSignature./v1/webhooks) for automation platforms, GET /v1/me, the externalId filter on GET /v1/signings and the X-Api-Key header.level: esign) with per-signer authentication, processingStage and GET /v1/signings/{signingId}/evidence; headless nextAction, Smart-ID QR code and app link (interaction) and the initiation_unknown outcome.POST /v1/conversions and conversion during document intake.pades profile.Hosted and headless Smart-ID/Mobile-ID signing share the certificate lookup and signing sequence. A known signing certificate needs one signing PIN. Where the configured certificate service supplies the certificate without a PIN, first use also needs one signing PIN; a new Smart-ID account may first need approval in the app. If the flow instead needs a certificate-capture confirmation, that comes before the document-signing confirmation: two PINs in total. Follow the current verification code, rather than assuming a fixed number of prompts.
For headless signing, render nextAction: show verificationCode for compare_code, ask the signer to confirm their Smart-ID account for confirm_certificate, show qrLink as a QR code for scan_qr, open appLink for open_app, otherwise wait. A transition from authentication to signing can emit signature.confirmation_required with the new code and the same nextAction.revision; replace the displayed code. Hosted pages handle this for you. The Smart-ID QR/app-link journey opens the Smart-ID app for the signer; follow the hosted page and app prompts. Card/USB and NFC signing use the card's signing PIN through the supported local client; any required identity step is presented in that client.
REST quickstart · Webhook verification · Recent changes
Connector overview and setup guides: tvarka.eu/integrations/.
Install Tvarka Sign on Google Workspace Marketplace for individual or domain-wide administrator deployment. Send active Google Docs™ or selected Google Drive™ files for simple e-signature or eIDAS qualified signature directly from the sidebar, track per-signer status, download the evidence ZIP, and save completed signed PDFs back into your Tvarka Sign folder in Google Drive™. Connect your workspace once with Tvarka sign-in (no API key pasted into the card). Setup guide: tvarka.eu/google-workspace/.
Install n8n-nodes-tvarka-sign in self-hosted n8n through Settings → Community Nodes. Follow the maintained installation and credential guide and import the example workflow.
The connector uploads files, creates hosted qualified-signing requests, reads or lists them, downloads results, cancels requests and sends reminders. Use your Sign API key. It does not start headless signatures or the web application's simple e-signatures. Request creation is not signature completion.
The example needs your credentials and an uploaded file token. It explicitly sends email invitations, waits between status checks and downloads only after completion. Replace its example inputs before running; protect execution data and ceremony links. Existing sandbox keys simulate and return a sandbox-marked download. n8n Cloud installation requires n8n verification; npm publication alone does not establish Cloud availability.
POST /v1/capture-monitors: give page.url,
everyHours (default 24), maxCaptures (default 30),
and optionally endsAt. The first capture starts now.
Pause or resume with PATCH /v1/capture-monitors/{monitorId}
and status: paused or active. Queued work continues;
missed intervals are skipped. Each completed capture has its normal price.
POST /v1/capture-bundles: give urls (1–20 distinct
addresses), optional shared page settings and externalId
for the matter. Read its state, then download /v1/capture-bundles/{bundleId}/file.
The ZIP includes a qualified timestamped manifest, an exhibit index, certificates
and archives. Failed URLs remain listed. Bundle assembly adds no fee.
Every capture reports page.quality, separate from job completion.
Challenge pages, login forms, partial captures and missing artifacts are explicit.
Quality findings are observations, not a guarantee of complete collection.
Use monitorId or bundleId to filter
GET /v1/timestamps. Corresponding MCP tools are listed under MCP server.
GET /v1/capture-monitors - List the latest 100 capture monitorsPOST /v1/capture-monitors - Capture a page now and on a bounded recurring scheduleGET /v1/capture-monitors/{monitorId} - Read a monitorPATCH /v1/capture-monitors/{monitorId} - Pause or resume a monitorGET /v1/capture-bundles - List the latest 100 case bundlesPOST /v1/capture-bundles - Queue a URL list as one evidence bundleGET /v1/capture-bundles/{bundleId} - Read a case bundle and its capture outcomesGET /v1/capture-bundles/{bundleId}/file - Download the sealed manifest and all evidence files in one ZIPGET /v1/signings - List signingsPOST /v1/signings - Create a signingGET /v1/signings/{signingId} - Get a signingPATCH /v1/signings/{signingId} - Update a live signing deadlineDELETE /v1/signings/{signingId} - Erase one signingPOST /v1/batches - Raise one signing per document for one set of partiesGET /v1/batches/{batchId} - Poll a batch and every signing in itGET /v1/templates - List the workspace's templatesPOST /v1/templates - Save a templateGET /v1/templates/{templateId} - Get a templateDELETE /v1/templates/{templateId} - Delete a templatePOST /v1/templates/{templateId}/bulk-sends - Send a template to a list, one signing per rowGET /v1/bulk-sends/{bulkSendId} - Follow a listGET /v1/form-templates - List the published form templatesGET /v1/form-requests - Read the workspace's form requestsPOST /v1/form-requests - Ask a person to fill and sign formsGET /v1/form-requests/{formRequestId} - Get a form requestPATCH /v1/form-requests/{formRequestId} - Move, resend or cancel a form requestGET /v1/form-requests/{formRequestId}/document - Download the signed documentGET /v1/form-requests/{formRequestId}/evidence - Download the evidence ZIPGET /v1/form-requests/{formRequestId}/attachments - List or download the attachmentsGET /v1/kiosks - List the workspace's tabletsPOST /v1/kiosk-sessions - Send a PDF to a tabletGET /v1/kiosk-sessions/{kioskSessionId} - Read a kiosk sessionPATCH /v1/kiosk-sessions/{kioskSessionId} - Assisted mode on or off, or cancelGET /v1/kiosk-sessions/{kioskSessionId}/document - Download the signed PDFPOST /v1/signings/{signingId}/archive - Raise the signed output to a long-term levelPOST /v1/files - Store a document once for reuse across signingsPOST /v1/conversions - Convert an Office file or image to PDF/A-2bGET /v1/files/{fileToken} - Inspect a stored fileDELETE /v1/files/{fileToken} - Purge a stored fileGET /v1/signings/{signingId}/comments - Read the notes on a signingPOST /v1/signings/{signingId}/comments - Add a note to a signingPOST /v1/erasure - Erase terminal signings in bulkPOST /v1/signings/{signingId}/cancel - Cancel a signingGET /v1/signings/{signingId}/document - Download the signed documentGET /v1/signings/{signingId}/evidence - Download the evidence of a simple e-signaturePOST /v1/signings/{signingId}/signers - Add a signer to a live signingPATCH /v1/signings/{signingId}/signers/{signerId} - Update a pending signer's allowed methodsDELETE /v1/signings/{signingId}/signers/{signerId} - Remove a pending signerPOST /v1/signings/{signingId}/signers/{signerId}/remind - Remind one signerPOST /v1/signings/{signingId}/simulate - Drive a sandbox signing to an outcomeGET /v1/me - Who the key acts forGET /v1/webhooks - List webhook subscriptionsPOST /v1/webhooks - Subscribe a URL to signing eventsGET /v1/webhooks/deliveries - List recent webhook deliveriesPOST /v1/webhooks/deliveries/{deliveryId}/retry - Retry a webhook deliveryGET /v1/webhooks/{webhookId} - Get a webhook subscriptionDELETE /v1/webhooks/{webhookId} - UnsubscribePOST /v1/signatures - Start a headless signatureGET /v1/signatures/{signatureId} - State, current step and code, resultPOST /v1/signatures/{signatureId}/cancel - Cancel a pending signatureGET /v1/signatures/{signatureId}/document - Download the signed artifactPOST /v1/signatures/{signatureId}/simulate - Drive a sandbox signature to an outcomePOST /v1/timestamps - Put a qualified timestamp on a document, a hash or a web pageGET /v1/timestamps - The latest timestamps, newest firstGET /v1/timestamps/{timestampId} - One timestamp or web page captureGET /v1/timestamps/{timestampId}/file - The timestamped PDF, the ASiC-S container or the tokenTvarka Sign 1.30.0, Streamable HTTP at
/mcp, registry name pro.tvarka/sign. Documents
come from the workspace vault, Markdown text, a link, a chat attachment or
base64. Authenticate with your API key (Authorization: Bearer or X-Api-Key) or OAuth 2.1 in supported MCP clients.
send_document - Send a document (an envelope) for signature: qualified (default, each signer uses their eID) or level "esign" (a simple e-signature on the page, no eID needed). Give the document exactly one way: markdown (Tvarka renders it to an A4 PDF; the first "# " heading becomes the title), pdfUrl (a public HTTPS link), pdfBase64, file (a file the user attached in the chat), or documentId (a document already in the vault). Each signer gets an email invitation. Set senderSigns to have the connected person sign first. Returns the signingId and each signer's status. Qualified: billed per signature on completion. esign: one charge per completed document.create_document - Render Markdown text to an A4 PDF and save it in the workspace vault without sending it. Returns the documentId of the saved document and a previewUrl (valid for one hour) where the user can check it.list_documents - Documents in the tenant workspace vault that can be sent for signing. Returns the documentId of each.request_signatures - Open a signing on a vault document for one or more signers, qualified (default) or level "esign". Returns a signing URL per signer, or emails them directly when delivery is "email". Qualified signers may take visibleSignature; the order snapshots shared workspace branding. Qualified: billed per signature on completion. esign: one charge per completed document.get_signing - The current state of one signing and each of its signers. Once completed, signedDocumentUrl downloads the signed document (valid for one hour).list_signings - Signings raised through this connection or key, newest first.add_signer - Add one more signer to a pending signing. In a sequential signing they sign last.remind_signer - Re-send one signer their invitation email. Limited to one reminder per signer per hour.cancel_signing - Retract every outstanding invitation and close the signing. Signatures already collected are untouched and remain valid.list_templates - Saved templates of the workspace: a document with its signer roles, signature type and order. Returns each templateId, its role names, and whether a role has a saved signer.send_from_template - Send a saved template in one step. Tvarka copies its document, keeps its signature type, order and signature placement, and invites one person per role. Every role without a saved signer needs an email. Returns the signingId and each signer's status. Billed like any signing.list_form_templates - Published Tvarka Formos templates of the workspace, each with its templateVersionId, its legal basis and its fields by semantic identifier, used to prefill a form request.send_forms - Create a Tvarka Formos request: the person gets a link by SMS (or email), fills the forms on their own phone and signs them once with Smart-ID or Mobile-ID. The link goes out three days before visitAt unless sendNow is true. Returns formRequestId and status. A completed request is billed as one e-signature document plus the qualified signature.get_form_request - Status, events and, once submitted, the values of a Tvarka Formos request.sign_now - The connected person signs a vault PDF now with a qualified signature, by Smart-ID or Mobile-ID on their own phone. Only the connected person can sign this way. Returns signatureId and a verificationCode. The person checks the code on the phone and enters the PIN. The signature status then reports progress. A second code can appear: the first step confirms who the person is, the second signs. Billed per signature once signed.get_signature - The state of one signature by the connected person: the current verification code (nextAction), and once signed, signedDocumentUrl to download the signed PDF (valid for one hour).timestamp_document - Put a qualified timestamp on a document. It proves the document existed in exactly this form at that moment. Give the document exactly one way: markdown (Tvarka renders it to an A4 PDF), fileUrl (a public HTTPS link), fileBase64 with fileName, file (a file the user attached in the chat), or documentId (a document already in the vault). A PDF comes back as the same PDF with the timestamp inside; any other file comes back in an ASiC-S container. Qualified by default; qualified false takes a cheaper non-qualified timestamp. Returns the code, verifyUrl (the public check page) and downloadUrl (valid for one hour). Billed per timestamp.certify_webpage - Open a public web page in a browser, capture how it looks now and seal the capture with a qualified timestamp. The result is a certificate PDF with the page address, the server answer, the time, a full screenshot, and the screenshot and the page HTML attached. Waits up to 25 seconds; a capture still running returns status pending with its timestampId. Give location to open the page from a chosen country, and optionally a state or a city and a ZIP, through a home internet connection there; the certificate then records the exit IP and where it is. locations (2 to 5 places) compares the same page side by side in one certificate. consent "reject" tests the cookie banner: the page as opened, then after clicking "reject all", with every tracker and cookie that still loads. device "mobile" opens it as a phone. recheckAt captures it again at that time, chained to this capture, with what changed. Every capture also records a video, the cookies and trackers that load before any click, the page's embedded data, who runs the domain, the site certificate, the latest earlier Internet Archive copy and a replayable web archive. Returns the code, verifyUrl and, once completed, downloadUrl (valid for one hour). Billed per completed capture.get_timestamp - The state of one timestamp or web page capture: status, the timestamp time, the code, verifyUrl, and once completed downloadUrl (valid for one hour).create_capture_monitor - Capture now and periodically. Normal per-capture prices; maxCaptures includes failed attempts. No overlapping runs. Defaults to every 24 hours and 30 captures.get_capture_monitor - Read the schedule, state and latest timestamp ID.update_capture_monitor - Pause future captures or resume from now. A queued capture continues; exhausted limits cannot be reset.create_capture_bundle - Queue 1 to 20 distinct URLs. Normal capture prices. Returns timestamp IDs; the finished ZIP includes a qualified timestamped manifest, numbered exhibits and failed capture outcomes.get_capture_bundle - Read capture outcomes and the authenticated ZIP download URL.PDF, and for a qualified signature also appendable ASiC-E containers
(.asice, .sce, .bdoc). A container is
signed in place.
Since v1.9.0, Office files and images (.docx, .doc,
.odt, .rtf, .xlsx, .xls,
.ods, .pptx, .odp, .txt,
.jpg, .jpeg, .png) are converted to PDF/A-2b
before signing, including file uploads and URL intake. The resulting PDF is signed;
the original is not retained. POST /v1/conversions returns just the PDF,
without storing or signing it. Conversion has no additional charge and uses Tvarka's
conversion service. An unreadable file returns 422; unavailable conversion returns 503.
Instead of one finished file you can send container and have
several PDFs composed into a new ASiC-E package that is signed once:
asice takes PDFs, first file is the main document, up to 20 files.
document and container are mutually exclusive.
A PDF may set flatten: true to freeze its form fields into
page content before signing. It fails closed: if any field has no appearance
Tvarka can draw faithfully, nothing is flattened and the response names those
fields, because a signed document that does not show what the signer approved
is worse than a refused request. Flattening allows up to 1,000 pages, 5,000
widgets, 10,000 annotations and 10,000 field-tree nodes, with field depth up
to 64. These limits are shared across a batch. A cooperative 20-second
processing budget stops work between PDF operations; it cannot interrupt an
individual parser or writer call. A refusal returns HTTP 400 with a
flatten error pointer. Split the batch or flatten before upload.
Send the signer to their ceremonyUrl in the current browser tab.
Add returnUrl and a random, session-bound returnState
(16-128 URL-safe ASCII characters) when creating the signing or batch.
Register your exact HTTPS return URL first: in the Tvarka Sign app open Settings, then API settings, and save it under Return address.
After signing or declining, the browser returns automatically with
state, signingId, signerId and
result. Results are signed, declined,
cancelled, expired, simulated (sandbox),
or returned when the signer chooses Return to your application.
Returning early leaves the signing request open. Match state to the browser session
and retrieve the signing through your backend or verify its webhook; URL parameters
are never proof of a signature. One signer's completion need not complete the order.
The hosted page retains its anti-framing protection. An iframe allows the surrounding page to overlay signing controls; same-tab navigation keeps document review in Tvarka.
Signers are parallel by default. signingOrder: sequential
releases them one at a time in the order you posted them, and the signers who
are waiting hold a link that answers 404 until their turn, so the order is
enforced and not merely unsent. A decline stops the workflow at the
decliner's turn: the signing settles declined and the signers
still waiting are cancelled. A signer added to a sequential signing joins
the end of the queue. A signer may carry
role: viewer: a recorded party who is never invited, never blocks
completion and is sent nothing - you hold the webhook and the download.
Two deadlines. expiresInDays is the hard one, the date the
signing dies. softDeadlineInDays is the date it is wanted by:
nothing expires, but every signer who can still sign is reminded once on the
day it passes.
Upload documents up to 100 MB (100,000,000 bytes) with multipart
POST /v1/files: one binary part named file, retaining
its filename extension. Use the returned fileToken in
document.fileToken. Existing JSON/base64 uploads remain available
up to 15 MiB decoded. Signed outputs may grow as signature evidence is added.
POST /v1/files stores a document once and returns a
fileToken a later signing may reference instead of carrying
base64 again. The bytes are copied into each signing, so deleting a file
never reaches into one that already used it.
POST /v1/batches raises one signing per document for one set
of parties. It is a grouping, not a single signing act: every document keeps
its own ceremony and its own signature, because the ID card produces one
signature per document. It buys one call and one identifier to poll, not one
PIN for many documents. Combined source bytes and combined prepared bytes
each have a 100,000,000-byte limit. Repeated file tokens count repeatedly.
Known oversized batches are refused before reading stored files; remote
downloads and stored-file reads use the remaining source-byte allowance.
Aggregate overflow returns HTTP 413; remote-download refusals return HTTP 400
with the document URL pointer. No signing is created on refusal.
POST /v1/signings/{signingId}/comments keeps your own notes
on a signing. Comments are not shown to signers.
A template is a saved PDF with its signer roles, the signature level, the
order and, per role, the visibleSignature placement (v1.14.0).
POST /v1/templates saves one from the same document intake a
signing takes; templates saved in the Tvarka Sign app are listed by
GET /v1/templates too. A role with an email has a
saved signer, invited on every send.
POST /v1/signings with templateId sends it. Name
each role in templateRoles
([{"roleName": "Klientas", "email": "...", "name": "..."}]); a
role with a saved signer may be left out. The document, level, order and
placement come from the template, so document,
signers, level and signingOrder are
refused beside it. A fault points into what you sent
(/templateRoles/0/email), or at /templateId when the
template's saved data fails. The signing carries templateId.
A role's saved box is checked by the sizes of the template's level, the
sizes the Tvarka Sign app saves it with: at least the default stamp
(103.18 x 35.72 pt) or e-signature mark (119.06 x 45.64 pt), at most three
times that (v1.14.1). A box sent in a request, POST /v1/templates
included, keeps the 148 x 52 pt minimum.
POST /v1/templates/{templateId}/bulk-sends sends one signing
per row, up to 500 rows. Every row is checked first, so one bad row refuses
the list and nothing is created. Then the rows go out in the background and
GET /v1/bulk-sends/{bulkSendId} reports each row's
signingId or error. A row cannot carry a personal code or an
access code; send those signings one by one. Each signing is billed as a
single one. MCP: list_templates, then
send_from_template.
A form request asks one person to fill one or more published form templates on their own phone and sign them once, as one document, with a qualified signature by Smart-ID or Mobile-ID (v1.16.0). Templates are built in the Tvarka Sign app (Formos) from the business's own PDF, or adopted from the statutory library; every published version carries its legal basis.
GET /v1/form-templates lists the published versions with their
fields, each under its semantic identifier (person.given_name).
POST /v1/form-requests takes templateVersionIds, the
respondent (phone for an SMS link and code, or
email), visitAt, prefill by semantic
identifier, an optional personalCode (only that person's signature
is accepted), externalId, webhookUrl and an
Idempotency-Key. The link goes out three days before the visit,
at sendAt, or at once with sendNow; one reminder
goes out a day before the visit, and the request expires a day after it.
GET /v1/form-requests/{formRequestId} returns the status, the
events and, once submitted, the values. PATCH with
visitAt, resend or cancel changes it
without a second submission. The signed PDF is at /document, an
evidence ZIP at /evidence and the attachments at
/attachments. Webhooks form_request.opened,
submitted, completed, cancelled,
expired and failed reach the request's
webhookUrl and the workspace's webhook subscriptions;
completed carries the values and the document link. MCP:
list_form_templates, send_forms,
get_form_request. A completed request is charged as one
e-signature document, plus the qualified signature and the SMS codes as on
any signing.
A tablet at your desk is registered in Tvarka Sign under Planšetės and paired with an eight-letter code. A person then reads a document on it and signs by hand (v1.15.0). The drawn signature is sealed into the PDF with its pen data, and the round gets a qualified document timestamp.
GET /v1/kiosks lists the tablets with paired,
online and busy. POST /v1/kiosk-sessions
takes kioskId, a title and one PDF in
document, through the same intake as a signing
(content, fileToken, url or
markdown). No link is mailed. signer.name may be left
empty, so the person types it on the tablet. signer.email receives
the signed PDF. identity: sms sends a one-time code to
signer.phone and checks it on the tablet first. A busy tablet
answers 409.
product: forms with formRequestId sends a Tvarka
Formos request to the tablet instead (v1.17.0). The person fills the form on
the tablet and signs it there. A staff signature place, such as the doctor's,
is signed next on the same tablet.
GET /v1/kiosk-sessions/{kioskSessionId} follows the session
from waiting to completed. PATCH with
assisted: true lets a staff member fill fields from a computer
while the tablet shows them, and status: cancelled withdraws the
document. Once completed, /document returns the signed PDF and
referenceCode its public check code. One round is charged once,
as one e-signature document (EUR 0.13, excluding VAT), however many
people sign on the tablet.
POST /v1/timestamps takes exactly one of document,
hash or page (v1.22.0). Each result has its own
reference code and a public check page in verifyUrl.
document: one of content (base64, up to 15 MiB),
fileToken from POST /v1/files, url (public
HTTPS), markdown (rendered to an A4 PDF) or documentId
(a vault document). A PDF comes back as the same PDF with a document timestamp
(output: pdf). Any other file comes back in an ASiC-S container
(output: asics). Answers 201.hash: {"algorithm": "sha256", "value": "<base64>"}
for a file you keep. The token comes back in token and as the file
(output: token). Answers 201.page: a public HTTPS address. The page is opened in a browser,
captured as a full-page screenshot with its HTML, and sealed in a certificate
PDF under one qualified timestamp. Answers 202 with
status: pending. Poll GET /v1/timestamps/{timestampId}
until completed or failed, or set
webhookUrl for timestamp.completed and
timestamp.failed.The place of capture. page.location opens the
page through a home internet connection in a chosen place (v1.24.0):
country (ISO code, such as DE), and optionally a
state or a city, and a zip. The exit
address and its place are recorded in page.exit and in the
certificate. When no exit in that country can be confirmed, the capture fails
with location_unavailable and is not charged.
page.locations compares 2 to 5 places in one certificate (v1.25.0).
page.device (desktop or mobile),
page.locale, page.consent: reject (the cookie test)
and page.recheckAt (a recapture with what changed) are optional.
secondTimestamp: true adds a second qualified timestamp from
another authority. language sets the certificate language.
{"page": {"url": "https://example.com/offer", "location": {"country": "DE", "city": "Berlin"}},
"title": "Offer page", "externalId": "case-118"}
Qualified or simple. Every timestamp is qualified by
default. Send "qualified": false for a document or a hash to take
a simple timestamp (v1.23.0). A web page capture is always qualified.
GET /v1/timestamps lists the latest ones, filtered by
source, monitorId or bundleId.
GET /v1/timestamps/{timestampId}/file returns the PDF, the
ASiC-S container or the token. MCP: timestamp_document,
certify_webpage and get_timestamp.
Prices, one charge per completed timestamp, excluding VAT:
qualified timestamp or web page capture EUR 0.19, simple timestamp
EUR 0.13, a capture from a chosen place EUR 0.49 per place,
the cookie test EUR 0.99. A failed capture is not charged.
503 timestamp-unavailable means no authority answered and nothing
was charged. Retry it.
POST /v1/erasure erases terminal signings and headless signature
files in pages. Set limit from 1 to 100 (default 20), and optionally
before to an ISO datetime. While hasMore is true, pass
nextCursor as the next request's cursor. The cursor
keeps the same client and cutoff; omit before on continuation or
keep its original value. A page finishes its current resource and returns
after ten seconds of processing; an individual storage call still has its
own timeout. failedResources identifies failures, which remain
retryable. Finish the pages, then retry without a cursor to revisit failures.
hasMore: false ends the traversal; it does not mean failures were
erased. In-flight signings and pre-existing shared vault documents remain intact.
POST /v1/signings/{signingId}/archive raises signed output
to a long-term level: PDF to PAdES-B-LT, ASiC-E to XAdES-LT, embedding the
chain and revocation evidence so the signature still validates once the
certificate has expired. ASiC-E signing already reaches XAdES-LT on its own,
so this is for output that arrived at T.
RFC 9457 problem documents, and request-body validation collects rather
than failing fast: a body with three bad fields comes back once, as
validation-failed, with an errors array of
{"pointer": "/signers/0/email", "detail": "..."}. The pointer is
an RFC 6901 JSON Pointer into what you sent, so a fault maps back to an input
without parsing prose.
A temporary webhook-address lookup failure returns
503 callback-resolution-unavailable with Retry-After.
Wait, then retry the same request with the same idempotency key. This refusal
happens before resource creation. An ambiguous setup failure still requires
reconciliation; keep its key and contact support.
A tsk_test_ key drives the whole lifecycle, including
POST /v1/signings/{signingId}/simulate. A simulated completion
returns a real downloadable file, so your download, hashing and storage code
runs for real without a card in anyone's hand. The sandbox never adds a
signature: an unsigned PDF comes back as your own pages with a banner saying
it is not signed, and anything posted already signed comes back
byte-identical, because those signatures are somebody else's and are not ours
to disturb. Every artifact is flagged sandbox in the response, the
webhook and an X-Tvarka-Sandbox header. Tvarka issues no test
signatures.
POST /v1/signatures signs one document for one signer with
Smart-ID or Mobile-ID, with no hosted page, no invitation and no email. Your
application shows the verification code and the signer confirms on their
phone. The confirmation sequence depends on the
known certificate and configured certificate service. When an identity step
comes first, the document-signing step follows with a new code: step
moves from authentication to signing and a
signature.confirmation_required webhook carries the new code.
Name a profile: cades-detached signs your SHA-256 hash and
returns a detached .p7s at CAdES-BASELINE-LT, with the
certificate chains and revocation data embedded;
pades signs a PDF and
returns it signed at PAdES-BASELINE-LT, added in an incremental update;
cades-enveloping signs a PDF and returns it inside the signature,
as a .pdf.p7m at CAdES-BASELINE-LT (v1.20.0). Since v1.21.0
a whole file goes in document.file:
xades-enveloped returns your XML with the signature inside, at
XAdES-BASELINE-LT, as e-invoices and XML filings carry it;
cades-enveloping-xml returns the XML inside the signature, as an
.xml.p7m; asice and edoc put any file in
an ASiC-E container at XAdES-BASELINE-LT, named .asice or the
Latvian .edoc; jades signs a JSON payload into a
JAdES-BASELINE-LT signature (JWS JSON serialization, payload attached). A
visible stamp on a pades signature is your choice, as in Tvarka Sign: the signer's name from the
signing certificate and the signing time, with the workspace logo where it
has one. Send "visibleSignature": true for the default corner,
or an object with exact coordinates or an existing empty signature field, in
the same shape as for a hosted signer. Without it the signature stays
invisible. The stamp speaks the
language of your company's country and names Tvarka.eu. Send renderHash, the digest of what you
showed the signer; it is kept as evidence with the display text, the input
digest, the codes and the signing certificate. Every production key signs
headless at once. One signature is
billed on success; declined, expired, failed and cancelled ones are free.
Smart-ID by QR code or app link: send "interaction": {"type": "qr"}
or {"type": "app_link"} (Smart-ID only). No personal code is
needed. Show nextAction.qrLink as a QR code and fetch a
fresh one every second. app_link needs a registered
returnUrl and a returnState; the Smart-ID app brings
the signer back to it with state and signatureId.
Check that state belongs to the browser that started; the result
itself comes only from polling or the webhook.
A start that may have reached the signer's phone without an answer is never
sent again: the signature fails as initiation_unknown and is not
billed. Ask the signer to dismiss any prompt and retry after two minutes. A
503 with Retry-After means nothing started: retry
with the same Idempotency-Key.
Validate electronic signatures and retrieve advisory validation results for integration into your document workflows.
The API uses the same prices as the Sign app. Signatures are billed to your business. Pay for what you use. No subscriptions.
Simple e-signature: 0.13 EUR per completed document, excluding VAT, however many signers. An SMS code costs EUR 0.01, excluding VAT.
| What | Price |
|---|---|
| Qualified signature | EUR 0.19 |
| Qualified timestamp, or web page capture | EUR 0.19 |
| Web page capture from a chosen country, state, city or ZIP, per place | EUR 0.49 |
| Cookie test: the page as opened, then after "reject all" | EUR 0.99 |
| Non-qualified timestamp | EUR 0.13 |
The qualified timestamp of a signature is included. From 1 000 qualified signatures a month the price is agreed individually, and an agreed tariff takes precedence. Sandbox is free. Before the first paid signing, the business adds 5.00 EUR to its balance by card in the Sign app. The whole amount stays its balance. Full pricing.
Questions: info@tvarka.eu