List runtime keys
Lists runtime key metadata for a project environment. Raw key secrets are never returned.
GEThttps://api.featuregate.dev/v1/projects/{projectId}/environments/{environmentKey}/runtime-keys
Authenticate with a management automation key in the Authorization header.management:runtime-keys:read
Path parameters
projectIdstringrequired
Stable project_ identifier.
Pattern: ^project_.+
environmentKeystringrequired
Lowercase letters, numbers, and hyphens only.
Length: 1-80Pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$
Request
sh
curl -X GET https://api.featuregate.dev/v1/projects/project_example/environments/production/runtime-keys \
-H "Authorization: Bearer fg_ak_test_0123456789abcdef0123456789abcdef0123456789abcdef"Returns
runtimeKeysobject[]required
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.
Example response · 200
json
{
"runtimeKeys": []
}Responses
200Runtime key metadata for the selected environment.
400Validation failed.
401Authentication failed.
403The key is not allowed to access this resource.
429Rate limit exceeded.
500Unexpected server error.