Skip to content

API Reference

https://api.flags.gg

All requests must include these headers:

HeaderDescription
X-PROJECT-IDYour project identifier
X-AGENT-IDYour agent identifier
X-ENVIRONMENT-IDYour environment identifier

Fetch all feature flags for the authenticated agent and environment.

Response:

{
"intervalAllowed": 900,
"flags": [
{
"enabled": true,
"details": {
"id": "flag-uuid",
"name": "my-feature"
}
}
]
}
FieldTypeDescription
intervalAllowedintegerRecommended refresh interval in seconds
flagsarrayList of feature flags
flags[].enabledbooleanWhether the flag is enabled
flags[].details.idstringUnique flag identifier
flags[].details.namestringHuman-readable flag name

You typically don’t need to call the API directly — the SDKs handle all communication, caching, and error handling automatically. See the SDK overview for available client libraries.

The intervalAllowed field in the response tells clients how frequently they should poll for updates. SDKs respect this value automatically.