Skip to content
Add your application

Add your application to Seatify

This guide adds licensing to your application. At the end, your application claims a license on the first run, validates it on each start, sends heartbeats while it runs and releases the license when the user signs out.

Before you start

You need these objects in the dashboard:

  • A product and a publishable key for it. Your application sends the publishable key with every request.
  • A policy for the product. The policy decides whether a claim binds a device, a customer or both, and whether heartbeats are required.
  • A license issued from the policy. Your user enters its key in your application.

The examples call https://license.seatify.dev. In curl, the keys and the fingerprint are the variables $SEATIFY_PUBLISHABLE_KEY, $LICENSE_KEY and $DEVICE_FINGERPRINT. In the other languages, they are variables of your application.

Choose a fingerprint

Your application identifies the device with a fingerprint. Seatify compares the fingerprint as an exact string, and the case of the letters matters. A different fingerprint is a different device, and it takes another device slot. See Devices.

Use a value that stays the same when your application restarts or updates. Most platforms provide such a value:

PlatformValue
macOSIOPlatformUUID, from the IOPlatformExpertDevice entry of the I/O Registry.
WindowsMachineGuid, in the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography.
LinuxThe contents of /etc/machine-id.
iOSidentifierForVendor of UIDevice. The value changes when the user removes all your applications from the device.
AndroidSettings.Secure.ANDROID_ID. The value is different for each app signing key.

You can send a hash of the value instead of the value itself. Send the hostname of the device too. The dashboard shows the device by this name.

Choose a customer reference

If the policy binds customers, the claim names the user with a customer reference. Seatify finds the customer by this reference only. See References.

Use a value that identifies the person and does not change. Send the same value from every device of that person. Then the person holds one seat on all their devices.

SourceValue
Your own user systemThe user ID, such as user-42.
Email addressThe address that the user signs in with or bought the license with.
Payment provider or storeThe customer ID that the provider gives the buyer, such as a Stripe or Paddle customer ID.
Sign-in providerThe user ID from Sign in with Apple, Google or Microsoft. This is the sub claim of the ID token.

If your application has no user system, use the email address.

Email addresses

Seatify compares the reference exactly. It removes the spaces around the reference, but it does not change the letters. Two spellings of one address are two customers, and each one takes a seat. So change each address to one standard form before you send it:

  1. Convert the address to the Unicode Normalization Form C (NFC). A letter with an accent, such as é, can be one character, or a letter and a separate accent mark. The two forms look the same, but they are different references. NFC always uses the one-character form.
  2. Change all letters to lower case. Ada@Example.com and ada@example.com are then one customer.

Keep all other characters. An address can contain an apostrophe, a plus sign or a dot, such as o'brien@example.com. These characters are part of the address.

