Skip to content

Get Game Config

GET /v1/games/:gameType/config

Returns the full configuration for a specific game type, including reward segments, weights, and display settings.

HeaderRequiredValue
X-API-KeyYesYour public key
ParamTypeDescription
gameTypestringOne of NEON_WHEEL, COSMIC_SLOTS, ENIGMA_BOXES
Terminal window
curl -X GET https://api.gamifyhost.com/v1/games/NEON_WHEEL/config \
-H "X-API-Key: pk_live_your_public_key"

Status: 200 OK

{
"message": "Game config retrieved",
"code": 200,
"status": "success",
"data": {
"gameType": "NEON_WHEEL",
"name": "Neon Wheel",
"description": "Spin the neon wheel to win rewards",
"pointsToUnlock": 100,
"status": "ACTIVE",
"config": {
"segments": 8,
"rewards": [
{ "tier": "common", "type": "points", "value": 10, "label": "+10 pts", "weight": 40 },
{ "tier": "common", "type": "xp", "value": 25, "label": "+25 XP", "weight": 30 },
{ "tier": "rare", "type": "cashback", "value": 50, "label": "$0.50 cashback", "weight": 10 },
{ "tier": "epic", "type": "special", "value": 500, "label": "Grand Prize", "weight": 2 }
]
}
}
}
FieldTypeDescription
gameTypestringGame identifier
namestringDisplay name
descriptionstringShort description
pointsToUnlockintegerCost per play
statusstringGame status
configobjectGame-specific configuration (segments, reward weights, etc.)
CodeMessage
404Game mechanic not found