PRIMEz Lua Protection API

This API uses the same authenticated VM protection handler used by PRIMEz Studio. A signed-in PRIMEz session is required; guests cannot build.

Endpoints

POST /api/protect, POST /api/protect/vm, POST /api/obfuscate, and POST /api/obfuscate/vm.

Request

Send JSON with a code string. Optional fields include profile, target, vmArchitecture, vm, mutateOpcodes, encryptConstants, controlFlow, antiTamper, packBytecode, randomizeBuild, and randomizeVm.

{"code":"-- your Lua or Luau source","profile":"maximum","target":"Roblox Luau"}

Authenticate using the PRIMEz-issued session credential in the Authorization: Bearer ... header. Do not hard-code or publish session tokens.

Response

A successful build returns success, obfuscatedCode (also available as output), buildId, the selected engine and VM metadata, option flags, layer information, and a report where available.

Integration guidance