Authentication
All API requests require a valid API key. You can find or generate your key in Settings → API Keys.You can only generate one API key per minute. If your key is ever leaked, you can regenerate it from the Settings page — this will immediately invalidate the old key.
Endpoint
code field, and your API key in the x-api-key header.
Request Body
| Field | Type | Description |
|---|---|---|
code | string | The Lua script to obfuscate. Max 100KB. |
Response
| Field | Type | Description |
|---|---|---|
code | string | The obfuscated Lua script. |
tokens | number | Remaining tokens on your account after this request. |
Examples
API Key Management
Getting your API key
Getting your API key
Navigate to Settings → API Keys. Your key is shown there. If you haven’t generated one yet, click Generate.
Regenerating a leaked key
Regenerating a leaked key
If your API key is ever exposed, go to Settings → API Keys and click Generate New. Your old key is immediately invalidated. Note that you can only generate a new key once per minute.
Rate limits
Rate limits
API key generation is limited to once per minute. Script obfuscation requests are subject to your account’s token balance — each request deducts one token per obfuscation.
