Flags
GETGet a flag
Fetch a feature flag and its environment configurations by project and flag key
GET
/v1/projects/{projectId}/flags/{flagKey}Get a flag
curl --request GET \
--url 'http://localhost:4000/v1/projects/{projectId}/flags/{flagKey}' \
--header 'Authorization: Bearer <token>'200
application/json{}Get a flag
Fetches a feature flag by its key within a project. Use this endpoint when a management client needs the flag definition, its typed variations, and the configurations associated with the project's environments.
The returned flag resource includes the flag's metadata and variations, plus each environment's enabled state, default and off variation keys, and ordered targeting rules. This endpoint only reads the flag and does not change its definition or targeting configuration.
Authentication
AuthorizationbearerrequiredServer API key (srv_). See Authentication.
Path Parameters
projectIdstringrequiredProject ID
flagKeystringrequiredFlag key