FeatureGate

Revoke runtime key

Revokes a runtime key in a project environment. Revoked keys cannot evaluate flags or fetch snapshots.

POSThttps://api.featuregate.dev/v1/projects/{projectId}/environments/{environmentKey}/runtime-keys/{keyId}/revoke
Authenticate with a management automation key in the Authorization header.management:runtime-keys:write

Path parameters

projectIdstringrequired

Stable project_ identifier.

Pattern: ^project_.+

environmentKeystringrequired

Lowercase letters, numbers, and hyphens only.

Length: 1-80Pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$

keyIdstringrequired

Stable key_ identifier.

Pattern: ^key_.+

Request
sh
curl -X POST https://api.featuregate.dev/v1/projects/project_example/environments/production/runtime-keys/key_example/revoke \
  -H "Authorization: Bearer fg_ak_test_0123456789abcdef0123456789abcdef0123456789abcdef"

Returns

runtimeKeyobjectrequired
idstringrequired

Stable API key identifier, prefixed with key_.

Length: 1+

createdAtstringrequired

Key creation timestamp.

updatedAtstringrequired

Last key metadata update timestamp.

namestringrequired

Operator-facing key name.

Length: 1+

keyPrefixstringrequired

Non-secret key fingerprint shown for identification.

Length: 1+

scopes"runtime:evaluate" | "runtime:snapshot"[]required

Runtime scopes granted to this key.

organisationIdstringrequired

Owning organisation identifier.

Length: 1+

projectIdstring | nullrequired

Bound project identifier.

Length: 1+

environmentIdstring | nullrequired

Bound environment identifier.

Length: 1+

createdByUserIdstring | nullrequired

Creating user, when available.

Length: 1+

lastUsedAtstring | nullrequired

Last successful use timestamp, when known.

revokedAtstring | nullrequired

Revocation timestamp, or null while active.

Responses

200The revoked runtime key metadata.
400Validation failed.
401Authentication failed.
403The key is not allowed to access this resource.
429Rate limit exceeded.
500Unexpected server error.