Skip to main content

Remote Config - SDK Fetch (Legacy Alias)

Endpoint

/o/sdk?method=fetch_remote_config

Overview

Legacy alias for SDK remote config read. This endpoint uses the same runtime path as method=rc and returns the same value payload format.

Authentication

SDK authentication is used.

Required SDK identity parameters:

  • app_key
  • device_id

Permissions

No dashboard permission check is applied. Access is determined by SDK app/device context.

Request Parameters

ParameterTypeRequiredDescription
methodStringYesMust be fetch_remote_config.
app_keyStringYesApp key used by SDK endpoints.
device_idStringYesDevice/user identifier for config resolution.
keysString (JSON Array)NoInclude only listed parameter keys.
omit_keysString (JSON Array)NoExclude listed parameter keys.
metricsString (JSON Object) or ObjectNoUser properties used for condition matching.
oiNumber/StringNoEnrollment toggle used by RC/AB flow when supported by SDK request context.
timestampNumberNoOptional event timestamp context.
cityStringNoOptional location context.
country_codeStringNoOptional location context.
locationStringNoOptional location context.
tzStringNoOptional timezone context.
ip_addressStringNoOptional IP override for geo-derived properties.

Response

Success Response

{
"button_color": "#FF5733",
"max_items": 50,
"feature_enabled": true
}

Response Fields

FieldTypeDescription
(root)ObjectRemote config key-value map for matched parameters.
{parameter_key}String/Number/Boolean/Object/ArrayResolved parameter value.

Error Responses

  • 400
{
"result": "Error while fetching remote config data."
}

Behavior/Processing

  • Alias behavior: fetch_remote_config is routed through the same remote config resolver as method=rc.
  • Value priority for each parameter: A/B-tested value first, then first matching condition value, then default value.
  • keys/omit_keys are parsed from JSON strings. Parse failures are ignored and request continues without that filter.

Database Collections

CollectionUsed forData touched by this endpoint
countly_out.remoteconfig_parameters{appId}Parameter definitions and defaultsReads parameter definitions and associated condition values.
countly_out.remoteconfig_conditions{appId}Condition definitionsReads condition rules used for per-user matching.

Examples

Fetch all available parameters

/o/sdk?method=fetch_remote_config&app_key=YOUR_APP_KEY&device_id=device-123

Fetch selected keys only

/o/sdk?method=fetch_remote_config&app_key=YOUR_APP_KEY&device_id=device-123&keys=["button_color","max_items"]

Fetch while excluding keys

/o/sdk?method=fetch_remote_config&app_key=YOUR_APP_KEY&device_id=device-123&omit_keys=["debug_flag"]

Limitations

  • Legacy alias kept for compatibility; use method=rc for new integrations.
  • If there are no matching parameters, response is an empty object.

Last Updated

2026-03-05