Create one or more license keys (`amountKeys`), optionally assigned to an existing or new customer. Requires an `admin` key or the `license:manage` grant; a product-bound key works only for its products. Counts against the plan's license (and, with `newCustomer`, customer) limits.
Authorization header.Use a unique value to safely retry this request without repeating its effects.
9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6dThe product to create the key for. 22–256 characters.
Maximum device activations: a whole number from 0 to 1,000,000 (as a JSON number or a string of digits), or `"unlimited"`. Omitted, null or an empty string means unlimited. Negative, decimal or other text values return 400 `invalid_request`.
Optional ISO 8601 expiry date, up to 64 characters. Omitted, null or an empty string means the key never expires.
Optional: an existing customer in this workspace to assign. Can't be combined with `newCustomer`. 22–256 characters.
Optional: create a customer and assign the key to them. Can't be combined with `customerId`.
Custom format for the generated keys. The format must give at least 60 bits of entropy (sections × sectionLength × floor(log2(distinct characters))), otherwise the request is refused with 400.
How many keys to create in one request, 1–256 (JSON number or string of digits). Default 1. All keys are returned in `keys`.
Optional key-value data stored on the license (for example `is_trial` and `features`). At most 10,000 characters when serialized as JSON.
Optional product version ID to tie the key to, up to 64 characters.
Optional: the only host IDs that may activate this key. At most 100 host IDs of up to 255 characters each.
License type (default node-locked). Floating licenses must be available on the workspace's plan.
Floating licenses: concurrent seats, 1–1,000,000. Null or omitted means no seat limit.
Floating licenses: seconds between heartbeats, 60–86,400. Null means the default of 60.
Floating licenses: seat lease in seconds, 300–31,536,000. Null means the default of 300.
The first created key.
Every created key (one per `amountKeys`). Raw keys are returned only here; store them.