User Management
This page shows you how to interact with your projects users using our API
Quick Tips
Usernames cannot exceed a length of 20 and they must have a minimum length of 3, they also cannot contain any special characters
User notes cannot exceed a length of 20 and they must have a minimum length of 3
Get Users
GET
https://api.luashield.com/projects/:project_id/users
Get all users for your project
Path Parameters
project_id*
String
ID of your project
Headers
LuaShield-API-Key*
String
API Key
Create User
This will return the users license key unhashed
POST
https://api.luashield.com/projects/:project_id/users
Create a user
Path Parameters
project_id*
String
ID of your project
Headers
LuaShield-API-Key*
String
API Key
Request Body
username*
String
Username to give the user
whitelisted*
Boolean
User is whitelisted?
discord_id
String
Users Discord ID
max_executions
Int
Limit users executions
expire
Int
Unix Epoch timestamp of when user should expire
note
String
Note to give to the user
Update User
PATCH
https://api.luashield.com/projects/:project_id/users
Update a user
Path Parameters
project_id
String
Project ID
Headers
LuaShield-API-Key*
String
API Key
Request Body
username*
String
Username of the user
whitelisted*
Boolean
User is whitelisted?
expire
Int
Unix Epoch timestamp of when user should expire
max_executions
Int
Limit users executions
discord_id
String
Users Discord ID
note
String
User note
Delete User
DELETE
https://api.luashield.com/projects/:project_id/users
Delete User
Path Parameters
project_id*
String
Project ID
Headers
LuaShield-API-Key*
String
API Key
Request Body
username*
String
Username of the user to delete
Reset Key
POST
https://api.luashield.com/projects/:project_id/users/reset_key
Reset Key
Path Parameters
project_id*
String
Project ID
Headers
LuaShield-API-Key*
String
API Key
Request Body
username*
String
Username of the user
Reset HWID
POST
https://api.luashield.com/projects/:project_id/users/reset_hwid
Reset users HWID
Path Parameters
project_id*
String
Project ID
Headers
LuaShield-API-Key*
String
API Key
Request Body
username*
String
Username of the user
Last updated