Evaluation
GETBootstrap flag config
Return flag definitions and segments for local SDK evaluation
GET
/v1/configBootstrap flag config
curl --request GET \
--url 'http://localhost:4000/v1/config' \
--header 'Authorization: Bearer <token>'200
application/json{}Bootstrap flag config
Use GET /v1/config to download every flag definition and segment for an environment before evaluating flags locally in the SDK. Specify the environment key with the environment query parameter; the response is scoped to the project associated with the caller’s client key and contains the requested environment, its flags, and its segments.
The TypeScript SDK calls this endpoint during FlagForgeClient.init() and when it refreshes its configuration. It then evaluates the returned definitions in process with the shared @flagforge/core engine, avoiding a network request for each flag check.
Authentication
AuthorizationbearerrequiredClient API key (cli_) scoped to its project. See Authentication.