Loaders

Create and manage multi-game loaders that route Roblox Place and Universe IDs to your protected scripts.

On this page

A loader maps Roblox Place or Universe IDs to your protected scripts so players run a single loadstring across all your games. Endpoints need loaders:read / loaders:write.

List loaders

GET/api/loadersloaders:read

Returns every loader belonging to a service.

curl "https://api.santiauth.com/api/loaders?service_id=42" \
  -H "x-api-key: $SANTIAUTH_API_KEY"

Create a loader

POST/api/loadersloaders:write

Creates a new loader for a service, optionally with its game routes, key prompt mode and Lua hooks.

curl -X POST "https://api.santiauth.com/api/loaders" \
  -H "x-api-key: $SANTIAUTH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "service_id": 42,
  "name": "Main Hub",
  "description": "Routes all supported games",
  "enabled": true,
  "key_mode": "none",
  "fallback_action": "kick",
  "fallback_message": "This game is not supported.",
  "routes": [
    {
      "match_kind": "place",
      "match_id": 2753915549,
      "script_id": "9b1f6a3e-2c4d-4e5f-8a9b-0c1d2e3f4a5b",
      "label": "Game A"
    }
  ]
}'
201 Created
Body: —
FieldTypeNotes
service_idinteger, requiredService the loader belongs to.
namestring, required1–64 chars.
descriptionstringUp to 500 chars.
enabledbooleanDisabled loaders stop serving scripts immediately.
key_modeenumHow the loader obtains script_key: none, window (built-in key UI) or custom (runs key_source).
key_templateenum | nullVisual preset when key_mode is window.
key_sourcestringCustom Lua key UI (up to 64 KB) when key_mode is custom.
before_sourcestringCustom Lua executed before the routed script (up to 64 KB).
fallback_actionenumAction when no route matches: warn, error, kick or script (runs fallback_source).
fallback_messagestringOptional message (up to 200 chars) for warn, error or kick.
fallback_sourcestringCustom Lua (up to 64 KB) when fallback_action is script.
routesarrayUp to 500 entries: { match_kind: "place" | "universe", match_id, script_id, label? }.

Get a loader

GET/api/loaders/{id}loaders:read

Returns a single loader by UUID, including its routes and hooks.

curl "https://api.santiauth.com/api/loaders/3f2b8c1e-4d5a-4e6f-9a7b-8c9d0e1f2a3b" \
  -H "x-api-key: $SANTIAUTH_API_KEY"

Get loader source

GET/api/loaders/{id}/sourceloaders:read

Returns the generated Luau loader snippet players execute.

curl "https://api.santiauth.com/api/loaders/3f2b8c1e-4d5a-4e6f-9a7b-8c9d0e1f2a3b/source" \
  -H "x-api-key: $SANTIAUTH_API_KEY"

Update a loader

PUT/api/loaders/{id}loaders:write

Replaces a loader's settings, hooks and routes. Uses the same fields as Create a loader without service_id.

curl -X PUT "https://api.santiauth.com/api/loaders/3f2b8c1e-4d5a-4e6f-9a7b-8c9d0e1f2a3b" \
  -H "x-api-key: $SANTIAUTH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Main Hub",
  "enabled": true,
  "fallback_action": "kick",
  "routes": [
    {
      "match_kind": "universe",
      "match_id": 994732206,
      "script_id": "9b1f6a3e-2c4d-4e5f-8a9b-0c1d2e3f4a5b"
    }
  ]
}'

Delete a loader

DELETE/api/loaders/{id}loaders:write

Deletes the loader. Its public URL stops serving scripts immediately.

curl -X DELETE "https://api.santiauth.com/api/loaders/3f2b8c1e-4d5a-4e6f-9a7b-8c9d0e1f2a3b" \
  -H "x-api-key: $SANTIAUTH_API_KEY"
204 No Content
Empty body.