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

Deactivate Key

Remove a device activation to free its slot. Requires a `client` or `admin` key, or the `license:activate` grant; a product-bound key works only for its products. `client` keys must send `hostId` and can only remove that device; an admin key may omit it to remove every device.

client API keys must include hostId when deactivating a license. This limits client-side credentials to removing the current device only. admin keys may omit hostId to remove all activations for the license. A client key without hostId gets 400 (hostId is required for client-scoped deactivation).

A successful call returns { "message": "Key deactivated", "code": 0, "devicesRemoved": 1 }. A hostId that isn't activated on the license, or a blocked license, returns 404 with errorCode: "license_not_found".

A device that was given an offline license keeps its activation until that offline license expires, because the signed file keeps working offline. Deactivating that device returns 409 with offlineValidUntil. When hostId is omitted, the other devices are removed and the response includes devicesKept. A reset from your dashboard frees every device.

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.

hostId
string

The device to deactivate. Required for `client` keys; an admin key may omit it to remove every device (devices holding an unexpired offline license are kept). 1–64 characters.

Responses

200Device(s) deactivated
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 API key isn't allowed from this IP address.
404No license with this key for the product, the license is blocked, `hostId` isn't activated on it, or the product doesn't exist or is inactive.
409The device holds an unexpired offline license, so its activation is kept until `offlineValidUntil` (`offline_license_held`). A dashboard reset still frees it. 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. The plan's per-minute limit (and, for `client` keys, the per-IP share) answers `rate_limited`; on the Free plan the monthly quota answers `quota_exceeded`. Calls for the same license key are also limited to 5 per minute (shared with activate and checkout), answered `Too many deactivation attempts. Please try again later.` with `rate_limited`. Honor `Retry-After`; see Rate Limits.
503

Response Body (200)

message
string
code
integer
devicesRemoved
integer

Devices removed by this call.

devicesKept
integer

Present when `hostId` was omitted and some devices were kept because they hold an unexpired offline license.

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