Send a process heartbeat
Tells Seatify that a process is still running. Seatify ends a process that stops sending heartbeats.
POST /v1/processes/heartbeat
Lease
Every process has a lease. A spawn starts the lease. Each process heartbeat starts it again. The lease lasts for the process interval plus the process grace. See Leases.
- Send a heartbeat every
process_heartbeat.interval_secondswhile your application runs. The answers to the claim and to the spawn have this value. - When the lease ends, the process ends, and its slot is free. A heartbeat cannot start an ended lease again. It answers
process_not_spawned, and your application must spawn the process again. The spawn checks the limit again. - A process has a lease even if the policy does not require license heartbeats.
Effects
- Seatify records the time of the last heartbeat on the process. The dashboard shows it with the process.
- A heartbeat does not check the process limit. The process already holds its slot.
- A process heartbeat does not start the device lease again. If the policy requires heartbeats, also send license heartbeats.
- Seatify does not record a successful heartbeat in the activity of the license. It records a refused one. See Activity.
Authentication
Send the publishable key of the product. See Authentication.
Request
| Header | Required | Description |
|---|---|---|
Seatify-Publishable-Key | Yes | The publishable key of the product. |
Content-Type | Yes | Always application/json. |
Seatify-Nonce | No | A new random value that the signature includes. See Signed responses. |
Seatify-Signing-Key | No | The key ID of the signing key in your application. See Signed responses. |
| Field | Type | Required | Description |
|---|---|---|---|
key | string | Yes | The license key. |
device | object | Yes | The device that the process runs on. |
process | object | Yes | The process. |
The device object has these fields:
| Field | Type | Required | Description |
|---|---|---|---|
fingerprint | string | Yes | The fingerprint that the device sent in its claim. The fingerprint is case-sensitive. See Devices. |
hostname | string | No | The name of the device. A heartbeat does not store the name. So your application can send the same device object as in the claim. |
The process object has these fields:
| Field | Type | Required | Description |
|---|---|---|---|
pid | string | Yes | The process ID that your application sent in the spawn. The process ID is case-sensitive. |
A device object or a process object with no values counts as missing.
Response
The answer is a license check object.
If the heartbeat succeeds, process.expires_at is the end of the new lease. It is the time of the heartbeat plus process_heartbeat.interval_seconds and process_heartbeat.grace_seconds. See Process object.
The entitlements array is always empty in the answer to a heartbeat. Take the entitlements from the answer to the claim or the validation.
Reasons
A refused heartbeat answers with the status 200 and a reason. It does not start the lease again.
| Reason | Description |
|---|---|
license_not_found | No license has this key. Ask the user to check the key. |
product_mismatch | The license belongs to another product. Ask the user to check the key. |
suspended | The license is suspended. Tell the user. |
expired | The license has expired. Tell the user. |
process_tracking_not_enabled | The policy has no process interval. Stop sending process heartbeats. |
not_claimed | The device has no binding on this license, or its heartbeat lease has ended. Claim the license again, and then spawn again. |
process_not_spawned | The device has no running process with this process ID, or its lease has ended. Spawn the process again. |
See Refused answers.
Errors
| Status | Reason | Description |
|---|---|---|
| 400 | The request body could not be read. | The body is not valid JSON, or the process ID is not a string. |
| 400 | The submitted details are not valid. | A field is not valid. The errors field names it. See the table below. |
| 400 | The signing key is not known. | Your organization has no signing key with the ID in Seatify-Signing-Key. |
| 400 | The nonce must be at most 255 characters. | The value of Seatify-Nonce is too long. |
| 401 | A publishable key is required. | The request has no Seatify-Publishable-Key header, or the header is empty. |
| 401 | The publishable key is not valid. | No product has this key. |
| 429 | There are too many requests. Try again later. | See Rate limits. |
These fields can be in errors:
| Field | Description |
|---|---|
key | The license key is missing or too long. |
device | The request has no device. |
device.fingerprint | The device object has no fingerprint, or the fingerprint is too long. |
device.hostname | The hostname is too long. |
process | The request has no process. |
process.pid | The process ID is too long. |
See Errors.
Example
curl https://license.seatify.dev/v1/processes/heartbeat \
-H "Seatify-Publishable-Key: $SEATIFY_PUBLISHABLE_KEY" \
-H "Content-Type: application/json" \
--data @- <<EOF
{
"key": "$LICENSE_KEY",
"device": { "fingerprint": "$DEVICE_FINGERPRINT" },
"process": { "pid": "$PROCESS_ID" }
}
EOF{
"valid": true,
"status": "active",
"expired": false,
"reason": null,
"license": {
"id": "<license id>",
"name": "CIRRUS Team Floating Devices #0007",
"expires_at": "2026-12-20T00:00:00Z",
"activated_at": "2026-01-22T01:50:56Z"
},
"entitlements": [],
"limits": {
"max_devices": 50,
"max_seats": 25,
"max_processes": 4
},
"device": {
"id": "<device binding id>",
"expires_at": "2026-09-26T14:50:43Z"
},
"heartbeat": {
"required": true,
"interval_seconds": 3600,
"grace_seconds": 1800
},
"process": {
"id": "<process id>",
"pid": "4242",
"expires_at": "2026-09-26T13:27:43Z"
},
"process_heartbeat": {
"tracked": true,
"interval_seconds": 300,
"grace_seconds": 120
}
}