v1
latestOpenAPI 3.0.02026-07-13103151174.7 KBEnvironments
Generate SDK Keys
Generate new SDK keys for an environment, for any or all of the SDK types. This is the expected and recommended way to rotate SDK keys. Adding a new SDK key will not invalidate existing SDK keys. Generating new keys is restricted for protected environments to those with Publisher permissions
post/v1/projects/{project}/environments/{environment}/sdk-keys
Path parameters
environmentstring required
An Environment key or ID
projectstring required
A Project key or ID
Request body
Response
Example response
{
"name": "Staging Upcoming",
"key": "staging-upcoming",
"description": "Pre-production changes",
"color": "#4073FF",
"_id": "61450f3daec96f5cf4a49946",
"type": "staging"
}