Skip to main content
If you don’t specify any parameters, the key is “unassigned”: the first user to use it claims it, and their HWID or Discord ID is linked to it automatically. Users whose HWID is linked to a key can run the script, as long as they set script_key at the top of it (unless Free for All (FFA) mode is on).

Basics

Every user you add with a POST request automatically gets a randomly generated key, even if you don’t provide any details about them, such as their HWID or Discord ID.
  • If no HWID is assigned to the key, the user’s HWID is assigned automatically the first time they run the script with script_key = "key here"; at the top.
  • If no Discord ID is assigned to the key, the user can claim the key with the Redeem button on the Discord bot panel. Once their Discord ID is linked, they can use the panel’s Reset HWID button, if HWID resets are enabled in your project settings.
The user must add script_key = "KEY HERE"; at the top of the loader script. Without it, the script will not run unless FFA mode is on.
Each project has its own database of users and keys. A user who is whitelisted in a project can run all scripts in that project. This is known as “script hub logic”.
You can add a custom note to each user by including the note field in your request body. This makes the user easier to identify.

Expiry dates and time limited keys

There are 2 ways to restrict a key based on time:
  1. key_days
  2. auth_expire
key_days is the number of days the key lasts, counted from when it is first redeemed or executed. This lets you generate time-limited keys in advance and keep them in stock without their timer starting. auth_expire is the Unix timestamp of the expiry date. If you generate a key with key_days, auth_expire is set automatically to the current time + (key_days * 86400) when the key is activated. If you provide auth_expire instead of key_days, you must also include identifier or discord_id. This tells the server the key is already claimed, so its countdown starts immediately. Without either of them, the time between now and auth_expire is converted to key_days automatically.
You can set discord_id and identifier when generating a key. If you don’t, they are assigned automatically when the user runs the script or uses the Redeem button on the Discord bot panel.

Endpoint

POST https://api.luarmor.net/v3/projects/{project_id}/users

Path parameters

Headers

Request body

Success response

200: the key was created.

Error responses

Example error response:

Example request