Move from Gumroad: 7% commission on every sale, Discover included

EXNO for developers

License keys and the activation API

Every sale of a software product with license keys switched on gets its own key, one per unit sold. Your app checks it with three public endpoints: no API key in your app, and nothing about the buyer is exposed.

How keys are issued

  • Switch keys on per product in Dashboard › Products › License keys (or with the API or MCP below). Set how many devices a key may be active on and how long it stays valid.
  • Every sale completed while the switch is on gets one key per unit. The buyer finds it in the receipt email and on their purchase page; you see it in the dashboard.
  • A full refund revokes the sale's keys. While a payment dispute is open the keys are paused; a won dispute gives them back, a lost one revokes them.
  • You can disable and enable a key, change its device limit and expiry, free one device or reset all of them.
  • A key that leaked can be reissued: it stops working at once and the buyer finds the new key, with the same device limit and expiry, on their purchase page. You can also revoke a key for good, and issue keys for sales made before you switched them on.
  • Keys are 25 letters and digits in five groups (for example 7KQ2M-WX9PD-RT4HB-ZC8NV-J3EFA). Letter case, spaces and dashes don't matter when an app sends one.

ActivatePOST /licenses/activate

Call it the first time your app runs with a key. Give the activation a name your buyer will recognise, such as the computer's name, and save the instance id it returns: you need it to validate and deactivate.

Request · POST /api/v1/licenses/activate
curl -X POST https://exno.app/api/v1/licenses/activate \
  -H "Content-Type: application/json" \
  -d '{"license_key": "7KQ2M-WX9PD-RT4HB-ZC8NV-J3EFA", "instance_name": "Studio MacBook"}'
Response · 201
{
  "object": "license_activation",
  "activated": true,
  "instance": {
    "object": "license_key_instance",
    "id": "lki_2b9e7c1d0f3a4e5b6c7d8e9f",
    "name": "Studio MacBook",
    "created_at": "2026-11-27T09:24:11.982Z"
  },
  "license_key": {
    "object": "license_key",
    "id": "lk_6f0c1e2d3a4b5c6d7e8f9a0b",
    "status": "active",
    "revoked_reason": null,
    "activations_limit": 3,
    "activations_count": 1,
    "expires_at": null,
    "product": {
      "id": "…",
      "name": "Your app"
    },
    "store": {
      "id": "…",
      "name": "Your store"
    },
    "test": false
  }
}

ValidatePOST /licenses/validate

Call it when your app starts (and from time to time). It always answers 200 with valid true or false and a code; pass the instance id to also check that this device's activation still stands.

Request · POST /api/v1/licenses/validate
curl -X POST https://exno.app/api/v1/licenses/validate \
  -H "Content-Type: application/json" \
  -d '{"license_key": "7KQ2M-WX9PD-RT4HB-ZC8NV-J3EFA", "instance_id": "lki_2b9e7c1d0f3a4e5b6c7d8e9f"}'
Response · 200
{
  "object": "license_validation",
  "valid": true,
  "code": "valid",
  "license_key": {
    "object": "license_key",
    "id": "lk_6f0c1e2d3a4b5c6d7e8f9a0b",
    "status": "active",
    "revoked_reason": null,
    "activations_limit": 3,
    "activations_count": 1,
    "expires_at": null,
    "product": {
      "id": "…",
      "name": "Your app"
    },
    "store": {
      "id": "…",
      "name": "Your store"
    },
    "test": false
  },
  "instance": {
    "object": "license_key_instance",
    "id": "lki_2b9e7c1d0f3a4e5b6c7d8e9f",
    "name": "Studio MacBook",
    "created_at": "2026-11-27T09:24:11.982Z"
  }
}
code
validThe key works (and the activation, when you passed one).
not_foundNo key matches what was sent.
disabledThe seller paused the key, or a payment dispute is open.
revokedThe key no longer works: revoked_reason says why (refund, chargeback, seller, or reissued when a new key replaced it).
expiredThe key's validity ended.
instance_not_foundThis activation was deactivated or never existed: activate again.

DeactivatePOST /licenses/deactivate

Frees the device's activation, for example when your buyer signs out or moves to a new computer. Deactivating twice is fine.

Request · POST /api/v1/licenses/deactivate
curl -X POST https://exno.app/api/v1/licenses/deactivate \
  -H "Content-Type: application/json" \
  -d '{"license_key": "7KQ2M-WX9PD-RT4HB-ZC8NV-J3EFA", "instance_id": "lki_2b9e7c1d0f3a4e5b6c7d8e9f"}'

Errors and limits

Errors come as JSON with a type, a code, a message and a request_id.

HTTPcode
400parameter_missing, parameter_unknown, invalid_jsonFix the request.
404license_key_not_found, instance_not_foundThe key or the activation doesn't exist.
422activation_limit_reachedThe key is active on as many devices as it may be: deactivate one, or the seller resets them.
422license_key_disabled, license_key_revoked, license_key_expiredThe key can't be activated right now.
429rate_limitedWait the seconds in the Retry-After header.

Limits: 60 requests a minute per IP address and 30 a minute per key. The endpoints answer any origin (CORS), so web apps can call them directly.

Keys of test sales (on a test site) say "test": true.

A minimal integration

Activate once, keep the instance id, validate on every start, and let the app keep working for a while when it can't reach EXNO.

JavaScript
const EXNO = "https://exno.app/api/v1/licenses";
const post = (op, body) => fetch(`${EXNO}/${op}`, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify(body) }).then((r) => r.json());

// first run: the buyer pastes the key from their receipt
export async function activate(licenseKey, deviceName) {
  const r = await post("activate", { license_key: licenseKey, instance_name: deviceName });
  if (!r.activated) throw new Error(r.error?.message ?? "Activation failed");
  save({ licenseKey, instanceId: r.instance.id, checkedAt: Date.now() });
}

// every start: still valid? (works offline for 7 days)
export async function check({ licenseKey, instanceId, checkedAt }) {
  try {
    const r = await post("validate", { license_key: licenseKey, instance_id: instanceId });
    if (r.valid) save({ licenseKey, instanceId, checkedAt: Date.now() });
    return r.valid;
  } catch {
    return Date.now() - checkedAt < 7 * 86400e3;
  }
}

Manage keys from your code

With an API key from Dashboard › Developers (read access to look, write access to change):

GET/api/v1/license_keysKeys, newest first. Filters: store_id, product_id, status, sale_id, search; cursor pagination.
GET/api/v1/license_keys/{id}One key with its activations.
PATCH/api/v1/license_keys/{id}status (active or disabled), activations_limit, expires_at.
POST/api/v1/license_keys/{id}/resetFrees every activation.
POST/api/v1/license_keys/{id}/reissueA new key replaces this one; the old key is revoked (reissued).
POST/api/v1/license_keys/{id}/revokeRevokes the key for good.
GET/api/v1/license_keys/{id}/instancesThe key's activations.
DELETE/api/v1/license_keys/{id}/instances/{instance_id}Frees one activation.
GET, POST/api/v1/products/{id}/license_keysA product's switch: enabled, activation_limit, valid_days.
POST/api/v1/products/{id}/license_keys/backfillIssues keys for the product's earlier sales that have none.

Assistants connected to EXNO's MCP server get the same tools: list_license_keys, get_license_key, update_license_key, reset_license_key_activations, deactivate_license_key_instance, get_product_license_settings and update_product_license_settings.

Open License keys in your dashboard
← All developer docs