Create, rename, or revoke an SDK key
manage_sdk_keyCreate, rename, or revoke environment SDK keys for Featureflip; revoke stops flag updates immediately, so rotate by creating and deploying a new key before revoking the old one.
Instructions
Manage an environment's SDK keys. action=create needs name + type and returns the full key ONCE (ServerSide for backend SDKs, ClientSide for browser/mobile). action=rename needs sdkKey and changes only the fields you pass. action=revoke needs sdkKey and stops the key working immediately; apps still using it lose flag updates; revoking a critical environment's key needs a reason. To rotate: create a new key, deploy it, then revoke the old one.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>",
"project": "<project>",
"environment": "<environment>"
},
"name": "manage_sdk_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Key name; required for create | |
| type | No | Required for create: ServerSide for backend SDKs, ClientSide for browser/mobile SDKs | |
| action | Yes | create needs name + type; rename and revoke need sdkKey | |
| reason | No | Why you are making this change. Recorded in the audit log, and required when the environment (or, for project-wide changes, any environment in the project) is marked critical. | |
| sdkKey | No | SDK key id (see list_sdk_keys); required for rename and revoke | |
| project | Yes | Project key | |
| description | No | What the key is used for; "" clears it | |
| environment | Yes | Environment key, e.g. production |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||