cURL
curl --request POST \ --url https://statsigapi.net/console/v1/keys \ --header 'Content-Type: application/json' \ --header 'STATSIG-API-KEY: <api-key>' \ --data '{ "description": "<string>", "type": "SERVER", "scopes": [ "omni_read_only" ], "environments": [ "<string>" ], "targetAppID": "<string>", "secondaryTargetAppIDs": [ "<string>" ] }'
{ "message": "Key created 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.
1000
SERVER
CLIENT
CONSOLE
SCIM
ORG
Show child attributes
Key created successfully
A simple string explaining the result of the operation.
A single result.
Was this page helpful?