cURL
dynamic_config
curl --request POST \ --url https://api.statsig.com/v1/get_config \ --header 'Content-Type: application/json' \ --header 'statsig-api-key: <api-key>' \ --data '{ "configName": "homepage_config", "user": { "userID": "user-123" } }'
200
config_found
{ "name": "homepage_config", "value": { "header_text": "Welcome!", "show_banner": true, "button_color": "#FF5733" }, "group": "2RamGsERWbWMIMnSfOlQuX", "rule_id": "2RamGsERWbWMIMnSfOlQuX", "group_name": "Power Users" }
Fetches configuration values for a dynamic config or experiment. Works for both types - the system automatically determines which type based on the name. Automatically logs exposure events.
2 - 100
Show child attributes
Was this page helpful?