Contextual Personalization Best Variant

Response description

JSON format

ParameterTypeDescriptionRequired
project_idstringReward token received with the best variant callRequired
bandit_idstringBandit IDRequired
customer_idslist of objectsOne or more hard and/or soft customer IDs. The most common ones include: cookie, registeredAt least 1 required
variantslist of objectsList of variants to chose fromAt least 2 required
customer_contextlist of objectsList of custom features (numerical/categorical)Not required
timeoutstringRequest timeoutNot required

Additional payload and response examples

{
    "project_id": "229adede-d102-11ec-9d5f-82eeb310c437",
    "bandit_id": "6299c9043819d9a5974794bd",
    "customer_ids": {
        "cookie": "776727a9-6ab7-4864-bd63-4e2a74c824fb"
    },
    "variants": [
        {
            "id": "run_away"
        },
        {
            "id": "chill"
        }
    ],
    "customer_context": {
        "features": {
            "current_mood": {
                "value": "not_great_not_terrible",
                "options": {
                    "number_type": "categorical"
                }
            },
            "last_measurement_röntgen": {
                "value": 3.6,
                "options": {
                    "number_type": "numerical"
                }
            }
        }
    },
    "timeout": "3s"
}
Language
Authorization
Basic
base64
:
Click Try It! to start a request and see the response here!