Authentication
The REST API lives under https://luawarden.dev/api/v1. Requests and responses are JSON unless noted.
Send your API key as a bearer token on every request. Create and revoke keys under Profile & API in the dashboard. A key is shown in full once, when you create it.
Authorization: Bearer YOUR_API_KEY
Who can use it
The API is included with Premium and above. Obfuscations started through the API count toward your monthly obfuscations, the same as runs from the dashboard.
Concurrent builds
| Plan | Builds running at once |
|---|---|
| Premium | 1 |
| Commercial | 2 |
| Enterprise | 4 |
A build that would go over the limit is answered with 429. Wait for a running build to finish, then try again.
Account
Returns the account that owns the API key, its plan and the build allowance.
curl https://luawarden.dev/api/v1/me \ -H "Authorization: Bearer YOUR_API_KEY"
{
"id": "usr_example123",
"username": "my_account",
"plan": "premium",
"builds": { "used": 412, "limit": 1000 },
"concurrency": 1
}Builds
Obfuscates a script into a custom-VM standalone Luau build on the unified main engine channel (maximum protection). name is the file name, source is the Luau source, and preset defaults to main. With async set to true the call returns at once and you poll the build until it is finished.
curl -X POST https://luawarden.dev/api/v1/obfuscate \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "main.luau", "source": "print(\"hello\")", "preset": "main", "async": true}'{
"id": "bld_example123",
"name": "main.luau",
"preset": "main",
"status": "queued",
"createdAt": "2026-11-28T12:00:00Z"
}Lists your builds, newest first.
curl https://luawarden.dev/api/v1/builds \ -H "Authorization: Bearer YOUR_API_KEY"
{
"builds": [
{ "id": "bld_example123", "name": "main.luau", "preset": "main", "status": "completed", "outputBytes": 48213, "createdAt": "2026-11-28T12:00:00Z" }
]
}Returns one build. status is queued, running, completed or failed.
curl https://luawarden.dev/api/v1/builds/bld_example123 \ -H "Authorization: Bearer YOUR_API_KEY"
{
"id": "bld_example123",
"name": "main.luau",
"preset": "main",
"status": "completed",
"outputBytes": 48213,
"compileMs": 4400,
"createdAt": "2026-11-28T12:00:00Z"
}Downloads the obfuscated build as a file. The response body is the Luau file, not JSON.
curl https://luawarden.dev/api/v1/builds/bld_example123/download \ -H "Authorization: Bearer YOUR_API_KEY" \ -o main.standalone.luau
Projects
Lists your projects.
curl https://luawarden.dev/api/v1/projects \ -H "Authorization: Bearer YOUR_API_KEY"
{
"projects": [
{ "id": "prj_example123", "name": "my_project", "status": "active", "hwidLock": true, "hwidResetCooldownSec": 86400, "scriptCount": 2, "keyCount": 250 }
]
}Creates a project.
curl -X POST https://luawarden.dev/api/v1/projects \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "my_project", "hwidLock": true, "hwidResetCooldownSec": 86400}'{
"id": "prj_example123",
"name": "my_project",
"status": "active",
"hwidLock": true,
"hwidResetCooldownSec": 86400
}Changes a project. Send only the fields you want to change. The reset cooldown is between 21600 and 172800 seconds (6 to 48 hours).
curl -X PATCH https://luawarden.dev/api/v1/projects/prj_example123 \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"status": "paused", "hwidResetCooldownSec": 43200}'{
"id": "prj_example123",
"name": "my_project",
"status": "paused",
"hwidLock": true,
"hwidResetCooldownSec": 43200
}Deletes a project together with its scripts and keys. This cannot be undone.
curl -X DELETE https://luawarden.dev/api/v1/projects/prj_example123 \ -H "Authorization: Bearer YOUR_API_KEY"
{ "deleted": true }Scripts
Lists your hosted scripts. Pass ?projectId=prj_example123 to filter to one project.
curl "https://luawarden.dev/api/v1/scripts?projectId=prj_example123" \ -H "Authorization: Bearer YOUR_API_KEY"
{
"scripts": [
{ "id": "scr_example123", "name": "main", "version": 3, "status": "active", "loaderUrl": "https://luawarden.dev/l/scr_example123" }
]
}Uploads a new hosted script and returns its loader.
curl -X POST https://luawarden.dev/api/v1/projects/prj_example123/scripts \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "main", "source": "print(\"hello\")"}'{
"id": "scr_example123",
"name": "main",
"version": 1,
"status": "active",
"loaderUrl": "https://luawarden.dev/l/scr_example123",
"loaderSnippet": "script_key = \"YOUR_KEY_HERE\"\nloadstring(game:HttpGet(\"https://luawarden.dev/l/scr_example123\"))()"
}Pushes a new version of a hosted script. The loader URL stays the same, so buyers get the update on their next run.
curl -X PUT https://luawarden.dev/api/v1/scripts/scr_example123 \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"source": "print(\"hello again\")"}'{
"id": "scr_example123",
"version": 4,
"loaderUrl": "https://luawarden.dev/l/scr_example123"
}Renames a script, or pauses and resumes it.
curl -X PATCH https://luawarden.dev/api/v1/scripts/scr_example123 \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"status": "paused"}'{
"id": "scr_example123",
"name": "main",
"status": "paused"
}Keys
Lists the access keys in a project. Use ?status=active, paused or expired to filter.
curl "https://luawarden.dev/api/v1/keys?projectId=prj_example123" \ -H "Authorization: Bearer YOUR_API_KEY"
{
"keys": [
{ "keyId": "key_example123", "keyPrefix": "LW-7F3A", "discordId": "123456789012345678", "status": "active", "expiresAt": "2027-01-31T00:00:00Z", "hwidBound": true, "totalExecutions": 128 }
]
}Generates keys. count is 1 to 300. Leave expiresInDays out for lifetime keys. The full keys are returned once, in this response.
curl -X POST https://luawarden.dev/api/v1/projects/prj_example123/keys \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"count": 25, "expiresInDays": 30}'{
"created": 25,
"keys": [ "YOUR_KEY_HERE" ]
}Imports up to 5,000 existing keys. Each entry needs key; discordId and expiresAt are optional and are kept. With skipExpired set to true, entries whose date has passed are left out.
curl -X POST https://luawarden.dev/api/v1/projects/prj_example123/keys/import \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"skipExpired": true, "entries": [{"key": "YOUR_KEY_HERE", "discordId": "123456789012345678", "expiresAt": "2027-01-31"}]}'{
"imported": 1,
"skipped": 0,
"summary": { "lifetime": 0, "active": 1, "expired": 0 }
}Clears the device a key is locked to. The key locks again to the next device that runs the script. Other key actions follow the same shape: /pause, /unpause, /revoke, and /ban-hwid.
curl -X POST https://luawarden.dev/api/v1/keys/key_example123/reset-hwid \ -H "Authorization: Bearer YOUR_API_KEY"
{
"keyId": "key_example123",
"hwidBound": false
}Live
Returns what Live View shows: active sessions, recent events and 30 days of executions. Add ?projectId=prj_example123 for one project. Needs a plan with Live View.
curl https://luawarden.dev/api/v1/live?projectId=prj_example123 \ -H "Authorization: Bearer YOUR_API_KEY"
{
"serverTime": "2026-11-28T12:00:00Z",
"sessions": [
{ "sessionId": "ses_example123", "scriptId": "scr_example123", "keyPrefix": "LW-7F3A", "lastSeenAt": "2026-11-28T11:59:48Z" }
],
"events": [
{ "eventType": "unlock", "outcome": "allow", "keyPrefix": "LW-7F3A", "createdAt": "2026-11-28T11:58:10Z" }
],
"analytics": { "totalExecutions": 148920, "activeUsers": 422, "blockedAttempts": 38 }
}Lists blacklisted HWIDs across your projects (or filter with ?projectId=prj_example123). Remove an entry with DELETE /api/v1/blacklist/:id. Requires Premium or higher.
curl "https://luawarden.dev/api/v1/blacklist?projectId=prj_example123" \ -H "Authorization: Bearer YOUR_API_KEY"
Status codes
Errors come back as JSON with an error message.
| Code | Meaning |
|---|---|
| 200 | OK. The request worked. |
| 201 | Created. A build, project, script or key was created. |
| 400 | Bad request. A field is missing or has the wrong type. |
| 401 | Unauthorized. The API key is missing, wrong or revoked. |
| 403 | Forbidden. Your plan does not include this feature, or the resource belongs to another account. |
| 404 | Not found. No build, project, script or key has that ID. |
| 413 | Payload too large. The source file or the import list is over the limit. |
| 429 | Too many requests. You hit the rate limit or your concurrent-build limit. |