EYMINT
DocumentationAPI Reference
BlogDashboard
EYMINT
SectionsDocumentationAPI Reference
Go to Dashboard

For AI agents: the documentation index is at /llms.txt. Every docs page is also available as markdown by adding .md to its URL.

Overview

  • API Introduction
  • API Reference Overview
  • Authentication
  • Rate Limits
  • Error Codes

Customers

  • Create Customer
  • Get All Customers
  • Get Customer
  • Update Customer
  • Get Customer Keys
  • Toggle Status
  • Delete Customer

License Keys

  • Create Key
  • Get Key Info
  • Update Key
  • Activate Key
  • Sign Offline Key
  • Checkout Floating Session
  • Heartbeat Floating Session
  • Checkin Floating Session
  • Deactivate Key
  • Block Key
  • Unblock Key
  • Delete Key
post/key/heartbeat

Heartbeat Floating Session

Extend a floating session's lease and get the next nonce. Requires a `client` or `admin` key, or the `license:activate` grant; a product-bound key works only for its products. Ignores `Idempotency-Key`. A session that lapsed less than 15 seconds ago can still be renewed if its seat wasn't taken.

Authentication required: Bearer Token in Authorization header.

Request Body (application/json)

productIdrequired
string

The product ID. 22–256 characters.

licenseKeyrequired
string

The license key. 20–256 characters.

sessionIdrequired
string

The `sessionId` returned by checkout. 1–255 characters.

timestamprequired
string | number

The current `nextNonce` from the previous checkout or heartbeat response (the server requires an exact match; it is not a clock time). A string of up to 128 characters (or a number).

signaturerequired
string

HMAC-SHA256 of `"<sessionId>:<timestamp>"` keyed with the `sessionSecret` from checkout. Each nonce works once. Exactly 64 hexadecimal characters.

Responses

200Heartbeat extended successfully
400
401The API key is missing, invalid or not allowed here (`api_key_*`), or the license or session can't be used: unknown or blocked license, expired license, disabled customer, wrong signature or stale nonce (`session_invalid`).
402The workspace is in restricted mode, or the license was archived when the plan lapsed (outside the continuity period).
403The API key isn't allowed from this IP address.
404No active product with this ID in the API key's workspace.
410The session is unknown, checked in, expired more than 15 seconds ago, or its seat was taken by another host. Check out again.
413
429

Response Body (200)

code
integer
message
string
expiresAt
string
nextNonce
string

The newly rotated cryptographic nonce generated by the server. This must be used for the next subsequent heartbeat or checkin request.

Request Example
curl -X POST "https://api.keymint.dev/key/heartbeat" \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
  "productId": "4898d6707ffa56ed9b0eea",
  "licenseKey": "A8E2K-9F1BC-3D4GH-7J2KM",
  "sessionId": "Tq3bXhW9sYk2LmN4pR7sT9",
  "timestamp": "string",
  "signature": "string"
}'
Response (200 OK)
{
  "code": 0,
  "message": "Heartbeat received",
  "expiresAt": "2026-11-07T10:10:00.000Z",
  "nextNonce": "Kp8sT2vW1yZ3aB4cD5eF6gH7"
}