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

Sign Offline Key

Sign an offline license file for a machine. Like an activation, it uses a device slot, and the slot stays taken until the file expires. Requires an `admin` key or the `license:sign` grant; a product-bound key works only for its products. Refused while the workspace is in billing continuity or restricted mode.

Device Activations: Generating an offline key for a specific hostId (machine code) will consume a device activation slot, exactly like a standard online activation. This ensures that offline licenses respect your configured limits. Because a signed file keeps working offline until it expires, the slot stays taken until then: deactivating the device through the API or a customer-portal reset does not free it early (the deactivate call answers 409 with offlineValidUntil). A reset from your dashboard still frees it. Keep offline files short-lived with ttl or the product's maximum offline lifetime if you expect machines to change often.

Authentication required: Bearer Token in Authorization header.

Parameters

Idempotency-Key
headerstring

Use a unique value to safely retry this request without repeating its effects.

Example9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d

Request Body (application/json)

productIdrequired
string

The product ID. 22–256 characters.

licenseKeyrequired
string

The license key. 20–256 characters.

hostIdrequired
string

The machine code (hardware fingerprint) to bind the offline license to. Required. 1–64 characters.

ttl
integer

Optional lifetime of the signed file in seconds, 60–315,360,000 (10 years). Required when the license has no expiry date and the product has no maximum offline lifetime; can't run past the license's expiry date.

Responses

200Offline license key signed successfully
400Invalid request. Validation errors name the field: `Field '<name>' is required.` or `Field '<name>': <problem>`, and keep the legacy `error: { code: "VALIDATION_ERROR" }` object. A body that isn't valid JSON is also `invalid_request`. Signing problems (no TTL for a license without an expiry, a TTL past the expiry, no signing key for the workspace) are also `invalid_request`. A request without `hostId` is refused with `invalid_request` (the body also keeps the legacy `error: { code: "BAD_REQUEST" }` object). An `Idempotency-Key` reused with a different method, path, query or body returns `idempotency_mismatch`. An `Idempotency-Key` longer than 255 characters, or with characters outside printable ASCII, returns `invalid_request`.
401The API key is missing, invalid or not allowed here, or the license can't be used (`license_invalid_or_forbidden`, same cases as activate). When the key passes the endpoint check but fails the product or permission check, the body is `api_key_invalid` and also keeps the legacy `error: { code: "UNAUTHORIZED" }` object.
402The workspace is in billing continuity or restricted mode, or the license was archived when the plan lapsed.
403The license is already active on `maxActivations` devices (`activation_limit_reached`), the API key isn't allowed from this IP address (`ip_not_allowed`), the key has no workspace (`api_key_no_workspace`), or offline licenses aren't available on the plan (`forbidden`). The last three also keep the legacy `error: { code: "FORBIDDEN" }` object.
404No active product with this ID (`product_not_found`). The body also keeps the legacy `error: { code: "NOT_FOUND" }` object.
409The device was deactivated while the file was being signed (`retry`); try again. A request with the same `Idempotency-Key` is still running (`idempotency_in_progress`), or an old idempotency record can't be replayed (`idempotency_legacy`).
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`. 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.
503

Response Body (200)

file
string

The signed license file as a JSON string: `{ signedDate, signedKey, keyId, publicKeyFingerprint }`, where `signedKey` is an EdDSA (Ed25519) JWT.

Request Example
curl -X POST "https://api.keymint.dev/key/sign" \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
  "productId": "4898d6707ffa56ed9b0eea",
  "licenseKey": "A8E2K-9F1BC-3D4GH-7J2KM",
  "hostId": "mac-studio-m2",
  "ttl": 1
}'
Response (200 OK)
{
  "file": "string"
}