Activate a license key
Takes one of a generated key'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.
application/json- body
The key and the device to activate it on.
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. A key with characters outside printable ASCII is answered as unknown.
length <= 256fingerprint*stringA stable id of the device: a SHA-256 hash of its machine id, or a UUID your app makes once and saves. The same device always sends the same one. Never a raw serial number: a value shaped like a card number is refused (400, field fingerprint).
^[\x21-\x7e]{1,255}$instance_name?stringA name for the device the customer will recognise, for example Studio Mac. No emails or card numbers.
length <= 255metadata?Up to 20 plain values (strings, numbers or booleans; no objects or arrays), for example the app version. No card numbers, emails or IP addresses.
properties <= 20This fingerprint was already active on the key. The same instance, and no extra seat.
application/json- response
A device the key is active on.
instance_id*stringThe device's id. Save it on the device to validate and deactivate.
activated_at*stringWhen the device was activated.
date-timelicense*What your app sees of a license in the usage meter's answers. Never the key itself.
curl -X POST 'https://usage.comecero.com/v1/licenses/activate' \ -H 'Content-Type: application/json' \ -d '{ "account_id": "AB1234", "license_key": "ACME-7K2QF-M9X4T-0BHRW-C3NDP-YV8JE", "fingerprint": "6f1c2e8a-4b7d-4e19-9a3c-2d5b8f0e7a61", "instance_name": "Studio Mac", "metadata": { "app_version": "4.2.0" }}'{ "instance_id": "ins_3f0c9a1b2c4d5e6f708192a3b4c5d6e7", "activated_at": "2026-11-14T09:41:07.000Z", "license": { "license_id": "0142130710581LiRr8sT2c", "test": true, "status": "active", "activation_limit": 3, "activations": 1, "expires_at": null }}Overview
Previous Page
Validate a license key POST
Checks a [generated key](/docs/license-keys) 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.