Developer reference / v2
Documentation
Everything required to call the public API, select an engine and ship protected output.
START / 30 SECONDS
Your first protected output.
No account or API key is required for direct API use. Send source and a target platform; receive plain-text protected code.
Public endpoint JSON request Plain-text response
01
Choose a target
Use one of the five supported platform IDs.
javascript · lua · fivem · roblox · csgo02
Send the source
POST JSON to the protection endpoint.
curl -X POST https://magicsec.vip/api/obfuscate \
-H "Content-Type: application/json" \
-d '{"code": "print(\"Hello\")", "platform": "lua"}'03
Use the response
A successful request returns protected source as text/plain.
200 OK · text/plain