👑Luarmor API Documentation
Might be outdated, currently being updated.
⚠️⚠️ ! IMPORTANT ! ⚠️⚠️
Luarmor API is not a public API. It's accessible by Luarmor customers and script developers only.
👉 You must whitelist your server's IP address 👈 on luarmor dashboard in order to make API calls. Otherwise, your requests will be blocked by cloudflare.
Top things to always remember: ✅
Content-Type
header must be set to application/json
in all of your requests
Each endpoint has it's own ratelimits, but in general you can make 60 requests per minute. Exceeding this limit will result a 429
Parameter Types:
Path: https://site.com/data/
PARAMETER_HERE
/stuff
Query: https://site.com/data/things/stuff
?paramName=PARAMETER_HERE
Body: (In Request body): { "fieldName": "PARAMETER_HERE" }
Header: (In Request headers): { "headerName": "HEADER VALUE" }
API/Key Management
Getting API status
GET
https://api.luarmor.net/status
This will return you the version information about the API.
Getting API key details
GET
https://api.luarmor.net/v3/keys/:api_key/details
You can get details of your API key. Project/Script IDs, execution amounts, script names etc..
Example URL: https://api.luarmor.net/v3/keys/
300058fb1987f0e019b0c980ad01
/details
Path Parameters
Getting API key stats
GET
https://api.luarmor.net/v3/keys/:api_key/stats
You can fetch the stats of your API key. This includes usage details, remaining obfuscations, max obfuscations, max users, execution amounts, monthly execution graph values etc..
Example URL: https://api.luarmor.net/v3/keys/
300058fb1987f0e019b0c980ad01
/stats?noUsers=true
Query Parameters
User & Key Management
Basics
Every user you add by making POST requests will automatically have a random "key" generated specifically for that user. If you don't provide the details about the user (such as hwid, discord id), key will still be generated.
If there's no HWID assigned for the key, it will automatically get assigned when user executes the script with script_key = "key here";
on top of their script.
If there's no Discord ID assigned for the key, user can claim the key by using the discord bot's "Redeem" button. Once their discord ID is linked to the key, user will be able to click on "Reset HWID" button on discord bot if it's enabled in project settings.
User must add script_key = "KEY HERE";
on top of the loader script. Otherwise it will not work unless FFA mode is on.
Each project has it's own separate database for user/key pairs. If a user is whitelisted in a project, they will be automatically able to run all scripts created inside that project. This is also known as "script hub logic"
You can set custom notes for each client by including note
field in your request body. It will make it easier do identify the user.
Expiry dates & Time limited keys:
There are 2 ways to restrict a key based on the time:
1) key_days
2) auth_expire
The difference is that "key_days
" indicates the number of days a key will have once it has been redeemed or executed for the very first time. This allows you to generate unused time-locked keys without their timer starting right away so you can stock them.
Meanwhile "auth_expire
" is the actual timestamp of the expiry date. If you generate keys via key_days, once that key has been activated, it will automatically adjust auth_expire
according to current time + (key_days
* 86400).
If you don't provide key_days and provide auth_expire
directly, you must include one of identifier
or discord_id
parameters to tell the server that it is a claimed key, so it will start counting towards their remaining days instantly. If you don't provide identifier or discord_id fields, it will automatically convert the offset between current time and auth_expire to key_days.
You can pre-define discord_id / identifier
values while generating a key. If you don't provide them, they will get automatically assigned when user runs the script or uses "Redeem" button on discord bot interface.
Creating a key / user
POST
https://api.luarmor.net/v3/projects/:project_id/users
This endpoint will generate a key. If you don't specify the parameters, key will be 'unassigned' which means a user with the key can claim it and automatically assign their HWID / Discord ID to the key.
Users who have their HWIDs linked to the keys will be able to run the script. If they don't include script_key
on top of their script, they will not be able to run the script as long as the FFA mode isn't on.
Path Parameters
Headers
Request Body
Updating an existing user
PATCH
https://api.luarmor.net/v3/projects/:project_id/users
You can use this endpoint to edit an already existing user. If you don't provide a specific field, API will assume that you don't want to change that property, so it's going to stay the same.
Path Parameters
Headers
Request Body
Deleting the key
DELETE
https://api.luarmor.net/v3/projects/:project_id/users
You can delete a key from your script, this will also remove the access of the user who has their hwid/discord id linked to that key.
Example URL: https://api.luarmor.net/v3/projects/
3f98888f9999c9999e99a2
/users?user_key=n1gG3Rs3CkmYd1Ck64gg0t
Path Parameters
Query Parameters
Headers
Getting users
GET
https://api.luarmor.net/v3/projects/:project_id/users
You can fetch all users from a script, and you can specify filters too. (such as discord_id, identifier etc.) If you want to get someone's user_key from their discord_id, the key must have it linked first.
Note that response body will be an object array containing users. If you specified a filter value (e.g discord_id=124345) the array will contain one user so you just have to read users[0];
Query Parameters
Headers
Note: Each user will have a 'status' field. It can be either "active", "reset", or "banned".
active
means user has linked their hwid to key and its active.
reset
means user has reset their hwid and it's waiting to be assigned upon first execution
banned
means user doesn't have a key linked (aka. unknown ) and banned.
If status equals to "active" but at the same time "banned" field is true, it means user has a key linked but still banned. Read examples below
Resetting the HWID of a key
POST
https://api.luarmor.net/v3/projects/:project_id/users/resethwid
Path Parameters
Headers
Request Body
Linking discord ID to a key
POST
https://api.luarmor.net/v3/projects/:project_id/users/linkdiscord
Path Parameters
Headers
Request Body
Blacklisting a key
POST
https://api.luarmor.net/v3/projects/:project_id/users/blacklist
This will blacklist an existing key, and the HWID linked to it (if any).
Path parameters
Headers
Request Body
Unblacklisting a key
GET
https://api.luarmor.net/v3/projects/:project_id/users/unban
This endpoint doesn't need strict API key authentication. All you need is an "unban_token" of the key, it is a 32 character random string assigned automatically when you blacklist someone. It changes every time a key is blacklisted and is unique. You can find it in the user objects in the response body of "Getting users" endpoint.
You can simply make any kind of GET request, or visit the URL on your browser. It should look like this:
https://api.luarmor.net/v3/projects/123456abcdef/users/unban?unban_token=Xpsy9wegDpA5XS
Query Parameters
Script Management
You can programmatically edit scripts using these endpoints
Updating a script
PUT
https://api.luarmor.net/v3/projects/:project_id/scripts/:script_id
Path parameters
Headers
Request Body
Last updated