Developers

API reference

Base URL https://purrguy.pythonanywhere.com · JSON in, JSON out · quotas reset at midnight UTC.

Authentication Limits Endpoints Examples Private API Errors Guides

Authentication

Three ways to authenticate, depending on the endpoint:

The full API key is shown once at creation. LimeVM stores only a hash, so a lost key cannot be recovered — revoke it and make a new one.

Plans and limits

CapabilityFreePaid (Week / Month / Year)Lifetime
Obfuscate via app/API3,000 charsFull engineFull engine
Obfuscations per day320Unlimited
Dashboard obfuscator2/day, 300k chars2/day, 300k charsUnlimited, 300k chars
Script uploads3/day, 5-day links20/day, permanent20/day, permanent
Private API v2——Bearer key, 1M chars, no quota

Endpoints

MethodPathAuthPurpose
POST/api/auth/register—Create an account, returns a session token.
POST/api/auth/login—Log in, returns a session token and tier.
GET/api/auth/meSessionProfile: username, tier, expiry, linked Discord.
POST/api/auth/logoutSessionInvalidate the current token.
POST/api/auth/passwordSessionChange password.
POST/api/obfuscateKey / sessionObfuscate a script with your plan's limits.
POST/api/web-obfuscateSessionDashboard obfuscator (300k chars).
GET/api/web-historyKey / sessionRecent dashboard squeezes.
POST/api/scriptsKey / sessionUpload a script, get a short link.
GET/api/scriptsKey / sessionList your uploaded scripts.
DELETE/api/scripts/<slug>Key / sessionDelete one of your links.
GET/s/<slug>—Raw Lua for a short link.
POST/api/keysSessionCreate an API key (shown once).
GET/api/keysSessionList key prefixes and last use.
DELETE/api/keys/<id>SessionRevoke a key.
POST/api/v2/obfuscatePrivate keyNo-quota private obfuscation, up to 1M chars.

Examples

Log in and read your profile

auth.sh
TOKEN=$(curl -s -X POST https://purrguy.pythonanywhere.com/api/auth/login \
  -H "Content-Type: application/json" \
  -d '{"username":"you","password":"secret"}' | jq -r .token)

curl -s https://purrguy.pythonanywhere.com/api/auth/me \
  -H "Authorization: Bearer $TOKEN"
# → {"ok":true,"username":"you","tier":"free","tier_expires":0,
#    "discord_id":null,"discord_name":""}

Obfuscate with an API key

obfuscate.sh
curl -s -X POST https://purrguy.pythonanywhere.com/api/web-obfuscate \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"source":"print(40 + 2)"}'
# → {"ok":true,"seed":123,"output":"-- limevm v2 …","strings":1,
#    "left_today":1,"unlimited":false}

A JSON body is always returned. unlimited is true for Lifetime accounts, which also report left_today: -1.

Upload a script and get a short link

upload.sh
curl -s -X POST https://purrguy.pythonanywhere.com/api/scripts \
  -H "X-API-Key: lm_YOUR_KEY" -H "Content-Type: application/json" \
  -d '{"source":"print(1)","title":"demo"}'
# → {"ok":true,"slug":"AB12CD",
#    "url":"https://lime.purrguy.me/s/AB12CD",
#    "loadstring":"loadstring(game:HttpGet(\"…\"))()",
#    "duplicate":false}

List, then delete a link

manage.sh
curl -s https://purrguy.pythonanywhere.com/api/scripts \
  -H "X-API-Key: lm_YOUR_KEY"
curl -s -X DELETE https://purrguy.pythonanywhere.com/api/scripts/AB12CD \
  -H "X-API-Key: lm_YOUR_KEY"

Manage API keys

keys.sh
curl -s -X POST https://purrguy.pythonanywhere.com/api/keys \
  -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '{"name":"my bot"}'
# → {"ok":true,"id":"…","api_key":"lm_…"}   ← shown once

curl -s -X DELETE https://purrguy.pythonanywhere.com/api/keys/KEY_ID \
  -H "Authorization: Bearer $TOKEN"

Private API (v2)

A dedicated endpoint for trusted integrations. One fixed Bearer key, no daily quota, up to 1,000,000 characters per call. Requests are audited in a private Discord channel (string count, account, masked key, time, IP).

private.sh
# plain text in → plain text out
curl -s -X POST https://lime.purrguy.me/api/v2/obfuscate \
  -H "Authorization: Bearer $LIMEVM_API_KEY" \
  --data-binary @script.lua -o out.lua

# JSON body
curl -s -X POST https://lime.purrguy.me/api/v2/obfuscate \
  -H "Authorization: Bearer $LIMEVM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"source":"print(1)","seed":123}'
# → {"ok":true,"seed":123,"output":"-- limevm v2 …","in_chars":8,
#    "out_chars":…,"strings":1}

Add ?raw=1 to force a plain-text response. CORS is open. Send the key in Authorization: Bearer …; anything else returns 401.

Errors

StatusCodeMeaning
400bad-username, bad-passwordUsername 3–20 chars (A-Z 0-9 _ -) or password under 6 chars.
400too-big, source-too-bigInput exceeds your plan's character cap.
401unauthorized, bad-credentialsMissing/expired token, revoked key or wrong password.
404unknown-script, unknown-userBad slug or account no longer exists.
409takenUsername already registered.
429daily-used, rate-limitedQuota reached (resets midnight UTC) or too many auth attempts.
500internalEngine failure — safe to retry once; report in Discord if it persists.

Running hosted scripts

Short links return raw Lua, so any executor can fetch and run them:

fetch.lua
loadstring(game:HttpGet("https://lime.purrguy.me/s/SLUG"))()

Fetching a link needs no authentication. Uploading, deleting and every obfuscation endpoint do.

Need account plans, the app or the Discord bot? See the general docs.