## Evaluate flag `client.flagship.apps.evaluate.get(stringappID, EvaluateGetParamsparams, RequestOptionsoptions?): EvaluateGetResponse` **get** `/accounts/{account_id}/flagship/apps/{app_id}/evaluate` Evaluates a flag against the provided context. Pass context attributes as query parameters; values are forwarded as strings. For low-latency in-Worker evaluation, prefer the Flagship binding over this endpoint. ### Parameters - `appID: string` App identifier. - `params: EvaluateGetParams` - `account_id: string` Path param: Cloudflare account ID. - `flagKey: string` Query param: The flag key to evaluate. - `targetingKey?: string` Query param: Context targeting key (per OpenFeature spec); used for percentage rollout bucketing. ### Returns - `EvaluateGetResponse` - `flagKey: string` - `reason: "TARGETING_MATCH" | "DEFAULT" | "DISABLED" | "SPLIT"` - `"TARGETING_MATCH"` - `"DEFAULT"` - `"DISABLED"` - `"SPLIT"` - `variant: string` - `value?: string | null | number | boolean | 2 more` - `string | null` - `number` - `boolean` - `Record` - `Array` ### Example ```typescript import Cloudflare from 'cloudflare'; const client = new Cloudflare({ apiToken: process.env['CLOUDFLARE_API_TOKEN'], // This is the default and can be omitted }); const evaluate = await client.flagship.apps.evaluate.get('app_id', { account_id: 'account_id', flagKey: 'flagKey', }); console.log(evaluate.flagKey); ``` #### Response ```json { "flagKey": "flagKey", "reason": "TARGETING_MATCH", "variant": "variant", "value": "string" } ```