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": "[email protected]",
"creatorID": "5sgBiiuoBX4fscrWdCXVma",
"createdTime": 1677893118889,
"creatorName": "Test User",
"creatorEmail": "[email protected]",
"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": "[email protected]",
"creatorID": "6Q78Ih2m3FnOoECDsvzoms",
"createdTime": 1678122232525,
"creatorName": "Test User",
"creatorEmail": "[email protected]",
"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": "[email protected]",
"creatorID": "6Q78Ih2m3FnOoECDsvzoms",
"createdTime": 1678401652627,
"creatorName": "Test User",
"creatorEmail": "[email protected]",
"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": "[email protected]",
"creatorID": "5sgBiiuoBX4fscrWdCXVma",
"createdTime": 1677893118889,
"creatorName": "Test User",
"creatorEmail": "[email protected]",
"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": "[email protected]",
"creatorID": "6Q78Ih2m3FnOoECDsvzoms",
"createdTime": 1678122232525,
"creatorName": "Test User",
"creatorEmail": "[email protected]",
"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": "[email protected]",
"creatorID": "6Q78Ih2m3FnOoECDsvzoms",
"createdTime": 1678401652627,
"creatorName": "Test User",
"creatorEmail": "[email protected]",
"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.
Get Layers response
A simple string explaining the result of the operation.
Array of results returned by pagination limit.
Show child attributes
ID
The ID type used for this layer, important for validation.
A detailed description of the layer, explaining its purpose and functionality.
1000ID of the last modifier.
Time of the last modification.
Email of the last modifier.
Name of the last modifier.
ID of the user who created the entity.
Timestamp when the entity was created.
Name of the creator.
Email of the creator.
Indicates if the layer was automatically created by Statsig during experiment creation.
An array of parameters associated with the layer, each defining specific attributes.
Show child attributes
The name of this parameter, used for identification within the layer.
The data type that this parameter returns. Allowed types include: string, boolean, number, object, and array.
string, number, boolean, object, array The default value for this parameter, which must match the specified type.
Optional name for the configuration.
Optional tags for categorization.
List of target applications that this layer is intended for.
Holdouts applied to this configuration.
Optional name for the responsible team.
Optional ID of the responsible team.
Version number
Pagination metadata for checking if there is next page for example.
Was this page helpful?