Validate a license key
Checks a generated key and, when you send instance_id, one of its devices. Changes nothing. A well-formed request always answers 200: read valid and code. On the usage meter (https://usage.comecero.com), with no token: the key and your shop's public account_id are the credential.
application/json- body
The key to check and, optionally, one of its devices.
account_id*stringYour shop's public account id, for example AB1234.
^[A-Za-z0-9_.:-]{1,128}$license_key*stringThe key as the customer typed it. Case, spaces and dashes don't matter.
length <= 256instance_id?stringAlso check this device, the instance_id saved from the activation.
^[A-Za-z0-9_.:-]{1,128}$The answer, in valid and code.
application/json- response
Whether the key, and the device when one was sent, works now.
valid*booleanTrue only when code is VALID.
code*stringThe first that applies: NOT_FOUND (no such key for this account; no license in the answer), REVOKED, EXPIRED, then with instance_id INSTANCE_NOT_FOUND (not a device of this key, or one from before the key was replaced) and INSTANCE_DEACTIVATED, else VALID.
"VALID""NOT_FOUND""REVOKED""EXPIRED""INSTANCE_NOT_FOUND""INSTANCE_DEACTIVATED"license?What your app sees of a license in the usage meter's answers. Never the key itself.
instance?One device a license key was activated on.
curl -X POST 'https://usage.comecero.com/v1/licenses/validate' \ -H 'Content-Type: application/json' \ -d '{ "account_id": "AB1234", "license_key": "ACME-7K2QF-M9X4T-0BHRW-C3NDP-YV8JE", "instance_id": "ins_3f0c9a1b2c4d5e6f708192a3b4c5d6e7"}'{ "valid": true, "code": "VALID", "license": { "license_id": "0142130710581LiRr8sT2c", "test": true, "status": "active", "activation_limit": 3, "activations": 1, "expires_at": null }, "instance": { "instance_id": "ins_3f0c9a1b2c4d5e6f708192a3b4c5d6e7", "name": "Studio Mac", "fingerprint": "6f1c2e8a-4b7d-4e19-9a3c-2d5b8f0e7a61", "metadata": { "app_version": "4.2.0" }, "status": "active", "activated_at": "2026-11-14T09:41:07.000Z", "deactivated_at": null }}Activate a license key POST
Takes one of a [generated key](/docs/license-keys)'s device seats for this device. Call it once, when the customer enters the key, and save the `instance_id` on the device. Atomic: with a limit of 3, any number of activations at the same time give exactly 3 devices. While a device is active, activating it again with the same `fingerprint` answers `200` with the same instance and takes no extra seat, so an activation is safe to resend after a timeout or a `503`. This route is on the usage meter (`https://usage.comecero.com`), not the Comecero API, and takes no token: the key and your shop's public `account_id` are the credential. Call it from your app or your server; it sends no CORS headers.
Deactivate a device POST
Frees the seat a device holds on a [generated key](/docs/license-keys), for example when the customer signs out or moves to a new computer. Safe to repeat: a device already deactivated, or dropped when the key was replaced, answers `200` again and frees nothing twice. On the usage meter (`https://usage.comecero.com`), with no token: the key and your shop's public `account_id` are the credential.