curl --request GET \
--url https://statsigapi.net/console/v1/keys \
--header 'STATSIG-API-KEY: <api-key>'
{
"message": "Keys listed successfully.",
"data": [
{
"key": "secret-123",
"type": "SERVER",
"description": "Server secret key",
"scopes": [],
"environments": [
"production"
],
"primaryTargetApp": "primaryApp",
"secondaryTargetApps": [
"secondaryApp"
],
"status": "active"
},
{
"key": "console-123",
"type": "CONSOLE",
"description": "Console API key",
"scopes": [
"omni_read_write",
"can_access_keys"
],
"status": "active"
}
]
}
Optional header to respect review settings for mutation endpoints.
Results per page
10
Page number
1
Keys listed successfully
The response is of type object
.
curl --request GET \
--url https://statsigapi.net/console/v1/keys \
--header 'STATSIG-API-KEY: <api-key>'
{
"message": "Keys listed successfully.",
"data": [
{
"key": "secret-123",
"type": "SERVER",
"description": "Server secret key",
"scopes": [],
"environments": [
"production"
],
"primaryTargetApp": "primaryApp",
"secondaryTargetApps": [
"secondaryApp"
],
"status": "active"
},
{
"key": "console-123",
"type": "CONSOLE",
"description": "Console API key",
"scopes": [
"omni_read_write",
"can_access_keys"
],
"status": "active"
}
]
}