Loaders
Create and manage multi-game loaders that route Roblox Place and Universe IDs to your protected scripts.
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
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
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: —| Field | Type | Notes |
|---|---|---|
service_id | integer, required | Service the loader belongs to. |
name | string, required | 1–64 chars. |
description | string | Up to 500 chars. |
enabled | boolean | Disabled loaders stop serving scripts immediately. |
key_mode | enum | How the loader obtains script_key: none, window (built-in key UI) or custom (runs key_source). |
key_template | enum | null | Visual preset when key_mode is window. |
key_source | string | Custom Lua key UI (up to 64 KB) when key_mode is custom. |
before_source | string | Custom Lua executed before the routed script (up to 64 KB). |
fallback_action | enum | Action when no route matches: warn, error, kick or script (runs fallback_source). |
fallback_message | string | Optional message (up to 200 chars) for warn, error or kick. |
fallback_source | string | Custom Lua (up to 64 KB) when fallback_action is script. |
routes | array | Up to 500 entries: { match_kind: "place" | "universe", match_id, script_id, label? }. |
Get a loader
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
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
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
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.