Lemon Squeezy icon

Lemon Squeezy

Interact with Lemon Squeezy API

License Key → Activate

AI-generated

Summary

Activates a Lemon Squeezy license key by creating a new instance labeled with the given name, using the License API.

Inputs

  • License Key (required) — The license key string to activate.
  • Instance Name (required) — Label for the new license key instance, such as a user email or device name.
  • Simplify — Defaults to true. Flattens JSON:API attributes to the top level. Turn it off to get the raw JSON:API structure with type, attributes and relationships.
  • Retry Options — Optional collection. Max Retries (default 3, range 0–10) and Initial Delay in ms (default 1000, range 100–30000, doubles on each retry) control retries of failed API requests.

Output shape

One item per input item, containing the API response for the activation. With Simplify on, the attributes are flattened to the top level. With it off, the raw JSON:API response is returned.

The activate request itself is not visible in the provided source pack, which shows only helpers and the execute structure. The exact response fields, such as the activation result, instance ID and license key details, are therefore not confirmed here. Errors surface as NodeApiError. Rate-limit (429) and 5xx/network errors are retried according to Retry Options.

Examples

Example 1: Activate a license when a customer installs your app on a device.

License Key = {{ $json.licenseKey }}, Instance Name = {{ $json.deviceName }}, Simplify on.

Example 2: Activate a license on a flaky network with more retries.

Set License Key and Instance Name (the user's email). Under Retry Options set Max Retries = 5 and Initial Delay = 2000.

Links

Discussion