API Authentication

API Bearer Token Required: All programmatic requests to https://api.luaprotect.dev/v1 require an Authorization HTTP header containing your Bearer API key.
Authorization: Bearer LUAP-YOUR_API_KEY_HERE

Step 1: Create API Key

Go to API Keys in your dashboard and click Create API Key .

Step 2: Authenticate Requests

local req = (syn and syn.request) or request
local res = req({
    Url = "https://api.luaprotect.dev/v1/me",
    Method = "GET",
    Headers = { ["Authorization"] = "Bearer LUAP-YOUR_API_KEY_HERE" }
})
print(res.Body)