Create Key
Reference for the POST /console/v1/keys endpoint of the Statsig API.
post
https://statsigapi.net/console/v1/keysAuthorizations
STATSIG-API-KEYstringrequiredapiKey (header)
Body
application/jsondescriptionstringrequiredConstraints:
max length: 1000typestringrequiredAllowed values:
SERVERCLIENTCONSOLESCIMORGOther properties4
scopesstring[]environmentsstring[]targetAppIDstringsecondaryTargetAppIDsstring[]Response
application/json200· Key created successfully
messagestringrequiredA simple string explaining the result of the operation.
dataobjectrequiredShow child attributes
keystringrequiredConstraints:
nullabletypestringrequiredAllowed values:
SERVERCLIENTCONSOLESCIMORGdescriptionstringrequiredscopesstring[]requiredenvironmentsstring[]primaryTargetAppstringConstraints:
nullablesecondaryTargetAppsstring[]Constraints:
nullablestatusstringrequiredAllowed values:
activedeactivatedlastUsedstringConstraints:
nullable403· Insufficient permissions.
statusintegerrequiredAllowed values:
403messagestringrequiredWas this helpful?