RedM Resource & Ingestion API
Integrating rsg-serverlist
Connect any RedM server running RSG Framework to this listing website using the server-only Lua resource rsg-serverlist.
1. Register & Install the Resource
- Go to Register Server to generate your
rsg_live_...API key and owner management token. - Download rsg-serverlist.zip and extract the
rsg-serverlistfolder into your RedM server'sresources/[rsg]/directory (soresources/[rsg]/rsg-serverlist/fxmanifest.luaexists). - Configure your
server.cfgwith the endpoint URL and API key convar (never put API keys in shared/client scripts), then runrefreshandensure rsg-serverlistin your server console.
server.cfg
# Add to your RedM server.cfg set rsg_list_endpoint "https://your-listing-domain.com/api/v1/heartbeat" set rsg_list_api_key "rsg_live_your_generated_api_key" ensure rsg-core ensure rsg-serverlist
2. Security & Heartbeat Behavior
- • Server-only execution:
rsg-serverlistsetsserver_only 'yes'infxmanifest.luaso clients never download the resource or see credentials. - • Hashed & encrypted API keys: Keys are SHA-256 hashed for heartbeat authentication via
Authorization: Bearer <key>orX-API-Key. - • Rate limiting & TTL: Each key accepts up to 6 heartbeats/minute (recommended interval: 60s). If a server stops sending heartbeats for 180 seconds, it automatically transitions to Offline.
3. Heartbeat Endpoint Reference (POST /api/v1/heartbeat)
You can also test the ingestion API directly with curl using an API key from /register:
Test Heartbeat Request
curl -X POST http://localhost:3000/api/v1/heartbeat \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"serverName": "Valentine Frontier RP",
"playersOnline": 42,
"maxPlayers": 64,
"queueCount": 3,
"uptimeSeconds": 14400,
"rsgVersion": "RSGCore v3",
"txAdminVersion": "7.3.2",
"frameworkResources": ["rsg-core", "rsg-inventory", "rsg-horses", "rsg-serverlist"],
"customMetadata": {
"voiceSystem": "rsg-voice",
"economyType": "Realistic 1899"
}
}'