Keys
post/console/v1/keys

Request

  • Base URL
    https://statsigapi.net
  • URL
    https://statsigapi.net/console/v1/keys
  • Auth
    API key in header STATSIG-API-KEY

Request body

descriptionstring required
type'SERVER' | 'CLIENT' | 'CONSOLE' | 'SCIM' | 'ORG' required
scopesstring[]
environmentsstring[]
targetAppIDstring
secondaryTargetAppIDsstring[]

Response

Key created successfully

messagestring required

A simple string explaining the result of the operation.

Example response

{
  "message": "Key created successfully.",
  "data": {
    "key": "secret-123",
    "type": "SERVER",
    "description": "Server secret key",
    "scopes": [],
    "environments": [
      "production"
    ],
    "primaryTargetApp": "primaryApp",
    "targetAppID": "app_id_123",
    "secondaryTargetApps": [
      "secondaryApp"
    ],
    "secondaryTargetAppIDs": [
      "app_id_456"
    ],
    "status": "active"
  }
}

Changes

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status