curl --request GET \
--url https://statsigapi.net/console/v1/holdouts/{id} \
--header 'STATSIG-API-KEY: <api-key>'
{
"message": "Holdout read successfully.",
"data": {
"id": "testing_holdout",
"name": "testing holdout",
"description": "helpful summary of what this holdout does",
"idType": "userID",
"lastModifierID": "4dcQUIpS8PHObBGD7HJwOx",
"lastModifiedTime": 1719873874212,
"lastModifierName": "CONSOLE API",
"lastModifierEmail": null,
"creatorID": "4dcQUIpS8PHObBGD7HJwOx",
"createdTime": 1719873870785,
"creatorName": "CONSOLE API",
"creatorEmail": null,
"targetApps": [],
"tags": [],
"team": "Console Team",
"isEnabled": true,
"isGlobal": false,
"passPercentage": 0,
"gateIDs": [],
"experimentIDs": [],
"layerIDs": [],
"targetingGateID": null
}
}
curl --request GET \
--url https://statsigapi.net/console/v1/holdouts/{id} \
--header 'STATSIG-API-KEY: <api-key>'
{
"message": "Holdout read successfully.",
"data": {
"id": "testing_holdout",
"name": "testing holdout",
"description": "helpful summary of what this holdout does",
"idType": "userID",
"lastModifierID": "4dcQUIpS8PHObBGD7HJwOx",
"lastModifiedTime": 1719873874212,
"lastModifierName": "CONSOLE API",
"lastModifierEmail": null,
"creatorID": "4dcQUIpS8PHObBGD7HJwOx",
"createdTime": 1719873870785,
"creatorName": "CONSOLE API",
"creatorEmail": null,
"targetApps": [],
"tags": [],
"team": "Console Team",
"isEnabled": true,
"isGlobal": false,
"passPercentage": 0,
"gateIDs": [],
"experimentIDs": [],
"layerIDs": [],
"targetingGateID": null
}
}
Optional header to respect review settings for mutation endpoints.
id
Get holdout by id response
The response is of type object
.