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/checkout

Checkout Floating Session

Check out a floating seat for a host. Requires a `client` or `admin` key, or the `license:activate` grant; a product-bound key works only for its products. Ignores `Idempotency-Key`. A repeat checkout for a host that still has an active session extends it and must prove possession with `timestamp` and `signature`.

Checkout, heartbeat and checkin ignore the Idempotency-Key header: every request is processed, and no response is stored or replayed. Each of them proves possession of the session, so a stored response must never stand in for that check. If a checkout response is lost, the seat stays reserved for that hostId until its lease expires, and a repeat checkout without the session's signature returns 401 until then. After that, check out again.

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.

hostIdrequired
string

Unique host or device identifier. Required. 1–64 characters.

deviceTag
string

Optional human-readable device label. 1–64 characters.

userIdentifier
string

Optional user identifier recorded for audits, up to 255 characters.

timestamp
string | number

Only for extending this host's existing active session: the session's current `nextNonce` from the previous checkout or heartbeat. A string of up to 128 characters (or a number).

signature
string

Only for extending an existing session: HMAC-SHA256 of `"<sessionId>:<timestamp>"` keyed with the previous `sessionSecret`. Exactly 64 hexadecimal characters.

Responses

200Seat checked out successfully
400
401The API key is missing, invalid or not allowed here (`api_key_missing` / `api_key_invalid`); the license can't be used: unknown, expired, blocked, not floating, or assigned to a disabled customer (`license_invalid_or_forbidden`); or a repeat checkout for this host has a missing or wrong signature (`session_invalid`).
402The vendor's workspace subscription doesn't cover this checkout: restricted mode, a license archived when the plan lapsed, or a new session during the continuity period.
403Every seat is in use (`floating_seats_full`, code 4, with `currentSessions` and `maxSessions`), the API key has no workspace, or it isn't allowed from this IP address.
404No active product with this ID in the API key's workspace.
413
429Rate limited. On this endpoint the plan limit, the per-IP share for `client` keys and the per-action limit all answer with the nested shape and `code: 3`. Calls for the same license key are also limited to 5 per minute (shared with deactivate and checkout), answered as `Too many checkout attempts. Please try again later.` in the same shape. The Free-plan monthly quota answers `quota_exceeded` with `code: 1`, and the Idempotency-Key budget answers the flat `rate_limited` body. Honor `Retry-After`; see Rate Limits.

Response Body (200)

code
integer
message
string

"Seat checked out", or "Existing session extended" for a signed repeat checkout.

sessionId
string
sessionSecret
string

A temporary cryptographic secret returned on checkout, used by the client to sign subsequent heartbeat and checkin requests.

nextNonce
string

The initial rotating cryptographic nonce generated by the server. Must be passed in the subsequent heartbeat or checkin request as the timestamp parameter.

expiresAt
string
heartbeatInterval
integer

Seconds between heartbeats (60 unless the license sets another value).

metadata
object (nullable)

The license metadata (or null).

expirationDate
string (nullable)

When the license itself expires (ISO 8601), or null if it never expires. Not to be confused with `expiresAt`, the seat lease.

currentSessions
integer
maxSessions
integer (nullable)

The license's seat limit; null means no limit.

licenseeName
string

Masked name of the assigned customer. Omitted when the license has no customer.

licenseeEmail
string

Masked email of the assigned customer. Omitted when the license has no customer.

Request Example
curl -X POST "https://api.keymint.dev/key/checkout" \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
  "productId": "4898d6707ffa56ed9b0eea",
  "licenseKey": "A8E2K-9F1BC-3D4GH-7J2KM",
  "hostId": "mac-studio-m2",
  "deviceTag": "MacBook Pro",
  "userIdentifier": "string",
  "timestamp": "string",
  "signature": "string"
}'
Response (200 OK)
{
  "code": 0,
  "message": "Seat checked out",
  "sessionId": "Tq3bXhW9sYk2LmN4pR7sT9",
  "sessionSecret": "3f1c0e…(64 hex characters)",
  "nextNonce": "Vb2kQ9xLmN4pR7sT9vW1yZ3a",
  "expiresAt": "2026-11-07T10:05:00.000Z",
  "heartbeatInterval": 60,
  "metadata": {},
  "expirationDate": null,
  "currentSessions": 3,
  "maxSessions": 10
}