curl --request GET \
--url https://statsigapi.net/console/v1/layers \
--header 'STATSIG-API-KEY: <api-key>'
{
"message": "Layers listed successfully.",
"data": [
{
"id": "statsig::product_logo_icon_shapes_multi_group_layer",
"description": "",
"idType": "userID",
"lastModifierID": "5sgBiiuoBX4fscrWdCXVma",
"lastModifiedTime": 1677893118949,
"lastModifierName": "Test User",
"lastModifierEmail": "test@statsig.com",
"creatorID": "5sgBiiuoBX4fscrWdCXVma",
"createdTime": 1677893118889,
"creatorName": "Test User",
"creatorEmail": "test@statsig.com",
"targetApps": [],
"holdoutIDs": [],
"tags": [],
"team": null,
"isImplicitLayer": true,
"parameters": []
},
{
"id": "Homepage Feed Improvements",
"description": "test description",
"idType": "userID",
"lastModifierID": "5sgBiiuoBX4fscrWdCXVma",
"lastModifiedTime": 1702925736079,
"lastModifierName": "Test User",
"lastModifierEmail": "test@statsig.com",
"creatorID": "6Q78Ih2m3FnOoECDsvzoms",
"createdTime": 1678122232525,
"creatorName": "Test User",
"creatorEmail": "test@statsig.com",
"targetApps": [],
"holdoutIDs": [
"global_holdout",
"test_target_gate"
],
"tags": [],
"team": null,
"isImplicitLayer": false,
"parameters": [
{
"name": "ranking_model",
"type": "string",
"defaultValue": "4v2"
},
{
"name": "test",
"type": "string",
"defaultValue": "randomtextfdafs"
},
{
"name": "newparam",
"type": "string",
"defaultValue": ""
},
{
"name": "test!!!",
"type": "string",
"defaultValue": ""
},
{
"name": "test_object",
"type": "object",
"defaultValue": {
"test": "hello"
}
}
]
},
{
"id": "statsig::mostly_test_experiment_layer",
"description": "",
"idType": "userID",
"lastModifierID": "6Q78Ih2m3FnOoECDsvzoms",
"lastModifiedTime": 1678401652668,
"lastModifierName": "Test User",
"lastModifierEmail": "test@statsig.com",
"creatorID": "6Q78Ih2m3FnOoECDsvzoms",
"createdTime": 1678401652627,
"creatorName": "Test User",
"creatorEmail": "test@statsig.com",
"targetApps": [],
"holdoutIDs": [],
"tags": [],
"team": null,
"isImplicitLayer": true,
"parameters": []
}
],
"pagination": {
"itemsPerPage": 3,
"pageNumber": 1,
"totalItems": 1189,
"nextPage": "/console/v1/layers?page=2&limit=3",
"previousPage": null,
"all": "/console/v1/layers"
}
}
curl --request GET \
--url https://statsigapi.net/console/v1/layers \
--header 'STATSIG-API-KEY: <api-key>'
{
"message": "Layers listed successfully.",
"data": [
{
"id": "statsig::product_logo_icon_shapes_multi_group_layer",
"description": "",
"idType": "userID",
"lastModifierID": "5sgBiiuoBX4fscrWdCXVma",
"lastModifiedTime": 1677893118949,
"lastModifierName": "Test User",
"lastModifierEmail": "test@statsig.com",
"creatorID": "5sgBiiuoBX4fscrWdCXVma",
"createdTime": 1677893118889,
"creatorName": "Test User",
"creatorEmail": "test@statsig.com",
"targetApps": [],
"holdoutIDs": [],
"tags": [],
"team": null,
"isImplicitLayer": true,
"parameters": []
},
{
"id": "Homepage Feed Improvements",
"description": "test description",
"idType": "userID",
"lastModifierID": "5sgBiiuoBX4fscrWdCXVma",
"lastModifiedTime": 1702925736079,
"lastModifierName": "Test User",
"lastModifierEmail": "test@statsig.com",
"creatorID": "6Q78Ih2m3FnOoECDsvzoms",
"createdTime": 1678122232525,
"creatorName": "Test User",
"creatorEmail": "test@statsig.com",
"targetApps": [],
"holdoutIDs": [
"global_holdout",
"test_target_gate"
],
"tags": [],
"team": null,
"isImplicitLayer": false,
"parameters": [
{
"name": "ranking_model",
"type": "string",
"defaultValue": "4v2"
},
{
"name": "test",
"type": "string",
"defaultValue": "randomtextfdafs"
},
{
"name": "newparam",
"type": "string",
"defaultValue": ""
},
{
"name": "test!!!",
"type": "string",
"defaultValue": ""
},
{
"name": "test_object",
"type": "object",
"defaultValue": {
"test": "hello"
}
}
]
},
{
"id": "statsig::mostly_test_experiment_layer",
"description": "",
"idType": "userID",
"lastModifierID": "6Q78Ih2m3FnOoECDsvzoms",
"lastModifiedTime": 1678401652668,
"lastModifierName": "Test User",
"lastModifierEmail": "test@statsig.com",
"creatorID": "6Q78Ih2m3FnOoECDsvzoms",
"createdTime": 1678401652627,
"creatorName": "Test User",
"creatorEmail": "test@statsig.com",
"targetApps": [],
"holdoutIDs": [],
"tags": [],
"team": null,
"isImplicitLayer": true,
"parameters": []
}
],
"pagination": {
"itemsPerPage": 3,
"pageNumber": 1,
"totalItems": 1189,
"nextPage": "/console/v1/layers?page=2&limit=3",
"previousPage": null,
"all": "/console/v1/layers"
}
}
Optional header to respect review settings for mutation endpoints.
Name of the creator.
ID of the user who created the entity.
Filter by tags
Results per page
10
Page number
1
Get Layers response
The response is of type object
.