For software vendors

Developer documentation

How to add “send securely” and “request documents” with Slayper to your software. Files are encrypted in the Slayper window on your user’s device. Your software never sees files, file names, links or keys.

1. Overview

Your software gets three things:

Your software only learns facts about the transfer: recipient addresses, times, status, number and size of files, a rough browser name. It never receives contents, file names, messages, links or keys, and the Slayper server does not know them either.

  1. Your user clicks “Send securely” in your software.
  2. Your server signs a token for the record, your page opens the Slayper window with it.
  3. Your user signs in once with their Slayper account, picks files and sends. The recipient gets an email with a link.
  4. Slayper reports every step to your server via webhook, you show it on the record.

2. Access and environments

We set up your access after your request via the contact form. You receive:

ItemMeaning
Integration IDFor example legal-software. Part of every link token and of the window call.
SecretSigns the token and verifies webhooks. Store it on your server only. We rotate it immediately on request.
Allowed originsThe addresses of your interface that may embed the window, e.g. https://app.your-software.com. No path, always https (in the sandbox also http://localhost).
Webhook addressThe https address of your server that receives the events.
Test accountsSlayper accounts on the Pro plan for the sandbox.
EnvironmentAddressNote
Sandboxhttps://sandbox.slayper.comSeparate database. No email leaves the server: codes and link emails appear in the test inbox https://sandbox.slayper.com/postfach/. Transfers and emails are deleted after 7 days.
Productionhttps://transfer.slayper.comAfter the review (section 9) you get your own integration with a new secret.

3. Quick start

  1. Request a test access, receive integration ID, secret and test account.
  2. Build an endpoint on your server that signs the link token for a record (section 4).
  3. Load slayper-einbetten.js in your interface and call Slayper.open() (section 5).
  4. Build a webhook endpoint, verify the signature and store the events on the record (section 6).
  5. Send with the test account, open the link from the test inbox, download, and check the events in your software.

Ready-made examples in Node.js, Python, PHP, C# and Java and a runnable example project (“Client file”) come with your test access. We test all examples automatically against the Slayper server.

4. Link token

The token tells Slayper which record in your software a transfer belongs to. Your server creates a fresh one every time the window opens. Slayper verifies the signature when sending or requesting and includes the reference in every webhook.

Format: v1.<payload>.<signature>

FieldRequiredContent
ayesYour integration ID
ryesReference of the record in your software, 4 to 200 characters from A–Z a–z 0–9 _ : . -, e.g. case:2026-114
xyesExpiry in Unix seconds, at most 24 hours ahead. Recommended: 2 hours.
dnoYour own data as a JSON object (keep it small)
import { createHmac, timingSafeEqual } from 'node:crypto';

const INFO = 'slayper v1 zuordnung';
const REFERENCE = /^[A-Za-z0-9_:.-]{4,200}$/;
const b64url = (buf) => Buffer.from(buf).toString('base64url');

/**
 * Signed link token: tells Slayper which record in your software a transfer belongs to.
 * secret: integration secret, integration: your integration ID, reference: your record ID (4–200 characters
 * A–Z a–z 0–9 _ : . -), validSeconds: at most 86400 (24 h), data: optional object that is passed back to you.
 */
export function signToken(secret, integration, reference, validSeconds = 7200, data) {
  if (!REFERENCE.test(reference)) throw new Error('reference: 4–200 characters A–Z a–z 0–9 _ : . -');
  if (!(validSeconds > 0 && validSeconds <= 86400)) throw new Error('validSeconds: 1 to 86400');
  const claims = { a: integration, r: reference, x: Math.floor(Date.now() / 1000) + Math.floor(validSeconds) };
  if (data) claims.d = data;
  const payload = b64url(JSON.stringify(claims));
  const mac = createHmac('sha256', secret).update(INFO).update(Buffer.from([0])).update(payload).digest();
  return `v1.${payload}.${b64url(mac)}`;
}
Always sign the token on your server. The secret never belongs in the browser, an app or a repository.

Errors when sending: “Invalid link to the business software” (wrong signature, missing field, invalid reference, more than 24 hours), “The link to the business software has expired” (window open too long, open it again) and “Unknown business software” (wrong or locked integration ID).

5. Slayper window

With the browser library (recommended)

The library slayper-einbetten.js opens the window as an overlay or inside an element of your page, checks origin and source of every message and adjusts the height. It has no dependencies.

<script src="https://transfer.slayper.com/einbetten/slayper-einbetten.js"></script>
<script>
  async function sendSecurely(recordId, email) {
    // 1. Have your server sign the token (never in the browser)
    const { token } = await fetch('/slayper/token?record=' + recordId, { method: 'POST' }).then((r) => r.json());
    // 2. Open the window
    Slayper.open({
      integration: 'your-integration',
      mode: 'send',              // or 'request' to request documents
      token,
      recipients: [email],
      reference: { type: 'Case', text: recordId },
      language: 'en',
      // service: 'https://sandbox.slayper.com',   // in the sandbox
    })
      .on('sent', (r) => console.log('sent', r.transfer, r.expires))
      .on('closed', () => reloadRecord(recordId));
  }
