Get Ranked List for Contextual Bandit
Returns a ranked list of variants for a contextual multi-armed bandit (autotune) experiment. The ranking is based on predicted performance.
https://api.statsig.com/v1/get_ranked_listAuthorizations
statsig-api-keystringrequiredapiKey (header)
Body
application/jsonconfigNamestringrequiredName of the contextual bandit (autotune) experiment
userobjectUser object containing identification and attributes for evaluation. At minimum, provide at least one identifier.
Show child attributes
userIDstringPrimary user identifier
emailstringUser email address
ipstringUser IP address for geo-targeting
userAgentstringUser agent string for device/browser targeting
countrystring2-letter country code (ISO 3166-1 alpha-2)
localestringLocale/language code
appVersionstringApplication version
customobjectCustom user attributes for targeting (string, number, boolean, or array of strings)
privateAttributesobjectPrivate attributes used for evaluation but not logged to analytics
customIDsobjectAdditional custom identifier mappings
statsigEnvironmentobjectEnvironment tier for targeting
tierstringEnvironment tier
statsigMetadataobjectSDK metadata for tracking SDK type, version, and other diagnostic information
Show child attributes
sdkTypestringSDK type sending the request (e.g., js-client)
sdkVersionstringSDK version
exposureLoggingDisabledbooleanWhen true, prevents the HTTP API from automatically logging exposures. Use this only if you will handle exposure logging yourself.
Response
application/jsonvalueobject[]Array of variants ranked by predicted performance
Was this helpful?