Create Key

Reference for the POST /console/v1/keys endpoint of the Statsig API.

posthttps://statsigapi.net/console/v1/keys

Authorizations

STATSIG-API-KEYstringrequired

apiKey (header)

Body

application/json
descriptionstringrequired
Constraints:max length: 1000
typestringrequired
Allowed values:SERVERCLIENTCONSOLESCIMORG
Other properties4
scopesstring[]
environmentsstring[]
targetAppIDstring
secondaryTargetAppIDsstring[]

Response

application/json
200· Key created successfully
messagestringrequired

A simple string explaining the result of the operation.

dataobjectrequired
Show child attributes
keystringrequired
Constraints:nullable
typestringrequired
Allowed values:SERVERCLIENTCONSOLESCIMORG
descriptionstringrequired
scopesstring[]required
environmentsstring[]
primaryTargetAppstring
Constraints:nullable
secondaryTargetAppsstring[]
Constraints:nullable
statusstringrequired
Allowed values:activedeactivated
lastUsedstring
Constraints:nullable
403· Insufficient permissions.
statusintegerrequired
Allowed values:403
messagestringrequired

Was this helpful?