Get Remote Config
horizon_get_remote_configReads one remote config value by key as a string, so a game can check a single feature flag or balance value; unknown keys return found: false.
Instructions
Reads one remote config value by key (a feature flag or balance value set in the horizOn dashboard) as a string. Use when: the game needs a single value, for example to check one feature flag. Not for: loading many values at start (use horizon_get_all_remote_configs, one request instead of many). Side effects: None (read only). Returns: {configKey, configValue, found}. Values are always strings: parse numbers and booleans yourself. An unknown key is not an error: found is false and configValue null, so fall back to a default. Errors: Needs HORIZON_API_KEY. Every failure returns an error result (isError) with the HTTP status and body: a 401 that horizon_test_connection also returns means HORIZON_API_KEY is wrong, 429 means the account's per-minute rate limit was reached (wait a minute, then retry).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Config key exactly as defined in the dashboard, case-sensitive, for example 'max_lives' (max 256 characters) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| found | No | ||
| configKey | No | ||
| configValue | No |