Tvarka API docs – everything on one page

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.

Choose your integration

The OpenAPI below defines the supported public request fields. For hosted signing, CreateSigningRequest takes level: qualified (the default) or esign.

Simple e-signatures

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.

Your API key

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.

REST sandbox quickstart

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.

Headless sandbox example

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"

Verify webhooks before trusting them

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.

Webhook subscriptions

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.

Retries, redirects and credentials

Recent contract changes

Signing confirmations

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

Integrations: Google Workspace, MCP and n8n

Connector overview and setup guides: tvarka.eu/integrations/.

Google Workspace (Google Docs and Google Drive)

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

n8n integration

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.

Contract

Web capture collections

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.

Endpoints

MCP server

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

Documents you can post

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.

Same-tab signing and automatic return

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.

Workflow

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.

Batches and reusable files

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.

Templates and bulk send

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.

Tvarka Formos: forms filled and signed on the person's phone

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.

Tablet sessions

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.

Timestamps and web page capture

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.

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.

Erasure

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.

Long-term signatures

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.

Errors

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.

Sandbox

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.

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

Signature validation

Validate electronic signatures and retrieve advisory validation results for integration into your document workflows.

Pricing

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.

EUR each, excluding VAT
WhatPrice
Qualified signatureEUR 0.19
Qualified timestamp, or web page captureEUR 0.19
Web page capture from a chosen country, state, city or ZIP, per placeEUR 0.49
Cookie test: the page as opened, then after "reject all"EUR 0.99
Non-qualified timestampEUR 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