Some keyboards change a straight apostrophe (') into a curly apostrophe (’). These are two different characters. Use an input field for email addresses, because it keeps the straight apostrophe.

Steps

Claim the license

Claim the license on the first run, after the user enters the license key. The policy decides what the claim binds. A claim can bind the device, take a seat for the user, or both. If the policy binds neither, the claim creates no binding. The first claim also activates the license.

A customer or a device is required only if the policy binds it. Seatify ignores a customer or a device that the policy does not bind. So send the device and the customer in every claim. For the customer, send the customer reference. See Choose a customer reference.

curl https://license.seatify.dev/v1/licenses/claim \
  -H "Seatify-Publishable-Key: $SEATIFY_PUBLISHABLE_KEY" \
  -H "Content-Type: application/json" \
  --data @- <<EOF
{
  "key": "$LICENSE_KEY",
  "device": { "fingerprint": "$DEVICE_FINGERPRINT", "hostname": "studio-mac" },
  "customer": { "external_ref": "user-42", "email": "ada@example.com" }
}
EOF

A successful claim answers with valid set to true:

{
  "valid": true,
  "status": "active",
  "expired": false,
  "reason": null,
  "license": {
    "id": "<license id>",
    "name": "Studio team",
    "expires_at": "2026-12-20T00:00:00Z",
    "activated_at": "2026-01-22T01:50:56Z"
  },
  "entitlements": [
    {
      "code": "CORE",
      "name": "Core"
    },
    {
      "code": "EXPORT_4K",
      "name": "4K Export"
    }
  ],
  "limits": {
    "max_devices": 50,
    "max_seats": 25,
    "max_processes": 4
  },
  "device": {
    "id": "<device binding id>",
    "expires_at": "2026-09-25T14:21:46Z"
  },
  "heartbeat": {
    "required": true,
    "interval_seconds": 3600,
    "grace_seconds": 1800
  },
  "process": null,
  "process_heartbeat": {
    "tracked": true,
    "interval_seconds": 300,
    "grace_seconds": 120
  }
}

If valid is false, the reason field names the cause. See Handle the answer. A claim from a device that is already bound returns the same binding and does not use another device slot.

Store the license key

After a successful claim, store the license key on the device. Your application reads the key on each start and sends it with every request.

Store the key in upper case. Seatify ignores the case of the letters, but an encrypted license file needs the key in upper case. See License keys.

Validate on each start

Validate the license each time your application starts. Send the stored key and the fingerprint.

curl https://license.seatify.dev/v1/licenses/validate \
  -H "Seatify-Publishable-Key: $SEATIFY_PUBLISHABLE_KEY" \
  -H "Content-Type: application/json" \
  --data @- <<EOF
{
  "key": "$LICENSE_KEY",
  "device": { "fingerprint": "$DEVICE_FINGERPRINT" }
}
EOF

Decide on valid. You can show status to the user. An expired license can still be valid, because the policy can keep access after expiry. See Statuses.

A validation does not bind a device. If the policy binds devices and the answer has the reason not_claimed, claim the license again. This happens after a release, or when a heartbeat lease has ended while your application was closed.

Send heartbeats

Send heartbeats only if the policy requires them. The claim answer says so in heartbeat.required. Send a heartbeat every heartbeat.interval_seconds while your application runs.

curl https://license.seatify.dev/v1/licenses/heartbeat \
  -H "Seatify-Publishable-Key: $SEATIFY_PUBLISHABLE_KEY" \
  -H "Content-Type: application/json" \
  --data @- <<EOF
{
  "key": "$LICENSE_KEY",
  "device": { "fingerprint": "$DEVICE_FINGERPRINT" }
}
EOF

Each heartbeat starts the lease of the device again. The answer shows when the lease ends in device.expires_at. When the lease ends, Seatify releases the device, and a heartbeat answers not_claimed. Claim the license again in that case. See Heartbeats and leases.

Release the license

Release the license when the user signs out or moves the license to another device. Send the stored key and the fingerprint. Then remove the stored key.

curl https://license.seatify.dev/v1/licenses/release \
  -H "Seatify-Publishable-Key: $SEATIFY_PUBLISHABLE_KEY" \
  -H "Content-Type: application/json" \
  --data @- <<EOF
{
  "key": "$LICENSE_KEY",
  "device": { "fingerprint": "$DEVICE_FINGERPRINT" }
}
EOF

The answer has released set to true. The device slot is free immediately. The release keeps the seat of the user. A release also works on an expired or suspended license. See Release.

Handle the answer

The License API answers every licensing outcome with the status 200, a refusal too. Your application decides on valid, or on released for a release. The reason field names the cause of a refusal.

ReasonAnswered byWhat your application does
license_not_foundEvery stepAsk the user to enter the key again.
product_mismatchEvery stepThe key belongs to another product. Ask the user for the right key.
expiredClaim, validate, heartbeatTell the user that the license has expired.
suspendedClaim, validate, heartbeatTell the user that the license is suspended.
device_requiredClaim, validateSend the device. The policy binds devices.
customer_requiredClaimSend the customer. The policy binds customers.
device_limit_reachedClaimTell the user that all devices are in use. The user must release another device first.
seat_limit_reachedClaimTell the user that all seats are taken.
not_claimedValidate, heartbeat, releaseClaim the license again. After a release, no action is needed.
heartbeat_not_requiredHeartbeatStop sending heartbeats. The policy does not require them.

Other statuses mean that the request itself is wrong:

StatusCause
400The body is not valid. The errors field names each field that is wrong.
401The publishable key is missing or not valid.
429Your application sent too many requests. Try again later.

If the License API cannot be reached, your application decides what to do. For a license that must work without a network, see Offline validation.

Signed responses

Every answer with the status 200 is signed. Your application can check the signature before it trusts the answer. See Verify signed responses.

Next steps