comecerodocs

Activate a license key

POST
/v1/licenses/activate

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.

Request Body

application/json
  1. body

The key and the device to activate it on.

account_id*string

Your shop's public account id, for example AB1234.

Match^[A-Za-z0-9_.:-]{1,128}$
license_key*string

The key as the customer typed it. Case, spaces and dashes don't matter. A key with characters outside printable ASCII is answered as unknown.

Lengthlength <= 256
fingerprint*string

A 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).

Match^[\x21-\x7e]{1,255}$
instance_name?string

A name for the device the customer will recognise, for example Studio Mac. No emails or card numbers.

Lengthlength <= 255
metadata?

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.

Propertiesproperties <= 20

Response Body

This fingerprint was already active on the key. The same instance, and no extra seat.

application/json
  1. response

A device the key is active on.

instance_id*string

The device's id. Save it on the device to validate and deactivate.

activated_at*string

When the device was activated.

Formatdate-time
license*

What your app sees of a license in the usage meter's answers. Never the key itself.

Example Request
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"  }}'
Example Response
{  "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  }}