For developers

One HTTPS call to license your software

A key with a scope, a POST request, a JSON answer. The docs are open to read before you make an account, because deciding whether an API fits your product is a decision that needs the API, not a sales page about it.

A real call

Validating a licence key. The response is { valid, reason }, nothing more to parse.

javascript
const res = await fetch('https://bloomcloud.pro/api/v1/licenses/validate', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'Authorization': 'Bearer ' + process.env.BLOOM_API_KEY,
  },
  body: JSON.stringify({
    key: config.licenseKey,
    hwid: machineId(),        // omit to check without locking to a machine
    version: app.version,
  }),
});

const result = await res.json();
if (!result.valid) {
  throw new Error('License refused: ' + result.reason);
}