Create a license
Creates a license from a policy and returns it with its license key.
POST /v1/licenses
Use cases
- Issue a license when a customer pays for your application.
- Issue licenses from a script, such as when you move from another licensing system.
- Issue a license with its own limits, such as a larger device limit for one customer.
Authentication
Send an API key. This endpoint requires the scope licenses:write. See Authentication and Scopes.
An integration that is limited to one product can create licenses only from the policies of that product. See Product.
Request
Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | The word Bearer, a space and the API key. |
Content-Type | Yes | application/json. |
Body
| Field | Type | Required | Description |
|---|---|---|---|
policy_id | string | Yes | The ID of the policy. The license gets the settings and the product of this policy. See Policies. |
customer_id | string | No | The ID of the customer who owns the license. See Customers. |
name | string | No | The name of the license. |
expiration_strategy | string | No | The After expiry rule of the license itself: expire, keep_access or perpetual_fallback. Leave it out to use the rule of the policy. See License overrides. |
max_devices | integer | No | The device limit of the license itself. Leave it out to use the limit of the policy. |
max_seats | integer | No | The seat limit of the license itself. Leave it out to use the limit of the policy. |
max_processes | integer | No | The process limit per device of the license itself. Leave it out to use the limit of the policy. |
A license cannot override a setting that its policy does not use. For example, max_devices is allowed only when the policy binds devices. See License overrides.
Response
The answer has the status 201.
| Field | Type | Description |
|---|---|---|
id | string | The ID of the license. |
product_id | string | The ID of the product of the license. |
policy_id | string | The ID of the policy that the license was issued from. |
customer_id | string or null | The ID of the customer who owns the license. It is null when the license has no owner. |
customer | object or null | The customer who owns the license. It is null when the license has no owner. See Customer. |
name | string or null | The name of the license. |
key | string | The license key. See License keys. |
status | string | active, grace, expired or suspended. See Statuses. |
expires_at | string or null | The time when the license expires. It is null when the license has no expiry date. See Expiry. |
activated_at | string or null | The time of the first successful claim. It is null when the license was never claimed. |
suspended_at | string or null | The time when the license was suspended. It is null when the license is not suspended. |
last_validated_at | string or null | The time of the last validation through the License API. It is null when the license was never validated. |
expiration_strategy | string or null | The After expiry rule of the license itself: expire, keep_access or perpetual_fallback. It is null when the rule of the policy applies. See License overrides. |
max_devices | integer or null | The device limit of the license itself. It is null when the limit of the policy applies. |
max_seats | integer or null | The seat limit of the license itself. It is null when the limit of the policy applies. |
max_processes | integer or null | The process limit per device of the license itself. It is null when the limit of the policy applies. |
resolved | object | The settings that apply to the license. The overrides of the license are already applied to the settings of the policy. See Resolved. |
created_at | string | The time when the license was created. |
updated_at | string | The time when the license was last changed. |
Customer
| Field | Type | Description |
|---|---|---|
id | string | The ID of the customer. |
external_ref | string | The ID of the customer in your own system. See Customers. |
email | string or null | The email address of the customer. |
first_name | string or null | The first name of the customer. |
last_name | string or null | The last name of the customer. |
Resolved
| Field | Type | Description |
|---|---|---|
duration_seconds | integer or null | The duration of a license in seconds. It is null when the policy is a lifetime policy. |
grace_period_seconds | integer or null | The grace period in seconds. It is null when the policy has no grace period. |
expiration_basis | string | issue or first_activation. The duration starts when the license is created or at the first claim. |
expiration_strategy | string | expire, keep_access or perpetual_fallback. See After expiry. |
binds_device | boolean | A claim must send a device fingerprint. |
binds_customer | boolean | A claim must name the customer who takes the seat. |
max_devices | integer or null | The device limit. It is null when there is no limit. |
max_seats | integer or null | The seat limit. It is null when there is no limit. |
max_processes | integer or null | The process limit per device. It is null when there is no limit. |
requires_heartbeat | boolean | Each device keeps its binding with heartbeats. |
heartbeat_interval_seconds | integer or null | The time between two heartbeats in seconds. |
heartbeat_grace_seconds | integer or null | The extra time for a late heartbeat in seconds. |
process_interval_seconds | integer or null | The time between two process heartbeats in seconds. It is null when process tracking is off. |
process_grace_seconds | integer or null | The extra time for a late process heartbeat in seconds. |
offline_validation | boolean | The application can check out a signed license file. |
license_file_ttl_seconds | integer or null | The lifetime of a license file in seconds. It is null when the default of 30 days applies. |
license_file_encrypted | boolean | License files are encrypted. |
entitlements | array of objects | The entitlements of the policy together with the entitlements of the license. See Entitlement. |
See Policies for the meaning of each setting.
Entitlement
| Field | Type | Description |
|---|---|---|
id | string | The ID of the entitlement. |
code | string | The code that your application checks for, such as PRO. |
name | string | The name of the feature. |
description | string or null | A sentence that says what the entitlement unlocks. |
created_at | string | The time when the entitlement was created. |
updated_at | string | The time when the entitlement was last changed. |
Errors
| Status | Reason | Description |
|---|---|---|
| 400 | The request body could not be read. | The body is not valid JSON. |
| 400 | The submitted details are not valid. | A field is not valid. The errors field names it. See the table below. |
| 400 | The selected policy is not valid. | No policy in your account has the ID in policy_id. An integration that is limited to one product gets the same answer for a policy of another product. |
| 400 | The selected customer is not valid. | No customer in your account has the ID in customer_id. |
| 401 | An API key is required. | The request has no Authorization header, the header is empty, or the header does not use the Bearer scheme. |
| 401 | The API key is not valid. | No integration has this key. |
| 401 | The API key has expired. | The expiry date of the key has passed. |
| 402 | The Free plan allows 100 active licenses. Upgrade the plan to create another license. | Your account is at the active license limit of the Free plan. See Active licenses. |
| 403 | This integration does not have the licenses:write scope. | The integration does not have licenses:write. |
| 429 | There are too many requests. Try again later. | See Rate limits. |
These fields can be in errors:
| Field | Description |
|---|---|
policy_id | The policy is missing, or it is not a policy of your account. |
customer_id | The customer ID is not valid, or it is not a customer of your account. |
name | The name is too long. |
expiration_strategy | The value is not expire, keep_access or perpetual_fallback. Or the policy has no duration, and the value is not expire. |
max_devices | The limit is less than one, or the policy does not bind devices. |
max_seats | The limit is less than one, or the policy does not bind customers. |
max_processes | The limit is less than one, or the policy does not track processes. |
See Errors.
Example
curl https://api.seatify.dev/v1/licenses \
-H "Authorization: Bearer $SEATIFY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"policy_id": "'$POLICY_ID'",
"customer_id": "'$CUSTOMER_ID'",
"name": "Anders Petrenko, annual"
}'The answer:
{
"id": "<license id>",
"product_id": "<product id>",
"policy_id": "<policy id>",
"customer_id": "<customer id>",
"customer": {
"id": "<customer id>",
"external_ref": "usr_000001",
"email": "anders.petrenko0@brightwater.example",
"first_name": "Anders",
"last_name": "Petrenko"
},
"name": "Anders Petrenko, annual",
"key": "<license key>",
"status": "active",
"expires_at": "2027-09-27T18:07:50Z",
"activated_at": null,
"suspended_at": null,
"last_validated_at": null,
"expiration_strategy": null,
"max_devices": null,
"max_seats": null,
"max_processes": null,
"resolved": {
"duration_seconds": 31536000,
"grace_period_seconds": 1209600,
"expiration_basis": "issue",
"expiration_strategy": "expire",
"binds_device": true,
"binds_customer": true,
"max_devices": 5,
"max_seats": 5,
"max_processes": null,
"requires_heartbeat": false,
"heartbeat_interval_seconds": null,
"heartbeat_grace_seconds": null,
"process_interval_seconds": null,
"process_grace_seconds": null,
"offline_validation": false,
"license_file_ttl_seconds": null,
"license_file_encrypted": false,
"entitlements": [
{
"id": "<entitlement id>",
"code": "BATCH",
"name": "Batch Processing",
"description": "Queues and runs jobs unattended.",
"created_at": "2025-09-14T23:00:00Z",
"updated_at": "2025-09-14T23:00:00Z"
},
{
"id": "<entitlement id>",
"code": "CLOUD_SYNC",
"name": "Cloud Sync",
"description": "Synchronises projects across devices.",
"created_at": "2025-05-18T23:00:00Z",
"updated_at": "2025-05-18T23:00:00Z"
}
]
},
"created_at": "2026-09-27T18:07:50Z",
"updated_at": "2026-09-27T18:07:50Z"
}