cURL
curl --request POST \ --url https://api.statsig.com/v1/get_layer \ --header 'Content-Type: application/json' \ --header 'statsig-api-key: <api-key>' \ --data '{ "layerName": "product_page_layer", "user": { "userID": "user-123" } }'
200
layer_with_experiment
{ "name": "product_page_layer", "value": { "add_to_cart_color": "blue", "price_format": "compact", "show_reviews": true }, "ruleID": "rule_abc123", "allocatedExperimentName": "add_to_cart_experiment"}
Fetches parameter values from a layer. Layers allow you to share parameters across multiple experiments. Automatically logs exposure events.
Show child attributes
Was this page helpful?