---
title: "Evaluate one flag for one user"
method: GET
path: "/api/eval"
tags: ["Evaluation"]
---

# Evaluate one flag for one user

`GET /api/eval`

## Request

- Base URL: `https://launchflag.dev`
- URL: `https://launchflag.dev/api/eval`
- Auth: HTTP bearer

## Query parameters

- `flag` string, required
- `user` string

## Response `200`

The answer for this user

- Evaluation
  - `enabled` boolean, required
  - `variant` string, nullable, required
  - `reason` string: Why the answer is what it is, such as "disabled".

## Other responses

- `401`: A JSON error with a message that says how to fix it

---

[API](https://skmtc.dev/launchflag/apis/launchflag-api.md) · [All operations](https://skmtc.dev/launchflag/apis/launchflag-api/llms.txt) · [OpenAPI document](https://skmtc.dev/launchflag/apis/launchflag-api/revisions/e1b50c6effea?raw)
