# Sooper: all features > Sooper is a membership platform for creators: paid tiers, posts (video, audio, articles, images), a shop for digital products, services and software licenses, community chat, notifications, email digests, broadcasts and automations, with payments through Stripe Connect on the creator's own Stripe account. This file lists what Sooper offers today, checked against the product. "Beta" means Sooper switches the feature on per community. Where a marketing page and this file differ, this file is the checked one. Short version with links: https://sooper.app/llms.txt. Operator: Sooper Limited (England and Wales), hosting in the EU. Contact: https://sooper.app/contact. ## Community and content - A public community page at /: name, tagline, socials, picture, an optional cover image and a featured tier. - Post types: article, video, audio and image carousel. Posts can have downloadable files. - Who can see a post: everyone, followers, chosen tiers, or private. Pay-per-post: a one-time price on a tier post. - Drafts, scheduled publishing, pinned and featured posts. - Video hosting with adaptive streaming (HLS) up to 1440p. Chapters on video and audio. - Uploaded subtitles (VTT or SRT) per language on video and audio, with a transcript view for audio. - A rich article editor with embeds (YouTube, Vimeo, Spotify, SoundCloud, Apple Music, X, Loom, TikTok). - Collections (sorted newest, oldest or in a custom order) and tags, shared by posts and products. - Threaded comments with replies and edits; comments can be turned off per post. - Resume playback and watched markers. - A read-only calendar of upcoming scheduled posts and product releases. - Search across posts and products. - Server-rendered public pages with structured data and sitemaps, for search engines. - A member home feed and a discover page. ## Memberships and payments - Paid membership tiers with perks, a picture, "popular" and "featured" flags and an optional member cap. - Tiers can stack (a higher tier includes the lower ones) or work as add-ons (a member holds several). - Billing every 1, 3, 6 or 12 months. - Upgrades are prorated and apply at once; downgrades apply at the end of the period. - Free follow, with posts for followers only. (There is no free tier.) - Coupons and promotion codes: percent or amount, once, repeating or forever, with a limit on uses and an end date, for tiers and products. - Stripe Connect Express: payments go to the creator's own Stripe account (direct charges). - One currency per community: GBP, USD, EUR, CAD or AUD. - VAT and sales tax through Stripe Tax, when the creator turns it on. - Full refunds of an order. A prorated refund when the creator cancels a member's subscription. - Failed renewals: Stripe retries the payment; the member gets an in-app notice and a link to update the card. - Cancellation reasons, shown to the creator as a chart. - Fees: a platform fee per payment, no monthly fee; Stripe's own fees are separate. ## Shop - Digital products: files are delivered exactly as uploaded (lossless audio too). Music tracks get a public preview clip and a waveform. - Prices: fixed, free, or pay what you want with a minimum. Quantities with volume discounts. - A member price per tier (also free for a tier), and products for members only. - Free claims for members with a limit per week or month, with a different limit per tier. - Services: duration, buffer, lead time, online or in person, group capacity, recurring availability, approval before a booking, rescheduling by the buyer, calendar invites and reminder emails. - Limits on how often a tier member can redeem a service. - Services without booking: the buyer sends notes, the creator marks the order delivered. - Automatic Google Meet links on bookings; Zoom links where Zoom is available. - Products can be assigned to members of the creator team. - A message thread per service order, with file attachments. - Product reviews (1 to 5 stars), can be turned off per product. - Scheduled releases, featured and pinned products, a public purchase count, and launch notifications. - A purchases library for buyers. - Software licenses (beta, switched on per community): sell licenses for plugins and apps. Licenses come from a purchase, a product subscription, a tier that includes the product, the creator team, a trial, a license key or a gift. Apps activate in the browser, check licenses offline with Ed25519 signatures and check in once a day. Creators can let Sooper email license keys, one per address (up to 25 a day). Buyers manage their computers on their Licenses page; key holders download installers at /redeem. Creators release updates (new installers, a version and notes) in one step: the new files replace the old ones, the notes show under "What's new" on the product page, buyers can get a message, and the app gets the latest version for its platform at its daily check-in to show "Update available". Developer guide: /developers/software-licensing. ## Engagement - Chat channels (Stream) in groups, with read and write rights per tier and optional read-only access for followers. - Voice notes, attachments and pinned messages in chat. @everyone mentions. - Direct messages between the creator team and members or followers (members start one only when the creator allows it). - In-app notifications, grouped by type and day. Web push for posts and chat. - Daily email digests (new posts, products, tiers, channels and messages) with unsubscribe. - Broadcasts: emails from the creator to all followers, members only, followers who are not members, or a segment. Each one also shows as an in-app notification (with web push). Scheduling, test sends, a name merge tag, blocks shown to one group only, cards for posts, products, tiers, channels and discount codes, and per-send results (people reached, emails sent, bounces, spam reports, unsubscribes, read in the app). One-click unsubscribe per community. - Segments: groups that update themselves, by membership (tier, status, billing period, dates), purchases and follow date, with a live count and a CSV export. - Automations: up to five messages after a follow, a new membership, a request to cancel or a membership that ends, each after a wait, with stop rules. - Notification preferences per member. - A waitlist before launch, a launch notice to the list, and a CSV export. ## Growth and analytics - Ad pixels (beta): Meta, TikTok, GA4, Google Ads and ChatGPT Ads. They load on public pages after cookie consent. Server-side events for Meta, TikTok, GA4 and ChatGPT Ads. - Follows, subscriptions and purchases traced back to the post they came from (a report per post). - An audience overview: followers, subscribers, set to cancel, overdue, email opt-in, push adoption and cancellation reasons. Views and growth are in beta. - CSV exports of members, followers, the waitlist and payments by date range. ## Team, tools and apps - Co-creators with the roles Admin, Manager and Author, with invites and public profiles. - AI artwork for thumbnails and covers (beta, switched on per community). - Batch upload of many videos at once as draft posts (beta, switched on per community). - An installable web app (PWA) with an offline page. - Sign in with an email code or with Google. A list of signed-in sessions. - A view-only news channel for verified creators. - The interface is in English. ## Not available (do not assume these exist) - Free trials of tiers and lifetime memberships. - Partial refunds. - Native iOS or Android apps. - Direct messages between members, posts by members, likes or polls. - Open or click tracking for emails, email templates and A/B tests. - MRR, churn, LTV or revenue dashboards, affiliate or referral programs. - Conversion reports per product (only per post). - Payout schedules set by Sooper (Stripe's defaults apply) and connecting an existing Stripe account (Sooper creates a new Express account). - Currencies other than GBP, USD, EUR, CAD and AUD. - Self-service deletion of an account or a community (contact support). ## Public pages per community - / community page, //pricing tiers, //shop and //shop/, //collections, //channels, //post/, /creator/ creator profile. --- # Software licensing on Sooper: developer guide Sooper sells licenses for your software and runs the license server for you. It works for audio plugins and for any desktop app on macOS, Windows and Linux. Your plugin or app asks Sooper "may this computer run me?" and gets a signed answer, the license token, that it can check without internet. You do not run a server, and you do not handle payments or VAT: Sooper's shop and Stripe Connect do that. This guide starts with a quick start. The reference follows it. Every request and answer in it is the real format. All endpoints are under `https://sooper.app`. **Contents** - [Quick start](#quick-start) - [How licensing works](#how-licensing-works) - [1. Set up the product in Sooper](#set-up-the-product-in-sooper) - [2. The device id](#the-device-id) - [3. Activate in the browser](#activate-in-the-browser) - [4. Check the token](#check-the-token) - [5. Check in](#check-in) - [6. Deactivate this computer](#deactivate-this-computer) - [7. License keys](#license-keys) - [8. Offline activation](#offline-activation) - [9. Free trials](#free-trials) - [10. Updates and the update hint](#updates-and-the-update-hint) - [11. What your app shows](#what-your-app-shows) - [12. Answers and status codes](#answers-and-status-codes) - [13. Test vectors](#test-vectors) - [14. Reference code (JavaScript)](#reference-code-javascript) - [15. Rate limits and good practice](#rate-limits-and-good-practice) ## Quick start 1. **Set up the product.** In your Sooper dashboard, add a shop product of the type Software license. In its License section, under For your developer, choose Copy all: the app key and the two public keys by key id, as JSON. Build them into your app ([section 1](#set-up-the-product-in-sooper)). 2. **Compute the device id** from the computer's hardware id and your app key. The raw hardware id never leaves the computer ([section 2](#the-device-id)). 3. **Activate in the browser.** Send `POST /api/licensing/v1/activation-requests`, show the short code, open the link in the browser, and poll until the person confirms. The poll answers with the license token ([section 3](#activate-in-the-browser)). 4. **Check the token at every start**, without internet: the Ed25519 signature with your public key, then `iss`, `aud`, `dev` and `exp` ([section 4](#check-the-token)). 5. **Check in** with `POST /api/licensing/v1/check-in` when the token's `chk` time has passed, and store the new token. Lock the app only when the answer is `revoked` or `no_right` ([section 5](#check-in)). 6. **Add the other buttons:** Deactivate ([section 6](#deactivate-this-computer)), Enter license key ([section 7](#license-keys)) and, if you allow it, Load license file ([section 8](#offline-activation)). Working JavaScript for steps 2 to 5 is in [section 14](#reference-code-javascript). Check your own code against the [test vectors](#test-vectors). ## How licensing works - **Sooper signs, your app checks.** Each software product has its own Ed25519 key pair. Sooper keeps the private key, encrypted. You build the public key into your app. A license is a small signed token, and your app checks its signature without internet. - **A token belongs to one computer.** The token carries the device id of one computer. A token copied to another computer fails the check. - **A license covers a number of computers.** You choose how many computers one buyer can use at the same time. When all of them are in use, the person removes one (on Sooper, or with Deactivate in your app) before activating another. - **Your app checks in once a day when it is online.** That is how refunds, ended memberships, ended subscriptions and removed computers reach your app. Without internet the app keeps working until the token's `exp`: 30 days for a license that never ends, the product's days without internet (default 7) for a membership or a subscription, and at most until the end date for a trial or a license with days. These days are not extra time to pay: an app that is online locks at its next check-in after a failed payment ([details](#how-long-a-token-works-without-internet)). - **Only a clear answer locks the app.** The check-in answers `revoked` or `no_right` when the license is gone. No network, a timeout, a server error, a 429 or an HTML page (a captive portal) never locks a licensed app. ### Ways to get a license Each way gives a token kind (`knd`, [section 4](#check-the-token)). - **Purchase** (`perpetual`): the person buys the product in your shop, also for a price of 0. Ends at a refund or a lost dispute. - **Membership** (`subscription`): the person is a member of a tier that includes the product (member price 0). Stops while a payment for the tier is overdue. Ends when the person leaves the tier. - **Product subscription** (`subscription`): the person subscribes to the product itself (monthly, or every 3, 6 or 12 months). Works while the subscription is active, also after a cancel until the end of the paid period. Stops while a payment is overdue. Ends with the subscription. - **Team** (`team`): the person is the community owner or a co-creator. Ends when the role ends. - **Free trial** (`trial`): the person starts a trial from your app. One trial per account and one per computer. The trial runs only on the computer where it started. Ends after the trial days. - **License key** (`perpetual`, or `trial` for a trial key): the person types a key that you made. No Sooper account is needed. Ends when you revoke the key or when its days end. - **Gift** (`perpetual`, or `trial` for a trial gift): you give a license to a member or follower of your community, who signs in to activate. Ends when you revoke it or when its days end. When a person has more than one, Sooper uses the strongest, in this order: a purchase, a full gift with no end, team, a membership or product subscription, a gift with days, a trial. ## 1. Set up the product in Sooper 1. In your dashboard, open Shop, add a product and choose **Software license**. Software licenses are switched on per community during the rollout: ask Sooper support to switch them on. 2. Upload your installers under **Installers** (.dmg, .pkg, .exe, .msi, .deb, .rpm, .AppImage, .zip, .tar.gz or .tar.xz; no other file types). Pick the platform of each installer: macOS, Windows, Linux or all platforms. The dashboard picks a first value from the file type (.zip, .tar.gz and .tar.xz start as all platforms). Buyers see the installers in platform groups, with the group of their own computer first. 3. In the **License** section, under **For your developer**, choose **Copy all**. You get the app key and the two public keys by key id, as JSON (the active key first, then the spare): ```json { "appKey": "", "publicKeys": { "": "", "": "" } } ``` Build all of it into your app. Your app picks the public key whose id is the token's `kid`. Ship both keys: the second is a spare, so a later change of the signing key needs no new build. The values are not secret. 4. In the same section, set the license rules: - **Computers per buyer**: how many computers one license activates at the same time (default 1, at most 50). - **Computers per team member**: the same for you and your co-creators (default 3). - **Days without internet**: how long the computer of a member or subscriber keeps working when it can not reach Sooper (default 7, 1 to 60). It is not a payment grace period ([details](#how-long-a-token-works-without-internet)). - **Offline activation**: off by default. Sooper asks you to confirm when you turn it on, because a license file can not be locked later ([section 8](#offline-activation)). - **Limit moves**: off by default. How often a buyer can remove a computer on the web in 30 days. Deactivate in your app never counts. - **Free trial**: off by default, 1 to 365 days ([section 9](#free-trials)). 5. Price it like any product: a public price, member prices per tier (0 = included in that tier), or members only. You can also sell it as a subscription (monthly, or every 3, 6 or 12 months), next to a one-time price or alone. 6. Open the product's **Licenses** page (the link "Keys, gifts and computers" in the License section, or Licenses in the product's menu on the Products page): - **Keys and gifts**: make license keys (for press, other stores, beta testers), email keys (one key per address, up to 25 emails per day, after your Stripe setup is done), and gift licenses to members and followers. - **Computers**: every activated computer. You can remove a computer for a buyer. 7. To ship a new version after the product is published, use **Release an update** in the Installers section ([section 10](#updates-and-the-update-hint)). Only the community owner and admins can change the license rules and use the Licenses page. ## 2. The device id Your app computes the device id the same way on every start: ``` deviceIdHash = "slv1_" + lowercase_hex( SHA-256( UTF-8( "sooper-license-device:v1\n" + appKey + "\n" + hardwareId ) ) ) ``` `\n` is one line feed (byte 0x0A). The result is `slv1_` and 64 lower-case hex characters. Only this hash goes to Sooper: the raw hardware id never leaves the computer. The app key is part of the hash, so two apps never see the same id for one computer. The `hardwareId` per platform: - **macOS**: the `IOPlatformUUID` string from IOKit (`IOPlatformExpertDevice`), as IOKit returns it. - **Windows**: `smbios:` + the SMBIOS system UUID in lower case, or `machineguid:` + the `MachineGuid` in lower case when that UUID is weak: 1. Read the SMBIOS table with `GetSystemFirmwareTable('RSMB', 0, ...)`. Do not use WMI: it needs COM, which is not safe inside a host. The answer starts with an 8-byte `RawSMBIOSData` header; the structures follow it. 2. Take the UUID of the System Information structure (type 1, offset 8, 16 bytes). Write it as 8-4-4-4-12 hex with the first three fields in reverse byte order. Do this on every table, also one older than SMBIOS 2.6: the id only has to be the same on every start. On current computers this is the `UUID` that `Get-CimInstance Win32_ComputerSystemProduct` shows, in lower case. 3. When that UUID is weak (all 0, all F, `03000200-0400-0500-0006-000700080009`, or one digit repeated), read `HKLM\SOFTWARE\Microsoft\Cryptography\MachineGuid` with `KEY_WOW64_64KEY`. Without that flag, a 32-bit plugin reads the 32-bit registry view, which has no `MachineGuid`. 4. When a read fails, try again later. Never use the other source after an error: the id must be the same on every start. The SMBIOS UUID stays the same after a Windows reinstall, so the buyer keeps the activation. - **Linux**: the content of `/etc/machine-id` (32 lower-case hex characters), without the line feed at the end. Rules: - Read the id once when the app starts, on a background thread, and keep it in memory. - Refuse to activate on a weak id: on macOS an empty id, all zeros, all F or a known placeholder of a computer maker; on Windows when the SMBIOS UUID and the `MachineGuid` are both weak; on Linux an empty id. - Check your code with the test vectors in [section 13](#test-vectors). ## 3. Activate in the browser This is the main way to activate: the person confirms in the browser with their Sooper account. ### Start a request `POST https://sooper.app/api/licensing/v1/activation-requests` ```json { "appKey": "drfg_7k2m9q", "intent": "activate", "deviceIdHash": "slv1_...", "deviceName": "Studio Mac", "platform": "macos", "appVersion": "1.2.0", "host": "Ableton Live", "pluginFormat": "VST3" } ``` - `appKey`, `deviceIdHash`, `deviceName` and `platform` are required. - `deviceName`: the computer's name as people know it, 1 to 80 characters. The person and you see it in the list of computers. - `platform`: `macos`, `windows` or `linux`. - `intent`: `activate` (the default) or `trial`. Send `trial` from a "Start free trial" button. The browser page shows the same choices for both values ([below](#what-the-person-does-in-the-browser)). - `appVersion`, `host` (the host app, for example the DAW) and `pluginFormat` (for example VST3, AU, Standalone): optional, up to 64 characters each. They show in your list of computers. The answer, `200`: ```json { "status": 200, "success": true, "data": { "requestId": "l5rLjLPi9d24EzM4Fwpdhw", "pollToken": "Vgd4eJROOsd-...", "userCode": "JAE-7A0", "activateUrl": "https://sooper.app/licensing/activate/l5rLjLPi9d24EzM4Fwpdhw", "pollIntervalSeconds": 2, "expiresInSeconds": 3600 } } ``` - Keep `pollToken` secret. Only your app has it, and it is the only way to fetch the token. - `userCode` is 3 characters, a dash and 3 characters (digits and capitals, no I, L, O or U). - The request lives `expiresInSeconds` (1 hour), so a new buyer has time to sign up and buy. - A `404` with `"error": "Unknown app"` means that the `appKey` in your build is not the app key of a software product on Sooper. Check the app key. Then: - Show the `userCode` in large text, and the `activateUrl` with a Copy button in case no browser opens. - Open `activateUrl` in the default browser. - Keep the code on screen until the poll answers. - Add a Cancel button. Cancel only stops your polling: Sooper needs no call. If the person confirms in the browser after that, the activation belongs to this computer, and the next activation of this computer uses it again (no second computer is counted). ### What the person does in the browser 1. The page asks the person to sign in or sign up. After that, it comes back to the request. 2. When the browser is on the same network as your app, the page shows the code. The person checks that it is the code in your app. When the browser is on another network, the page hides the code, and the person types the code from your app. This stops a link that someone else sent. So always show the code. 3. When the person has more than one Sooper profile, Sooper uses the profile with the strongest license. 4. The page offers what the person can do: - with a license and a free computer: activate this computer; - with all computers in use: the page lists them; the person removes one and then activates; - with no license: links to buy or subscribe, and a button to start the free trial when the product has one that this account and this computer did not use yet; - after a failed payment: a link to update the payment method. A person with a license always gets the full license, also when your request asked for `trial`. 5. The person can also cancel the request on the page. Your app sees none of these steps. The poll answers `204` until the page stores a token, until the person cancels, or until the hour ends. ### Poll for the token `POST https://sooper.app/api/licensing/v1/activation-requests/{requestId}/poll` with `{"pollToken": "..."}`, every `pollIntervalSeconds` (2) or slower: - `204` (empty body): the person did not confirm yet. Poll again. - `200`: `{"status": 200, "success": true, "data": {"token": "eyJhbGciOiJFZERTQSIs..."}}`. Check the token ([section 4](#check-the-token)), store it, and stop polling. `data` can also carry the update hint `latestVersion` and `releaseNotesUrl` ([section 10](#updates-and-the-update-hint)). Sooper hands the token over once: the next poll answers `410`. - `410` with `"error": "cancelled"`: the person cancelled on the page. - `410` with `"error": "expired"`: the hour ended, the token was already handed over, or the `requestId` is unknown. Start again. - `404` with `"error": "Not found"`: the `pollToken` is not the one of this request. Start again. - `429`: too many polls from this network. Wait `Retry-After` seconds. - No network, a 5xx or HTML: keep polling until `expiresInSeconds` has passed. ## 4. Check the token A token is a JWS in compact form: `header.payload.signature`, each part base64url without padding, signed with Ed25519. The header is `{"alg": "EdDSA", "typ": "JWT", "kid": ""}`. A payload: ```json { "iss": "sooper", "aud": "drfg_7k2m9q", "sub": "01a1655f-9d1c-7c3e-8f2a-5b6d7e8f9a0b", "dev": "slv1_...", "knd": "perpetual", "src": "account", "mth": "online", "own": "Sam Rivera", "iat": 1792702127, "chk": 1792788527, "exp": 1795294127 } ``` - `iss`: always `sooper`. - `aud`: your app key. - `sub`: the id of the activation (or of the trial). A computer that activates again while it is still active keeps its `sub`. - `dev`: the device id that the token is for. - `knd`: `perpetual`, `team`, `subscription` (a membership or a product subscription) or `trial`. It can change at a check-in, for example from `trial` to `perpetual` after a purchase. - `src`: `account` (a Sooper account) or `key` (a license key). - `mth`: `online`, or `offline` for a license file ([section 8](#offline-activation)). - `own`: the name for "Licensed to ...", up to 80 characters. For a license key: the name that you entered with the key, or `License key ...` and the last 4 characters of the key. - `iat`: when Sooper signed the token (Unix seconds, UTC). - `chk`: check in after this time: `iat` + 24 hours. Online tokens only. - `exp`: the token stops working after this time. Online tokens only. ### How long a token works without internet `exp` depends on the license: - A license that never ends (a purchase, team, a full key or gift with no end): `iat` + 30 days. - A membership or a product subscription: `iat` + the product's days without internet (default 7). - A trial, and a key or gift with days: the end date, but at most `iat` + 30 days. - A license file ([section 8](#offline-activation)): no `chk` and no `exp`. It never expires. Each good check-in gives a new token with new times, so an app that is online once a day never reaches `exp`. For a trial, `exp` is the end of the trial when `exp` - `iat` is less than 30 days. Show "Trial, N days left" only then; otherwise show "Trial". **Days without internet are not extra time to pay.** They only cover a computer that can not reach Sooper: no internet, a captive portal, or Sooper being down. An app that is online learns that the license is gone at its next check-in, at most about a day later. Example, for a product with 7 days without internet: - A subscriber's renewal payment fails. The next check-in answers `no_right` with `payment_overdue` and the app locks. When the payment goes through, the next check-in gives a new token and the app works again. - The same subscriber has had no internet since the last good check-in. The app keeps working until that token's `exp`, 7 days after that check-in, then locks. If a check-in gets an answer before that, the answer counts. Fewer days limit how long someone who cancels can keep a computer offline and still use your app. More days help people who work offline for a long time. ### Verify a token Do this at every start, and before you store a new token: 1. Split the token at the two dots and decode the header. Refuse any `alg` other than `EdDSA`. 2. Pick your built-in public key whose key id equals `kid`. Refuse a `kid` that you do not have. 3. Check the Ed25519 signature (part 3, 64 bytes) over the ASCII bytes of `header.payload` (the first two parts and the dot between them). 4. Decode the payload and check that `iss` is `sooper`, `aud` is your app key, and `dev` is the device id of this computer. Refuse the token otherwise. 5. Check the time. When `exp` is present and in the past, the token has expired. An expired token is not a verdict: keep it, ask the person to connect to the internet, and check in. Sooper renews an expired token when the license is still valid. A public key from your dashboard is the raw 32-byte Ed25519 key in base64url. With libsodium (C/C++), step 3 is: ```c // signature: 64 bytes (part 3, base64url-decoded); publicKey: 32 bytes (base64url-decoded from your dashboard) int ok = crypto_sign_verify_detached(signature, (const unsigned char*) signingInput, signingInputLength, publicKey) == 0; ``` Monocypher (two small C files) is a lighter choice. Use its Ed25519 functions with SHA-512 (`crypto_ed25519_check`), not its default EdDSA with BLAKE2b. macOS Security.framework can not check Ed25519 from C++. In Node.js and Electron, use `crypto.verify` ([section 14](#reference-code-javascript)). ## 5. Check in `POST https://sooper.app/api/licensing/v1/check-in` ```json { "token": "eyJhbGciOiJFZERTQSIs...", "deviceName": "Studio Mac", "platform": "macos", "appVersion": "1.2.0", "host": "Ableton Live", "pluginFormat": "VST3" } ``` Only `token` is required. Also send `deviceName` and `platform`: a trial token needs them to become a full license (below). When to check in: - At start, and about once an hour while the app runs, look at `chk`. When it has passed, check in on a background thread (never on the audio thread). - After a temporary answer, try again later: after `Retry-After` seconds for a 429, else after about an hour. - A license file has no `chk`: it never checks in. The answers that count all have HTTP 200: - `{"status": 200, "success": true, "data": {"status": "ok", "token": "...", "latestVersion": "1.3.0", "releaseNotesUrl": "..."}}`: verify and store the new token. `latestVersion` and `releaseNotesUrl` are the update hint ([section 10](#updates-and-the-update-hint)). They can be absent. - `{"status": 200, "success": true, "data": {"status": "revoked"}}`: this computer was removed (by the person, by you, or with Deactivate), or its license key was revoked. Lock the app. - `{"status": 200, "success": true, "data": {"status": "no_right", "reason": "subscription_ended"}}`: the license is gone. Lock the app and show the message for the `reason` ([section 11](#what-your-app-shows)): `payment_overdue`, `subscription_ended`, `refunded`, `role_ended`, `trial_ended`, `gift_ended`, `key_expired`, `seats_full` or `not_owned`. Every other answer is temporary: `401` (`"error": "Invalid token"`), `404` (`"error": "unknown"`), `422`, `429`, a 5xx, no network, a timeout or HTML. Keep the current token, keep the app working until `exp`, and try again later. - The new token can have another kind. Example: a person whose purchase was refunded, and who is now a member of a tier that includes the product, gets a `subscription` token. - **Trial upgrade.** When a trial token checks in and the person now has a license (a purchase, for example), Sooper activates this computer, and the answer is a full token. This needs `deviceName` and `platform` in the body, and a free computer on that license. When all its computers are in use, the trial runs until its end; then the answer is `no_right` with `seats_full`. - **More computers than a gifted license allows.** A gifted license has its own number of computers. When the person has more computers activated than their gifted license allows (for example, you replaced the gift with one for fewer computers), the computers that were activated first keep working. The check-in of each other computer answers `no_right` with `seats_full`. After the person removes a computer on their Licenses page, the next check-in of a locked computer with its stored token gives a new token, and Activate in browser works there too. A person who also has a purchase, a subscription or a team role is never held to the number of computers of the gift. When that person's subscription payment failed, the answer for those computers is `no_right` with `payment_overdue`, and they work again after the payment. - Sooper saves the time of the last check-in and the versions at most once per hour. ## 6. Deactivate this computer `POST https://sooper.app/api/licensing/v1/deactivate` with `{"token": "..."}` frees this computer, so the person can activate another one. Deactivate in your app never counts toward the move limit. - `200` with `{"status": 200, "success": true, "data": {"deactivated": true}}`: done. Delete the stored token. - `200` with `"deactivated": false`: there was nothing to free (a trial token, or the computer was already removed). Delete the stored token. - `409`: the computer was activated with a license file ([section 8](#offline-activation)). It can not deactivate itself: only you can remove it, on the Computers tab. Keep the token. The `error` text says this to the person. - `401`, `429`, a 5xx or no network: nothing changed. Keep the token and let the person try again. ## 7. License keys You make keys on the Licenses page. People type a key in your app ("Enter license key"). They need no Sooper account. - Format: `DRFG-7K2M-9QXA-4T8B-JP3F`. The prefix is the part of your app key before the `_`, in capitals. Then 16 random characters (80 bits). - Capitals, dashes and spaces do not matter. `O` counts as `0`, and `I` and `L` count as `1`. - A key has its own number of computers (default: Computers per buyer) and its own days, or none. The days start at the first activation. An unused key can have a last date to activate it; after that date it answers `key_expired`. - A trial key gives `knd` `trial`. It is not the person's account trial, and it does not upgrade itself. `POST https://sooper.app/api/licensing/v1/keys/activate` ```json { "appKey": "drfg_7k2m9q", "key": "DRFG-7K2M-9QXA-4T8B-JP3F", "deviceIdHash": "slv1_...", "deviceName": "Studio PC", "platform": "windows", "appVersion": "1.2.0", "host": "Cubase", "pluginFormat": "VST3" } ``` The answers: - `200` with `data.status`: - `ok`, with `data.token`: verify and store the token (`src` `key`). - `invalid_key`: there is no such key for this product. A key of another product gets the same answer. - `key_revoked`: you revoked the key. - `key_expired`: the key's days ended, or the last date to activate it passed. - `seats_full`: the key is active on all its computers. Deactivate it on another computer first. - `422` with `errors.key`: the key is too short. Show the text (`Type the full license key.`). - `404` with `"error": "Unknown app"`: the `appKey` in your build is not the app key of a software product. - `429`: too many attempts from this network. Wait `Retry-After` seconds. The `error` text says how long. The same computer can activate the same key again: it uses its own activation again. Key tokens check in and deactivate like any token. The key answer has no update hint; the first check-in brings it. Key holders download your installers on https://sooper.app/redeem. ## 8. Offline activation For computers without internet. Only when **Offline activation** is on for the product (it is off by default), and only for a license that never ends: a purchase, a full gift with no end, or a full license key with no end. A membership, a subscription, a team license, a trial and anything with days can end, so they need check-ins. A license file never expires and never checks in, so nothing can lock that computer later: not a refund, not a lost chargeback, not a revoked key and not a removed computer (removing it only frees its place on the license). Turn offline activation on only when your buyers need computers that stay offline for more than 30 days. 1. Your app saves a device file ("Save device file"; JSON, with the file extension `.json`). Sooper tells the person: "In on that computer, save a device file. Copy it to a computer with internet." ```json { "format": "sooper-license-device", "version": 1, "appKey": "drfg_7k2m9q", "deviceIdHash": "slv1_...", "deviceName": "Studio Mac", "platform": "macos" } ``` All six fields are required. 2. The person takes the file to a computer with internet and uploads it: buyers on their Licenses page (https://sooper.app/purchases/licenses), key holders on https://sooper.app/redeem with their key. 3. Sooper activates the computer (it counts as one of the license's computers). The browser saves a license file, `.license` (JSON): ```json { "format": "sooper-license", "version": 1, "appKey": "drfg_7k2m9q", "token": "eyJhbGciOiJFZERTQSIs..." } ``` 4. The person loads the license file in your app ("Load license file"). Check `format` and `appKey`, then verify the token as in [section 4](#check-the-token) and store it. A license file's token has `mth` `offline` and no `chk` and no `exp`. It never checks in and never expires. Deactivate does not work for it (`409`): only you can remove the computer. If such a computer checks in anyway and its license can now end (for example, the purchase was refunded and the person is now a member of a tier), the answer is an online token with `chk` and `exp`. ## 9. Free trials There are two kinds of trial. **Account trial.** Switch on Free trial in the License section (1 to 365 days) and publish the product. In your app, a "Start free trial" button runs the browser activation with `intent` `trial` ([section 3](#activate-in-the-browser)). The person signs in or signs up, and starts the trial on the page. - One trial per account and one per computer, for each product. A trial does not count as one of the person's computers. - The trial runs only on the computer where it started. On another computer, the page offers to buy. - Starting a trial makes a member profile a follower of your community. - The token has `knd` `trial`, and `exp` at the end of the trial (at most 30 days ahead). - After a purchase, the next check-in turns the trial into a full license ([section 5](#check-in)). For an instant change, offer Activate in browser on your trial screen too. - At the end, the check-in answers `no_right` with `trial_ended`. Without internet, the token stops at `exp`. **Trial key.** A license key of the kind trial, with its own days ([section 7](#license-keys)). It needs no account, it does not use the one-trial-per-computer rule, and it does not upgrade itself. ## 10. Updates and the update hint Before the first publish, you add and change installers in the Installers section of the product. After that, installers change only through **Release an update** in the same section. An update has: - at least one new installer. Each new file replaces one of the current installers, or adds one (for example the first Linux build). Installers that the update does not replace stay as they are. You can also remove an installer in an update; - a version number (digits and dots, 1 to 4 parts, for example `1.2.3`), higher than the version of the update before it. Use the version of the new build; - "What's new": the notes; - "Tell buyers", on by default. When you publish an update, in one step: - the new files replace the old ones for everyone with a license. Sooper does not keep old versions: the replaced files are deleted; - the notes show under "What's new" on the product page; - with "Tell buyers" on, people who bought the product, subscribe to it or got a full license as a gift get a message (in the app, push and email), at most one update with messages per product per 24 hours. Turn it off for a quick fix of a broken build; - your app gets the new version as the update hint. The `ok` check-in answer and the `200` poll answer carry two fields next to the token: - `latestVersion`: the newest version that this computer's platform can download, in digits and dots without leading zeros (`1.10.0`). An update with only a macOS installer does not show on Windows. An installer for all platforms counts for every platform. There is no hint until the first update. - `releaseNotesUrl`: `https://sooper.app//shop/#whats-new`, the "What's new" list on the product page. It is absent while the product page is not public. Compare `latestVersion` with your app's own version part by part, as numbers. A missing part counts as 0: `1.2` equals `1.2.0`, and `1.10` is above `1.9`. When `latestVersion` is higher, show "Update available" with a link to `releaseNotesUrl`. No `latestVersion` field means no hint: show nothing. The fields are outside the token: they are a hint, not a license. Never lock or unlock the app on them, and keep the app working when they are missing or are not a version that you can read. The poll's hint is the one from the moment the person confirmed. ## 11. What your app shows Suggested texts. Put your product's name in place of , and "us" means you, the creator. Every locked screen offers "Activate in browser" and "Enter license key". Match your code on the HTTP status, `data.status`, `reason` and the short codes in `error` (`Unknown app`, `Not found`, `expired`, `cancelled`, `Invalid token`, `unknown`, `Invalid request`). These do not change. Longer `error` texts (a 409, a 429, `errors.key`) are written for people: you can show them, but never test them in code, because Sooper can improve them. Show a general text for a `reason` that you do not know. ### During browser activation - Waiting: "Finish in your browser. Check that the page shows this code: JAE-7A0." Add the link, Copy link and Cancel. - `200` with a token: " is activated. Licensed to ." - `410` `cancelled`: "You cancelled the activation in the browser." - `410` `expired`, or `404` on the poll: "The activation link expired. Start again." - `404` `Unknown app` on the request: " can not reach its license server. Contact us." - `429`: "Too many requests from this network. Try again in a minute." - No network: "Can not reach Sooper. Check your internet connection and try again." ### After a check-in - `revoked`, `src` `account`: "This computer was removed from your license. Choose Activate in browser to use here again." - `revoked`, `src` `key`: "This license key was revoked, or this computer was removed from it. Contact us for help." - `no_right` with `payment_overdue`: "Payment failed, so your license does not work until the payment goes through. Update your payment method on Sooper to use again." - `subscription_ended`: "Your subscription or membership ended. Subscribe again on Sooper to use ." - `refunded`: "Your purchase was refunded, so this license stopped. Buy on Sooper to use it again." - `role_ended`: "You are no longer on the team, so your team license stopped. Buy on Sooper to keep using it." - `trial_ended`: "Your free trial ended. Buy on Sooper to keep using it." - `gift_ended`: "Your gifted license ended. Buy on Sooper to keep using it." - `key_expired`: "Your license key expired. Contact us for a new key." - `seats_full`: "You have a license now, but it is active on all your computers. Remove a computer on your Licenses page on Sooper, then choose Activate in browser." - `not_owned`, or a reason that you do not know: " has no license on this computer. Choose Activate in browser or Enter license key." - The token expired and there was no answer: "Connect to the internet so can check your license." - Temporary answers: show nothing while the token still works. ### After a license key - `ok`: " is activated. Licensed to ." - `invalid_key`: "This license key is not valid for . Check the key and try again." - `key_revoked`: "This license key was revoked. Contact us for help." - `key_expired`: "This license key expired. Contact us for a new key." - `seats_full`: "This license key is active on all its computers. Deactivate on one of them first." - `422`: the text in `errors.key`. - `429`: the `error` text: "Too many attempts. Try again in a minute." After many wrong keys: "Too many wrong license keys from this network. Try again in an hour." ### After Deactivate - `200`: "This computer is deactivated. You can now activate on another computer." - `409`: the `error` text ("This computer was activated offline, so you can not deactivate it here. Ask the creator to remove it."), or your own: "This computer was activated with a license file. Contact us to move the license." - Anything else: "Can not reach Sooper. Try again." ### When you load a license file - Another `format` or `appKey`: "This is not a license file for ." - The token is for another computer (`dev`): "This license file is for another computer. Save a device file on this computer and upload it again." ## 12. Answers and status codes Every answer is JSON with `Cache-Control: no-store`. - Success: `{"status": 200, "success": true, "data": {...}}`. - Failure: `{"status": 404, "success": false, "error": "..."}`. - `422` (the body does not fit): `{"success": false, "error": "Invalid request", "errors": {"deviceIdHash": "deviceIdHash is required"}}`. `errors` holds one text per field, or one text when the body is not JSON. - `204`: no body. - `429`: the header `Retry-After` gives the seconds to wait. - `500`: `{"success": false, "error": "Something went wrong"}`. - `503`: licensing is switched off on this server. Treat it like no internet and keep the current token. The header `Retry-After` gives the seconds to wait. The `status` number in the body, when present, repeats the HTTP status. Read the HTTP status code. Do not mix it up with `data.status`, the answer of the check-in or the key activation. Per endpoint (all `POST`, JSON body): - `/api/licensing/v1/activation-requests`: `200` the request; `404` `Unknown app`; `422`; `429`; `500`. - `/api/licensing/v1/activation-requests/{requestId}/poll`: `200` the token; `204` waiting; `404` `Not found` (wrong `pollToken`); `410` `expired` or `cancelled`; `422`; `429`; `500`. - `/api/licensing/v1/check-in`: `200` `ok`, `revoked` or `no_right`. Temporary: `401` `Invalid token`, `404` `unknown`, `422`, `429`, `500`. - `/api/licensing/v1/deactivate`: `200` `deactivated` true or false; `401` `Invalid token`; `409` activated offline; `422`; `429`; `500`. - `/api/licensing/v1/keys/activate`: `200` `ok`, `invalid_key`, `key_revoked`, `key_expired` or `seats_full`; `404` `Unknown app`; `422` (`errors.key`); `429`; `500`. The other licensing endpoints (the redeem page, the uploads of device files) serve Sooper's own pages, not your app. ## 13. Test vectors Device ids, for the app key `drfg_7k2m9q`: - `1F2E3D4C-5B6A-4789-9ABC-DEF012345678` (macOS) gives `slv1_05feef06eb0eedcfabbd2de332118392c3a4351d311ff795333fe985d88215ec`; - `smbios:4c4c4544-0042-3510-8051-b7c04f4e3132` gives `slv1_f29edbcc540155da97c2c06a58b52d9c39df4d22550d19bf999664e88a0d394e`; - `machineguid:2f8c1d4e-6b7a-4c3d-9e1f-0a1b2c3d4e5f` gives `slv1_40ae338ea6f60f0af18ad7f3a4df3c6d208e75acbe9abe2edd64fb3c4d80d3cd`; - `4b9e2c7d1a3f4e5b8c6d7e8f9a0b1c2d` (Linux) gives `slv1_73f9648709731673d09f85160f5ddd701ed00bceadaf453922a10f76739f4a29`. A token. This key pair is for tests only: no product uses it. - Public key: `xhvkDw_RYCSOEuHazrIhA5mCDv4T9rXlp_C0vPiFcsc`, key id `guide-test-key`. - App key `drfg_7k2m9q`, device id: the macOS vector above. ``` eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCIsImtpZCI6Imd1aWRlLXRlc3Qta2V5In0.eyJpc3MiOiJzb29wZXIiLCJhdWQiOiJkcmZnXzdrMm05cSIsInN1YiI6Imd1aWRlLXRlc3QtYWN0aXZhdGlvbiIsImRldiI6InNsdjFfMDVmZWVmMDZlYjBlZWRjZmFiYmQyZGUzMzIxMTgzOTJjM2E0MzUxZDMxMWZmNzk1MzMzZmU5ODVkODgyMTVlYyIsImtuZCI6InBlcnBldHVhbCIsInNyYyI6ImFjY291bnQiLCJtdGgiOiJvbmxpbmUiLCJvd24iOiJUZXN0IEJ1eWVyIiwiaWF0IjoxNzY3MjI1NjAwLCJjaGsiOjE3NjczMTIwMDAsImV4cCI6MTc2OTgxNzYwMH0.a7po69mgcXx_5AHJ4OAVOyrg2KVg5CRf89GVssGtKbhrohf_sXV_R_pmCgDm6PwPjaU62HsBK_RqXU7I-Q1ICQ ``` - The signature is good, and the claims are: ```json { "iss": "sooper", "aud": "drfg_7k2m9q", "sub": "guide-test-activation", "dev": "slv1_05feef06eb0eedcfabbd2de332118392c3a4351d311ff795333fe985d88215ec", "knd": "perpetual", "src": "account", "mth": "online", "own": "Test Buyer", "iat": 1767225600, "chk": 1767312000, "exp": 1769817600 } ``` - `chk` is 2026-01-02 00:00 UTC, and `exp` is 2026-01-31 00:00 UTC. After `exp`, your code must report the token as expired. - Change one character of the payload, and the signature check must fail. Versions (the update hint): - `1.2` equals `1.2.0`; `1.10` is above `1.9`; `2.0` is above `1.99.99`; `1.2.3.4` is above `1.2.3`. - `v1.2`, `1.2-beta` and `1.2.3.4.5` are not versions: show no hint. ## 14. Reference code (JavaScript) For Node.js 18 or later, also in Electron. It follows this guide and runs as it is. A C++ plugin does the same steps, with libsodium or Monocypher for the signature and an HTTP client on a background thread. ```js import {createHash, createPublicKey, verify} from 'node:crypto'; const BASE = 'https://sooper.app'; const APP_KEY = 'drfg_7k2m9q'; // App key from your dashboard const PUBLIC_KEYS = new Map([ // key id -> public key, both from your dashboard ['', ''], ['', ''], ]); export function deviceIdHash(hardwareId) { const input = 'sooper-license-device:v1\n' + APP_KEY + '\n' + hardwareId; return 'slv1_' + createHash('sha256').update(input, 'utf8').digest('hex'); } /** The claims of a token that is good for this computer (also when it expired), or null. */ export function readToken(token, myDeviceIdHash) { try { const parts = String(token).split('.'); if (parts.length !== 3) return null; const header = JSON.parse(Buffer.from(parts[0], 'base64url').toString('utf8')); if (header.alg !== 'EdDSA' || !PUBLIC_KEYS.has(header.kid)) return null; const key = createPublicKey({key: {kty: 'OKP', crv: 'Ed25519', x: PUBLIC_KEYS.get(header.kid)}, format: 'jwk'}); const signed = Buffer.from(parts[0] + '.' + parts[1], 'ascii'); if (!verify(null, signed, key, Buffer.from(parts[2], 'base64url'))) return null; const claims = JSON.parse(Buffer.from(parts[1], 'base64url').toString('utf8')); if (claims.iss !== 'sooper' || claims.aud !== APP_KEY || claims.dev !== myDeviceIdHash) return null; return claims; } catch { return null; } } const nowSeconds = () => Date.now() / 1000; export const isExpired = (claims) => claims.exp !== undefined && claims.exp <= nowSeconds(); export const needsCheckIn = (claims) => claims.chk !== undefined && claims.chk <= nowSeconds(); async function post(path, body) { try { const res = await fetch(BASE + path, {method: 'POST', headers: {'content-type': 'application/json'}, body: JSON.stringify(body)}); const json = res.status === 204 ? null : await res.json().catch(() => null); return {status: res.status, json, retryAfter: Number(res.headers.get('retry-after')) || 0}; } catch { return {status: 0, json: null, retryAfter: 0}; // no network: temporary } } const sleep = (seconds) => new Promise((resolve) => setTimeout(resolve, seconds * 1000)); /** * Browser activation. device = {deviceIdHash, deviceName, platform, appVersion, host, pluginFormat}. * show(userCode, activateUrl) shows the code and opens the link. Returns {token, claims, hint} or {error}. */ export async function activateInBrowser(device, show, intent = 'activate') { const start = await post('/api/licensing/v1/activation-requests', {appKey: APP_KEY, intent, ...device}); if (start.status !== 200) return {error: start.json?.error ?? 'network', status: start.status}; const {requestId, pollToken, userCode, activateUrl, pollIntervalSeconds, expiresInSeconds} = start.json.data; show(userCode, activateUrl); const end = Date.now() + expiresInSeconds * 1000; while (Date.now() < end) { const poll = await post('/api/licensing/v1/activation-requests/' + requestId + '/poll', {pollToken}); if (poll.status === 200) { const {token, ...hint} = poll.json.data; const claims = readToken(token, device.deviceIdHash); return claims ? {token, claims, hint} : {error: 'bad_token'}; } if (poll.status === 410) return {error: poll.json?.error ?? 'expired'}; // 'expired' or 'cancelled' if (poll.status === 404) return {error: 'expired'}; // wrong pollToken: start again await sleep(Math.max(pollIntervalSeconds, poll.retryAfter)); // 204, 429, 5xx, no network } return {error: 'expired'}; } /** Check in. Returns {token, claims, hint}, {lock: {status, reason}} or {retryInSeconds}. */ export async function checkIn(token, device) { const {deviceIdHash: myDeviceIdHash, ...meta} = device; const res = await post('/api/licensing/v1/check-in', {token, ...meta}); const data = res.status === 200 ? res.json?.data : null; if (data?.status === 'ok') { const claims = readToken(data.token, myDeviceIdHash); if (claims) return {token: data.token, claims, hint: {latestVersion: data.latestVersion, releaseNotesUrl: data.releaseNotesUrl}}; } if (data?.status === 'revoked' || data?.status === 'no_right') return {lock: data}; return {retryInSeconds: res.retryAfter || 3600}; // temporary: keep the token } /** Deactivate this computer. True when the stored token can go. */ export async function deactivate(token) { return (await post('/api/licensing/v1/deactivate', {token})).status === 200; } /** -1, 0 or 1. Null when one of them is not a version: then show no hint. */ export function compareVersions(a, b) { const parse = (v) => (typeof v === 'string' && /^\d+(\.\d+){0,3}$/.test(v) ? v.split('.').map(Number) : null); const x = parse(a); const y = parse(b); if (!x || !y) return null; for (let i = 0; i < 4; i++) { if ((x[i] ?? 0) !== (y[i] ?? 0)) return (x[i] ?? 0) < (y[i] ?? 0) ? -1 : 1; } return 0; } ``` At every start: `readToken` on the stored token. No claims: show the locked screen. `needsCheckIn`: call `checkIn` on a background thread, store a new token, and lock on `lock`. `isExpired` with no verdict: ask the person to connect to the internet, and keep trying to check in. ## 15. Rate limits and good practice Rate limits per IP address (an IPv6 address counts per /64): - activation requests: 10 per minute; - polls: 90 per minute; - check-ins and deactivations together: 30 per minute; - license key attempts: 10 per minute, shared with the redeem page and offline key activation. After 20 wrong keys in one clock hour, every key attempt from that address answers `429` until that hour ends. A `429` comes with `Retry-After`. Many computers behind one address (a studio, a school) share these limits, so never retry in a tight loop. Good practice: - Store one token file per user for all your formats (VST3, AU, Standalone), for example `~/Library/Application Support///license.token`. Write it atomically (write a temporary file, then rename it). - The stored token is not proof on its own: compute the device id again at every start and check `dev`. - When several copies of your plugin run, let one of them check in, and let the others read the file again when it changes. - The audio thread only reads a flag. No network and no crypto in the audio callback. - Lock only on a check-in verdict (`revoked`, `no_right`) or an expired token. Never on network errors. - Keep a "highest time seen" mark. If the clock goes back a lot, ask for a check-in before you trust `exp`. - Show the code during browser activation, and a Deactivate button in your license screen. - Licensing slows casual sharing. It does not stop a determined cracker, so do not spend your time on anti-tamper code.