# Venturion API reference (for AI agents and developers) This file is a machine-readable reference for the Venturion Lua obfuscation API. Read it fully before writing integration code. Base URL: https://venturion-4u5.pages.dev ## Overview Two obfuscation endpoints: - POST /v1/obfuscate - with an API key. The full protection stack (Bytecode VM, Anti Env Logs, Anti Tamper) is forced on server-side and cannot be disabled. - POST /obfuscate - no key, job-based. Protection is OPTIONAL here: send no flags for standard obfuscation, or opt in to the VM and the shields with query flags. This is the endpoint website embeds use. Requesting Anti Env Logs or Anti Tamper without a key forces the Bytecode VM, since both shields run inside the VM blob. All obfuscation happens server-side; clients only see the final output. ## Authentication - POST /keys/generate -> {"ok": true, "key": "vent_<40 hex>", "created": ...} One key per IP address. Calling again from the same IP returns the same key. Free, no login, no email. - GET /keys/mine -> {"ok": true, "keys": [{"key": ..., "created": ...}]} Lists every key generated from the caller's IP. - POST /keys/relink -> {"ok": true, "key": ...} with JSON {"key": "vent_..."}. Re-links an existing key to the caller, so the My keys panel finds it again after a network or device change. Knowing the full key is the proof of ownership. Send the key on every /v1/obfuscate call, on either header: X-API-Key: Authorization: Bearer (also accepted) A missing or invalid key answers HTTP 401 with JSON {"ok": false, "error": "..."}. ## POST /v1/obfuscate (with key) Request: - Method: POST - Headers: X-API-Key (required), Content-Type: text/plain (or application/json with {"source": ""}). - Body: raw Lua source. Maximum 1,000,000 bytes. - Query options: raw=1 to receive text/plain instead of JSON. Or level=1|2|3 to set every VM option and both shields at once (the site dropdown uses this): Level 1 is VM only, Level 2 adds both shields plus hardcode globals, static environment and small integers, Level 3 adds FFI and vector width 4. With a valid key the flags vm=1, env=1, tamper=1 are always forced on regardless. Response (default JSON), HTTP 200: { "ok": true, "code": "", "bytes_in": , "bytes_out": , "modes": {"vm": true, "anti_env_logs": true, "anti_tamper": true} } With raw=1 the body IS the obfuscated Lua (Content-Type text/plain, Content-Disposition attachment filename="obfuscated.lua"). raw=1 only applies when the result is ready; if the call answers 202 the response is JSON either way. Very large files (the ones that would take more than ~45 seconds) answer HTTP 202 instead of 200, so the connection never dies mid-request: {"ok": true, "status": "processing", "job": "", "poll": "/job/", "retry_after": 2} Poll GET /job/ until "status" is "done" (or "error"), then fetch the result from GET /job//download, which returns the raw obfuscated Lua as text/plain. Polling and download are CORS open, same as everything else. ## POST /obfuscate (no key, job-based) Request: - Method: POST - Body: raw Lua source. Maximum 1,000,000 bytes. - Protection is OPTIONAL. No query flags at all gives standard obfuscation (no VM). Opt in with any of: - vm=1 Bytecode VM only - env=1 Anti Env Logs (forces the VM) - tamper=1 Anti Tamper (forces the VM) - level=1|2|3 one dial for everything: Level 1 is VM only, Level 2 adds both shields plus hardcode globals, static environment and small integers, Level 3 adds FFI and vector width 4 - fine-tune VM options directly: intense, ffi, compat, hardcode, staticenv, smallint, vmcompress, debuglib, vector=2|3|4 Response, HTTP 200: {"ok": true, "job": ""} Poll GET /job/ (1 second apart is polite) until "status" is "done" or "error". A done job reports {"ok": true, "id": ..., "status": "done", "bytes_in": ..., "bytes_out": ...}. The result is at GET /job//download as text/plain, the raw obfuscated Lua. A job answered 429 means one of your jobs is still running; wait for it. A job result is readable only by the IP that submitted it. ## CORS Fully open. Any website can call this API from browser JavaScript. Preflight OPTIONS requests to any path answer 204 with Access-Control-Allow-Origin: *, Access-Control-Allow-Methods: POST, GET, OPTIONS and Access-Control-Max-Age: 86400. The allowed-headers answer echoes whatever headers your request asked for, so custom headers such as Authorization never break the preflight. No allowlist, no referrer checks. ## Add Venturion to your own website CORS is open, so a widget on your page can call the job endpoint directly. No API key is needed; the per-visitor rate limit applies. Paste this anywhere on your page, then edit the markup, the styling and the text however you like. Every id and class is yours to rename.
The protection-level dropdown is optional: delete the