</script>
OptionContent
integrationYour integration ID (required)
mode'send' (send securely) or 'request' (request documents)
tokenLink token from your server (required)
recipientsRecipient addresses, prefilled and editable in the window (up to 50)
referenceReference, e.g. { type: 'Case', text: '2026-114' }. Shown encrypted in the transfer and in the recipient’s email, not in webhooks.
language'de' or 'en', otherwise the browser language
serviceService address, default https://transfer.slayper.com, sandbox https://sandbox.slayper.com
containerElement or CSS selector for the window. Without it, the window opens as an overlay.
theme'dark' for dark mode
closeOnDonefalse: window stays open after “Close” (default: it closes)
EventWhenValues
readyWindow loaded
statusSign-in stateconnected, account (name, email), limit
sentTransfer senttransfer, expires, recipients, files (count)
requestedDocuments requestedrequest, expires, recipients
doneUser closed the window
cancelledUser cancelled
errorError in the windowmessage
closedWindow removed (also after close())

Browser events are meant for your interface. Your data should rely on webhooks: they are signed and arrive even if the user has already left the page.

Without the library

Embed <service>/einbetten/ as an iframe with the parameters anbindung (integration ID), modus (senden or anfordern), kennung (token), empfaenger (comma-separated), bezug, bezugArt, sprache, herkunft (your origin) and optionally thema=dunkel. The window posts messages with quelle: 'slayper' and typ: bereit, status, hoehe, gesendet, angefordert, fertig, abgebrochen, fehler. Only accept messages whose event.origin is the service address and whose event.source is your iframe.

6. Webhooks

Slayper sends every event of a linked transfer as a JSON POST to your webhook address. Field names are German and stable.

{
  "id": "Qm9sZ2E4d2V0X2F4",
  "ref": "record:2026-114",
  "typ": "empfang.bestaetigt",
  "zeit": "2026-11-04T15:52:07.214Z",
  "versand": "Yxc99u-4qoqWvlTF",
  "konto": "JCAcZ4eky5yr",
  "nr": 42,
  "daten": {
    "email": "client@example.com",
    "browser": "Safari unter macOS",
    "adresse_bestaetigt": true,
    "weg": "link"
  }
}
FieldContent
idUnique ID of the message. Identical on retries: use it to detect duplicates.
refYour reference from the link token
typEvent type (table below)
zeitTime of the event (ISO 8601, UTC)
versandID of the transfer (for anforderung.*: the upload link or the received transfer)
kontoID of the Slayper account that sent or requested
nrSequence number in the account’s proof chain. Sort by it, delivery order may differ on retries.
datenDetails per event: email, browser, an, dateien, groesse, ablauf, abruf_limit, upload_limit, je, bestaetigt, adresse_bestaetigt, weg, grund, versuch, pin, hochgeladen_von, anforderung. Not every event has every field, new fields may be added.

Verifying the signature

Every message carries the header X-Slayper-Signatur: t=<seconds>,v1=<hex>. v1 is HMAC-SHA256 with the secret over <t>.<body>, using the body exactly as received (before parsing JSON). Reject messages whose t differs from your clock by more than 5 minutes.

/**
 * Webhook signature check. header: value of "X-Slayper-Signatur" ("t=<seconds>,v1=<hex>"), body: raw request body
 * exactly as received (string or Buffer). Rejects signatures older than toleranceSeconds (replay protection).
 */
export function verifyWebhook(secret, header, body, toleranceSeconds = 300, nowSeconds = Math.floor(Date.now() / 1000)) {
  const m = /^t=(\d{1,12}),v1=([0-9a-f]{64})$/.exec(String(header || '').trim());
  if (!m) return false;
  const t = Number(m[1]);
  if (Math.abs(nowSeconds - t) > toleranceSeconds) return false;
  const expected = createHmac('sha256', secret).update(`${t}.`).update(Buffer.isBuffer(body) ? body : Buffer.from(String(body), 'utf8')).digest();
  const given = Buffer.from(m[2], 'hex');
  return given.length === expected.length && timingSafeEqual(given, expected);
}

Delivery

Event types

EventMeaning
versand.gesendetTransfer sent (number of files, size, expiry, protection)
versand.mailLink email sent (recipients in an)
abruf.code_gesendetRecipient requested a confirmation code
abruf.code_bestaetigtRecipient confirmed their address
abruf.code_falschWrong code entered (versuch)
abruf.pin_falschWrong PIN entered
link.gesperrtLink locked after too many failed attempts
abruf.linkFiles downloaded via the link
abruf.posteingangFiles downloaded in the inbox of a Slayper app
empfang.bestaetigtReceipt confirmed: file checksums match
link.limit_erreichtDownload limit reached, link closed
versand.abrufgrenzeDeleted after the download limit
versand.abgelaufenAvailability expired, deleted
versand.geloeschtDeleted by the sender
anforderung.erstelltUpload link created (documents requested)
anforderung.mailEmail with the upload link sent
anforderung.zugestelltRequest delivered to the inbox of a Slayper account
anforderung.code_gesendetUploader requested a confirmation code
anforderung.code_bestaetigtUploader confirmed their address
anforderung.pin_falschWrong PIN at the upload link
anforderung.gesperrtUpload link locked after failed attempts
anforderung.eingegangenDocuments received (hochgeladen_von, number, size)
anforderung.limit_erreichtUpload limit reached
anforderung.geschlossenUpload link closed

More event types may be added. Ignore unknown types instead of rejecting the message.

7. Plan and limits

8. Security and privacy

9. Review before going live

Before you receive your production integration, we check once together in the sandbox:

10. Versions and changes

The token (v1), the webhook signature (v1) and the window messages do not change without a new version. New fields, event types and options may be added at any time; build your software to skip what it does not know. When a version is replaced, the old one keeps working for at least six months after the announcement.

11. Help

Questions about the integration, test access and review: via the contact form. For security questions and suspected misuse, please use the subject “Security”.

As of November 4, 2026