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

Create Key

Create one or more license keys (`amountKeys`), optionally assigned to an existing or new customer. Requires an `admin` key or the `license:manage` grant; a product-bound key works only for its products. Counts against the plan's license (and, with `newCustomer`, customer) limits.

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 to create the key for. 22–256 characters.

maxActivations
integer | string (nullable)

Maximum device activations: a whole number from 0 to 1,000,000 (as a JSON number or a string of digits), or `"unlimited"`. Omitted, null or an empty string means unlimited. Negative, decimal or other text values return 400 `invalid_request`.

expiryDate
string (nullable)

Optional ISO 8601 expiry date, up to 64 characters. Omitted, null or an empty string means the key never expires.

customerId
string

Optional: an existing customer in this workspace to assign. Can't be combined with `newCustomer`. 22–256 characters.

newCustomer
object

Optional: create a customer and assign the key to them. Can't be combined with `customerId`.

format
object

Custom format for the generated keys. The format must give at least 60 bits of entropy (sections × sectionLength × floor(log2(distinct characters))), otherwise the request is refused with 400.

amountKeys
integer | string

How many keys to create in one request, 1–256 (JSON number or string of digits). Default 1. All keys are returned in `keys`.

metadata
object

Optional key-value data stored on the license (for example `is_trial` and `features`). At most 10,000 characters when serialized as JSON.

versionId
string

Optional product version ID to tie the key to, up to 64 characters.

allowedHosts
array (nullable)

Optional: the only host IDs that may activate this key. At most 100 host IDs of up to 255 characters each.

licenseType
string [node-locked, floating]

License type (default node-locked). Floating licenses must be available on the workspace's plan.

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

200Keys created
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 (`customer_not_found`), the plan doesn't allow more licenses, floating licenses or customers, or the product is archived (`forbidden`), or the key isn't allowed from this IP address.
404No active product with this ID in the API key's workspace.
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
key
string

The first created key.

keys
array

Every created key (one per `amountKeys`). Raw keys are returned only here; store them.

Request Example
curl -X POST "https://api.keymint.dev/key" \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
  "productId": "4898d6707ffa56ed9b0eea",
  "maxActivations": "5",
  "expiryDate": "2026-11-26T14:39:21.153Z",
  "customerId": "078116d0069c32407b4f63",
  "newCustomer": {
    "name": "Jane Doe",
    "email": "jane@example.com"
  },
  "format": {
    "sections": 1,
    "sectionLength": 1,
    "separator": "string",
    "charset": "string",
    "prefix": "string",
    "suffix": "string",
    "case": "string"
  },
  "amountKeys": "1",
  "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,
  "key": "T8XTR-AI21B-2990H-85SB5",
  "keys": [
    "T8XTR-AI21B-2990H-85SB5"
  ]
}