Skip to content

Check out a license file

Returns a signed license file that your application can check without a network.

POST /v1/licenses/check-out

When to check out

Check out a new license file after each successful validation. The stored file is then always new. A device that goes offline can use the file for its full lifetime. See Offline validation.

The policy of the license must allow offline validation. See Policies.

Device

If the policy binds devices, the license file is valid on one device only. The device must claim the license first. A check-out does not claim the license. If the heartbeat lease of the device has ended, the check-out fails with not_claimed.

If the policy does not bind devices, the file is valid on any device. Seatify ignores the device in the request. So your application can send the device in every check-out. See Binding.

Validity

Seatify issues a file only for a license that is valid. An expired license is still valid if the policy uses Keep access or Perpetual fallback. The file then has the status expired, and your application applies the After expiry rule from the file. See Check the license.

Signing key

Seatify signs the license file with the key that Seatify-Signing-Key names. Without the header, Seatify signs with the active key. The answer is signed with the same key.

Always name the key that your application embeds. Your application can only verify a file that one of its embedded keys signed. See Key selection.

Effects

  • A check-out does not bind a device, and it does not take a seat.
  • A check-out does not start the heartbeat lease again. Only a heartbeat does that.
  • A check-out does not change the time of the last validation. Only a validation does that.
  • A check-out does not activate the license. Only a claim does that. See Activation.
  • Seatify records each check-out in the activity of the license, a refused one too. See Activity.
  • Seatify cannot take back a file. The file works until it expires, also after you suspend the license or release the device. A shorter license file lifetime makes this time shorter.

Authentication

Send the publishable key of the product. See Authentication.

Request

HeaderRequiredDescription
Seatify-Publishable-KeyYesThe publishable key of the product.
Content-TypeYesAlways application/json.
Seatify-NonceNoA new random value that the signature includes. See Signed responses.
Seatify-Signing-KeyNoThe key ID of the signing key in your application. Seatify signs the answer and the license file with this key. See Signing key.
FieldTypeRequiredDescription
keystringYesThe license key.
deviceobjectNoThe device. If the policy binds devices and the request has no device, the check-out fails with the reason device_required.

The device object has these fields:

FieldTypeRequiredDescription
fingerprintstringYesThe fingerprint that the device sent in its claim. The fingerprint is case-sensitive. See Devices.
hostnamestringNoThe name of the device. A check-out does not use the name. So your application can send the same device object as in the claim.

A device object with no values counts as a missing device.

Response

The answer is not a license check object. It has only these fields:

FieldTypeDescription
validbooleantrue if Seatify issued a license file.
reasonstringThe cause when valid is false. It is null when valid is true. See Reasons.
certificatestringThe license file.
issuedstringThe time when Seatify issued the file.
expires_atstringThe time when the file expires. This is not the expiry date of the license.
ttlintegerThe lifetime of the file in seconds. It is the license file lifetime of the policy. The default is 30 days.

Every field is always in the answer. When valid is false, certificate, issued, expires_at and ttl are null.

The file is text. It starts with the line -----BEGIN SEATIFY LICENSE FILE----- and ends with the line -----END SEATIFY LICENSE FILE-----. The file also holds issued, expires_at and ttl, in meta. The answer repeats them, so your application knows when to check out again without opening the file.

Store the file on the device, next to the license key. Replace the stored file after each successful check-out. To verify the file and read it, see Verify the file and License file contents.

Reasons

A refused check-out answers with the status 200, valid set to false and a reason. Seatify issues no file.

ReasonDescription
license_not_foundNo license has this key. Ask the user to check the key.
product_mismatchThe license belongs to another product. Ask the user to check the key.
offline_validation_not_enabledThe policy does not allow offline validation. Turn on offline validation in the policy.
suspendedThe license is suspended. Remove the stored file, and tell the user.
expiredThe license has expired, and the policy uses Expire. Remove the stored file, and tell the user.
device_requiredThe policy binds devices. Send the device.
not_claimedThe device has no binding on this license, or its heartbeat lease has ended. Claim the license again. Then check out the file again.

Seatify checks the policy before the status of the license. So a suspended license under a policy without offline validation answers offline_validation_not_enabled.

See Reasons.

Errors

StatusReasonDescription
400The request body could not be read.The body is not valid JSON.
400The submitted details are not valid.A field is not valid. The errors field names it. See the table below.
400The signing key is not known.Your organization has no signing key with the ID in Seatify-Signing-Key.
400The nonce must be at most 255 characters.The value of Seatify-Nonce is too long.
401A publishable key is required.The request has no Seatify-Publishable-Key header, or the header is empty.
401The publishable key is not valid.No product has this key.
429There are too many requests. Try again later.See Rate limits.

These fields can be in errors:

FieldDescription
keyThe license key is missing or too long.
device.fingerprintThe device object has no fingerprint, or the fingerprint is too long.
device.hostnameThe hostname is too long.

See Errors.

Example

curl https://license.seatify.dev/v1/licenses/check-out \
  -H "Seatify-Publishable-Key: $SEATIFY_PUBLISHABLE_KEY" \
  -H "Seatify-Signing-Key: $SEATIFY_SIGNING_KEY_ID" \
  -H "Content-Type: application/json" \
  --data @- <<EOF
{
  "key": "$LICENSE_KEY",
  "device": { "fingerprint": "$DEVICE_FINGERPRINT" }
}
EOF
{
  "valid": true,
  "reason": null,
  "certificate": "-----BEGIN SEATIFY LICENSE FILE-----\neyJlbmMiOiJleUp0WlhSaElqcDdJbWx6YzNWbFpDSTZJakl3TWpZdE1Ea3RNalpVTVRNNk1EVTZORFJh\n…\n-----END SEATIFY LICENSE FILE-----",
  "issued": "2026-09-26T13:05:44Z",
  "expires_at": "2026-10-26T13:05:44Z",
  "ttl": 2592000
}