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.
Expiry dates and time limited keys
There are 2 ways to restrict a key based on time:key_daysauth_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:
