Skip to content

Get a policy

Returns a policy with its settings.

GET /v1/policies/{policy}

Use cases

  • Read the settings of a policy before you create a license from it, such as the limits that a license can override.
  • Check that a policy ID that your backend stored still exists.
  • Read the duration of a policy, to tell a customer how long a license lasts.

Authentication

Send an API key. This endpoint requires the scope policies:read. See Authentication and Scopes.

An integration that is limited to one product can get only the policies of that product. See Product.

Request

Path parameters

ParameterTypeDescription
policystringThe ID of the policy.

Headers

HeaderRequiredDescription
AuthorizationYesThe word Bearer, a space and the API key.

Response

The answer has the status 200.

FieldTypeDescription
idstringThe ID of the policy.
product_idstringThe ID of the product that the policy belongs to.
namestringThe name of the policy.
codestring or nullThe short identifier of the policy, such as PRO. It is null when the policy has no code.
key_prefixstring or nullThe first group of every license key that the policy issues. It is null when the policy has no key prefix.
duration_secondsinteger or nullThe duration of a license in seconds. It is null when the policy is a lifetime policy.
grace_period_secondsinteger or nullThe grace period in seconds. It is null when the policy has no grace period.
expiration_basisstringissue or first_activation. The duration starts when the license is created or at the first claim.
expiration_strategystringexpire, keep_access or perpetual_fallback. See After expiry.
binds_devicebooleanA claim must send a device fingerprint.
binds_customerbooleanA claim must name the customer who takes the seat.
max_devicesinteger or nullThe device limit. It is null when there is no limit.
max_seatsinteger or nullThe seat limit. It is null when there is no limit.
max_processesinteger or nullThe process limit per device. It is null when there is no limit.
requires_heartbeatbooleanEach device keeps its binding with heartbeats.
heartbeat_interval_secondsinteger or nullThe time between two heartbeats in seconds.
heartbeat_grace_secondsinteger or nullThe extra time for a late heartbeat in seconds.
process_interval_secondsinteger or nullThe time between two process heartbeats in seconds. It is null when process tracking is off.
process_grace_secondsinteger or nullThe extra time for a late process heartbeat in seconds.
offline_validationbooleanThe application can check out a signed license file.
license_file_ttl_secondsinteger or nullThe lifetime of a license file in seconds. It is null when the default of 30 days applies.
license_file_encryptedbooleanLicense files are encrypted.
created_atstringThe time when the policy was created.
updated_atstringThe time when the policy was last changed.

A license can override expiration_strategy, max_devices, max_seats and max_processes. See License overrides. See Policies for the meaning of each setting.

Errors

StatusReasonDescription
401An API key is required.The request has no Authorization header, the header is empty, or the header does not use the Bearer scheme.
401The API key is not valid.No integration has this key.
401The API key has expired.The expiry date of the key has passed.
403This integration does not have the policies:read scope.The integration has neither policies:read nor policies:write.
404The policy was not found.No policy in your account has this ID. An integration that is limited to one product gets the same answer for a policy of another product.
429There are too many requests. Try again later.See Rate limits.

See Errors.

Example

curl https://api.seatify.dev/v1/policies/$POLICY_ID \
  -H "Authorization: Bearer $SEATIFY_API_KEY"

The answer:

{
  "id": "<policy id>",
  "product_id": "<product id>",
  "name": "Perpetual Desktop",
  "code": "PERP-DESKTOP",
  "key_prefix": "PERP",
  "duration_seconds": null,
  "grace_period_seconds": null,
  "expiration_basis": "issue",
  "expiration_strategy": "expire",
  "binds_device": true,
  "binds_customer": false,
  "max_devices": 3,
  "max_seats": null,
  "max_processes": null,
  "requires_heartbeat": false,
  "heartbeat_interval_seconds": null,
  "heartbeat_grace_seconds": null,
  "process_interval_seconds": null,
  "process_grace_seconds": null,
  "offline_validation": true,
  "license_file_ttl_seconds": 2592000,
  "license_file_encrypted": false,
  "created_at": "2025-07-24T23:00:00Z",
  "updated_at": "2025-07-24T23:00:00Z"
}