1. Overview
Your software gets three things:
- The Slayper window for sending and requesting, embedded in your interface. Sign-in, encryption and upload happen inside it. You prefill the recipient and the reference.
- The link token: your server signs which record (case, client, deal) a transfer belongs to. Nobody can forge it, not even your user.
- Webhooks: Slayper reports to your server, signed, what happens to the transfer: sent, code requested, address confirmed, downloaded, receipt confirmed, documents received, deleted.
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.
- Your user clicks “Send securely” in your software.
- Your server signs a token for the record, your page opens the Slayper window with it.
- Your user signs in once with their Slayper account, picks files and sends. The recipient gets an email with a link.
- 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:
| Item | Meaning |
|---|---|
| Integration ID | For example legal-software. Part of every link token and of the window call. |
| Secret | Signs the token and verifies webhooks. Store it on your server only. We rotate it immediately on request. |
| Allowed origins | The 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 address | The https address of your server that receives the events. |
| Test accounts | Slayper accounts on the Pro plan for the sandbox. |
| Environment | Address | Note |
|---|---|---|
| Sandbox | https://sandbox.slayper.com | Separate 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. |
| Production | https://transfer.slayper.com | After the review (section 9) you get your own integration with a new secret. |
3. Quick start
- Request a test access, receive integration ID, secret and test account.
- Build an endpoint on your server that signs the link token for a record (section 4).
- Load
slayper-einbetten.jsin your interface and callSlayper.open()(section 5). - Build a webhook endpoint, verify the signature and store the events on the record (section 6).
- 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>
- Payload: JSON, UTF-8, Base64url without padding.
- Signature: HMAC-SHA256 with the secret over
slayper v1 zuordnung, one zero byte and the payload (the Base64url string), as Base64url without padding. - The whole token is at most 4 KB.
| Field | Required | Content |
|---|---|---|
a | yes | Your integration ID |
r | yes | Reference of the record in your software, 4 to 200 characters from A–Z a–z 0–9 _ : . -, e.g. case:2026-114 |
x | yes | Expiry in Unix seconds, at most 24 hours ahead. Recommended: 2 hours. |
d | no | Your 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)}`;
}
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>
| Option | Content |
|---|---|
integration | Your integration ID (required) |
mode | 'send' (send securely) or 'request' (request documents) |
token | Link token from your server (required) |
recipients | Recipient addresses, prefilled and editable in the window (up to 50) |
reference | Reference, 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 |
service | Service address, default https://transfer.slayper.com, sandbox https://sandbox.slayper.com |
container | Element or CSS selector for the window. Without it, the window opens as an overlay. |
theme | 'dark' for dark mode |
closeOnDone | false: window stays open after “Close” (default: it closes) |
| Event | When | Values |
|---|---|---|
ready | Window loaded | |
status | Sign-in state | connected, account (name, email), limit |
sent | Transfer sent | transfer, expires, recipients, files (count) |
requested | Documents requested | request, expires, recipients |
done | User closed the window | |
cancelled | User cancelled | |
error | Error in the window | message |
closed | Window 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"
}
}
| Field | Content |
|---|---|
id | Unique ID of the message. Identical on retries: use it to detect duplicates. |
ref | Your reference from the link token |
typ | Event type (table below) |
zeit | Time of the event (ISO 8601, UTC) |
versand | ID of the transfer (for anforderung.*: the upload link or the received transfer) |
konto | ID of the Slayper account that sent or requested |
nr | Sequence number in the account’s proof chain. Sort by it, delivery order may differ on retries. |
daten | Details 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
- Answer within 10 seconds with a 2xx status. Process the message afterwards, not before.
- Without 2xx, Slayper retries after 1, 5, 30, 120, 360, 720 and 720 minutes. After the eighth attempt, a little over 32 hours after the first, Slayper gives up. We can redeliver messages that were given up.
- Redirects (3xx) are not followed. The address must use https.
- While an integration is locked, messages are kept and delivered after unlocking.
Event types
| Event | Meaning |
|---|---|
versand.gesendet | Transfer sent (number of files, size, expiry, protection) |
versand.mail | Link email sent (recipients in an) |
abruf.code_gesendet | Recipient requested a confirmation code |
abruf.code_bestaetigt | Recipient confirmed their address |
abruf.code_falsch | Wrong code entered (versuch) |
abruf.pin_falsch | Wrong PIN entered |
link.gesperrt | Link locked after too many failed attempts |
abruf.link | Files downloaded via the link |
abruf.posteingang | Files downloaded in the inbox of a Slayper app |
empfang.bestaetigt | Receipt confirmed: file checksums match |
link.limit_erreicht | Download limit reached, link closed |
versand.abrufgrenze | Deleted after the download limit |
versand.abgelaufen | Availability expired, deleted |
versand.geloescht | Deleted by the sender |
anforderung.erstellt | Upload link created (documents requested) |
anforderung.mail | Email with the upload link sent |
anforderung.zugestellt | Request delivered to the inbox of a Slayper account |
anforderung.code_gesendet | Uploader requested a confirmation code |
anforderung.code_bestaetigt | Uploader confirmed their address |
anforderung.pin_falsch | Wrong PIN at the upload link |
anforderung.gesperrt | Upload link locked after failed attempts |
anforderung.eingegangen | Documents received (hochgeladen_von, number, size) |
anforderung.limit_erreicht | Upload limit reached |
anforderung.geschlossen | Upload link closed |
More event types may be added. Ignore unknown types instead of rejecting the message.
7. Plan and limits
- Integrations are available from the Pro plan. On the Free plan the window shows a notice instead of the form, and the server rejects the link.
- Size per transfer, available durations (48 hours, 7, 14 or 21 days) and download limit follow the user’s plan and team policies, as in the Slayper apps. The window only offers allowed values.
- The window sends link emails via Slayper’s system address. If the user’s team has turned this off, they can only send to recipients with a Slayper account.
8. Security and privacy
- Encryption happens in the Slayper window on the user’s device. Your page cannot read the window’s content (different origin).
- Slayper passes facts about the transfer to the customer’s software on the customer’s instruction. You are not Slayper’s processor for this, and Slayper is not yours. The partner terms cover the details.
- Keep the secret like a password. If you suspect misuse, contact us immediately and we rotate it.
- Do not store full tokens or webhook contents you do not need in your logs.
9. Review before going live
Before you receive your production integration, we check once together in the sandbox:
- The token is signed on your server, the secret appears nowhere in a browser, an app or a repository.
- Your page only accepts window messages from the service address and from your iframe (met with the library).
- Your webhook endpoint verifies the signature over the unmodified body and rejects old signatures.
- Duplicate deliveries (same
id) do not create duplicate entries. - Your endpoint answers quickly with 2xx and ignores unknown event types.
- An account on the Free plan gets an understandable notice in your software.
- Your logs contain no tokens, links or webhook contents beyond what is necessary.
- Sending and requesting work in your supported browsers, including download by the recipient.
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