Returns the environment-scoped feature flags served by the gateway, evaluated server-side, as {"flags": {"": }}. Unauthenticated: global flags carry no identity. Most of the key set is not a compatibility surface: it changes as flags are added and retired, so treat an absent key as its own default. The CLI-facing key is the exception — released CLI binaries poll the key name they were built with and cannot be upgraded in lockstep with the gateway, so that key is versioned.
GET
/api/v1/feature-flags/global
curl \
--request GET 'https://agentengine.mongodb.com/api/v1/feature-flags/global' \
--header "Authorization: $API_KEY"
Response examples (406)
Operation unavailable
{
"detail": "This operation is not available in API version 2026-09-20-preview.",
"error": 406,
"errorCode": "OPERATION_NOT_IN_API_VERSION",
"parameters": [
"Accept"
],
"reason": "Not Acceptable"
}
{
"detail": "This operation supports text/event-stream, which the Accept header excludes. Remove unsupported media-type parameters or accept this type with a positive q value.",
"error": 406,
"errorCode": "UNACCEPTABLE_MEDIA_TYPE",
"parameters": [
"Accept"
],
"reason": "Not Acceptable"
}
{
"detail": "The requested API version is not supported. Supported versions: 2026-09-20-preview.",
"error": 406,
"errorCode": "UNSUPPORTED_API_VERSION",
"parameters": [
"Accept"
],
"reason": "Not Acceptable"
}
Response examples (406)
{
"detail": "This operation is not available in API version 2026-09-20-preview.",
"error": 406,
"errorCode": "OPERATION_NOT_IN_API_VERSION",
"parameters": [
"Accept"
],
"reason": "Not Acceptable"
}
Response examples (200)
{
"flags": {
"additionalProperty1": true,
"additionalProperty2": true
}
}
Response examples (200)
{
"flags": {
"additionalProperty1": true,
"additionalProperty2": true
}
}