cURL
experiment_exposure
curl --request POST \ --url https://events.statsigapi.net/v1/log_custom_exposure \ --header 'Content-Type: application/json' \ --header 'statsig-api-key: <api-key>' \ --data '{ "exposures": [ { "user": { "userID": "user-123" }, "experimentName": "checkout_flow_v2", "group": "Test Group", "ruleID": "rule_abc123", "secondaryExposures": [ { "gate": "is_employee", "gateValue": "false", "ruleID": "default" } ] } ]}'
{ "success": true }
Manually logs exposure events for experiments or feature gates. Useful for analytics-only experiments, delayed exposure logging, or when automatic exposure logging is disabled.
1
Show child attributes
Was this page helpful?