Run this project

Select a project above to fill in its exact loader snippet. Free and Custom loaders are bare. Paid and Ad-supported snippets show where to put the user's license key. A key-system loader starts its uploaded key UI, not its linked scripts.

How your own key UI works

In Custom mode the loader is bare: it never draws a key prompt. Your script owns the unlock — your ScreenGui, your branding, your copy — and hands the key to the loader before running it. A TextBox, a key saved from last session, or an ad unlock you trigger yourself all work.

The loader still does the real check. It computes the device’s HWID, verifies the key with AegisLoader and binds it to that device on first use. Validating from your UI is for a friendly error message, not for security.

  1. Your UI gets a keyFrom a TextBox, a saved file, or the ad unlock.
  2. Optional: validate itCall validate so you can say “expired” or “locked to another device” in your own words.
  3. Set getgenv().KeyThe loader reads it once when it starts.
  4. Run the loader lineIt checks the key, binds the HWID and runs your protected build. A bad key stops it before any of your code executes.

Endpoints

Base URL https://api.aegisloader.com. These public endpoints do not use your dashboard account key. Never ship that account key. Validation, provider lists and polling return JSON; the gate link opens an HTML page in the user's browser.

Validation accepts any current project ID; a Free project answers that no key is required. Ad gates apply to Ad-supported, Custom or key-system projects. For shared keys, the samples use the key authority ID ; the payload loader keeps its own project ID.

Find the key authority

GET /api/keysource/{scriptId} returns ok, shared, key_system and the stored project mode. For a restricted script with shared: true, use that key-system ID for its key/ad UI. Otherwise use the script ID. Linking a Free project does not make it require a key.

Rate limits

Limits are per IP, so one user hammering a button can’t lock out everyone else. There’s no 429 — over the limit the endpoints fail soft: validate answers 200 with "ok": false and "reason": "key unavailable" (back off — don’t validate on a loop), and /gate/…/wait returns {} — the same as “not ready yet” — so just reconnect.

Rate limits per endpoint
EndpointLimitPerNotes
/api/validate~120 / minIPValidate once when the user submits a key, not on a loop.
/gate/…/wait~60 / minIPEach call long-polls ~25s, so one covers a long wait — reconnect when it returns {}.

Errors

A bad key is not an HTTP error: validate answers 200 with "ok": false and a reason. A non-200 means the request itself was wrong or we couldn’t answer it.

HTTP statuses
StatusreasonMeaning
200ok: trueThe key is good for this device — see validate for the fields.
200key unavailableToo many validate calls from this IP. Back off — don’t validate on a loop.
400bad idThe {id} is malformed. Check you copied it from this page.
404unknown projectNo key system or Custom script has that {id}.
503project unavailableThe current build or policy cannot be read safely. Retry later; do not label the user's key invalid.

Error bodies vary: a rejected validation uses reason; HTTP failures can use error. Check the HTTP result and parse JSON safely. A successful transport call is not proof that a protected script finished loading.

Site activity and execution geography

Aggregates count accepted loader handshakes, not confirmed client execution. These routes do not expose IPs, project IDs, license keys or account records.

  1. Public totals. Executions in retained project records, protected projects, and projects with a start in the last 30 days.
    GET /api/public/site-overview
    Accept: application/json
  2. Public geography. Counts by ISO country since collection began. Supported windows: 24h, 7d, 30d, all.
    GET /api/public/execution-countries?range=7d
    Accept: application/json
  3. Private geography. Use only your account credential, in a server-side integration or your own signed-in browser. Never place this credential in a player script.
    GET /api/account/execution-countries?range=24h
    Accept: application/json
    Authorization: Bearer <account-key>

Private results are limited to currently owned projects and never cached by shared caches. Public results are cached and rate-limited.