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
patch/key

Update License Key

Update a license's settings, assign an existing customer, or create and assign a new one. Send only the fields to change. Requires an `admin` key or the `license:manage` grant; a product-bound key works only for its products.

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 the license belongs to. 22–256 characters.

licenseKeyrequired
string

The license key to update. 20–256 characters.

maxActivations
integer | string (nullable)

New activation limit: a whole number from 0 to 1,000,000 (JSON number or string of digits), `"unlimited"`, or null for unlimited. Negative, decimal or other text values return 400 `invalid_request` naming the field; an empty string returns 400 `Invalid maxActivations value`.

expiryDate
string (nullable)

New ISO 8601 expiry date, up to 64 characters. Null or an empty string removes the expiry (the key never expires); omit the field to keep the current one.

customerId
string (nullable)

An existing customer in this workspace to assign, or null to unassign the current customer. 22–256 characters.

newCustomer
object

Create a customer and assign the license to them. Can't be combined with `customerId`.

metadata
object

Replaces the license's metadata. At most 10,000 characters when serialized as JSON.

versionId
string (nullable)

Product version ID (up to 64 characters), or null to clear it.

allowedHosts
array (nullable)

Replaces the allowed host IDs; null clears the restriction. At most 100 host IDs of up to 255 characters each.

licenseType
string [node-locked, floating]

The license type.

maxConcurrentSessions
integer (nullable)

Floating licenses: concurrent seats, 1–1,000,000. Null or omitted means no seat limit.

heartbeatInterval
integer (nullable)

Floating licenses: seconds between heartbeats, 60–86,400. Null means the default of 60.

sessionLeaseDuration
integer (nullable)

Floating licenses: seat lease in seconds, 300–31,536,000. Null means the default of 300.

Responses

200License updated
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`. 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`.
401
403The `customerId` isn't in this workspace, a plan limit or rule refuses the change (`forbidden`), the key has no workspace, or the key isn't allowed from this IP address.
404No license with this key for the product, or the product doesn't exist or is inactive.
409A conflicting record was written at the same time (`conflict`, code 2); retry. 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
429
503

Response Body (200)

code
integer
message
string
affectedCount
integer
Request Example
curl -X PATCH "https://api.keymint.dev/key" \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
  "productId": "4898d6707ffa56ed9b0eea",
  "licenseKey": "A8E2K-9F1BC-3D4GH-7J2KM",
  "maxActivations": 3,
  "expiryDate": "2026-11-26T14:39:21.707Z",
  "customerId": "078116d0069c32407b4f63",
  "newCustomer": {
    "name": "Jane Doe",
    "email": "jane@example.com"
  },
  "metadata": {
    "is_trial": false,
    "features": {
      "pro_mode": true
    }
  },
  "versionId": "string",
  "allowedHosts": [
    "mac-studio-m2"
  ],
  "licenseType": "string",
  "maxConcurrentSessions": 1,
  "heartbeatInterval": 1,
  "sessionLeaseDuration": 1
}'
Response (200 OK)
{
  "code": 0,
  "message": "License key updated successfully",
  "affectedCount": 1
}