---
title: "POST /evaluation"
method: POST
path: "/evaluation"
tags: ["evaluation"]
---

# POST /evaluation

`POST /evaluation`

## Request body

- EvalContext
  - `entityID` string — entityID is used to deterministically at random to evaluate the flag result. If it's empty, flagr will randomly generate one.
  - `entityType` string
  - `entityContext` object
  - `enableDebug` boolean
  - `flagID` integer — flagID
  - `flagKey` string — flagKey. flagID or flagKey will resolve to the same flag. Either works.

## Response `200`

evaluation result

- EvalResult
  - `flagID` integer
  - `flagKey` string
  - `flagSnapshotID` integer
  - `segmentID` integer
  - `variantID` integer
  - `variantKey` string
  - `variantAttachment` object
  - `evalContext` EvalContext
    - `entityID` string — entityID is used to deterministically at random to evaluate the flag result. If it's empty, flagr will randomly generate one.
    - `entityType` string
    - `entityContext` object
    - `enableDebug` boolean
    - `flagID` integer — flagID
    - `flagKey` string — flagKey. flagID or flagKey will resolve to the same flag. Either works.
  - `timestamp` string
  - `evalDebugLog` EvalDebugLog
    - `segmentDebugLogs` SegmentDebugLog[]
      - `segmentID` integer
      - `msg` string
    - `msg` string

## Other responses

- `default` — generic error response

---

[API](https://skmtc.dev/checkr/apis/flagr.md) · [All operations](https://skmtc.dev/checkr/apis/flagr/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/checkr/flagr/revisions/67717c0f1f1a/schema)
