curl --request DELETE \
--url https://statsigapi.net/console/v1/keys/{id} \
--header 'STATSIG-API-KEY: <api-key>'
{
"message": "Key deleted successfully.",
"data": {
"key": "secret-123",
"type": "SERVER",
"description": "Server secret key",
"scopes": [],
"environments": [
"production"
],
"primaryTargetApp": "primaryApp",
"secondaryTargetApps": [
"secondaryApp"
],
"status": "active"
}
}
curl --request DELETE \
--url https://statsigapi.net/console/v1/keys/{id} \
--header 'STATSIG-API-KEY: <api-key>'
{
"message": "Key deleted successfully.",
"data": {
"key": "secret-123",
"type": "SERVER",
"description": "Server secret key",
"scopes": [],
"environments": [
"production"
],
"primaryTargetApp": "primaryApp",
"secondaryTargetApps": [
"secondaryApp"
],
"status": "active"
}
}
Optional header to respect review settings for mutation endpoints.
Key deleted successfully
The response is of type object
.