POST
/
evaluate
/
v1
/
batch
curl --request POST \
  --url https://try.flipt.io/evaluate/v1/batch \
  --header 'Content-Type: application/json' \
  --header 'Accept: application/json' \
  --data '{
  "requests": [
    {
      "context": {},
      "entityId": "<entityid>",
      "flagKey": "<flagkey>",
      "namespaceKey": "<namespacekey>"
    }
  ]
}'
{
  "requestDurationMillis": 123,
  "requestId": "<string>",
  "responses": [
    {
      "booleanResponse": {
        "enabled": true,
        "flagKey": "<string>",
        "reason": "UNKNOWN_EVALUATION_REASON",
        "requestDurationMillis": 123,
        "requestId": "<string>",
        "timestamp": "2023-11-07T05:31:56Z"
      },
      "errorResponse": {
        "flagKey": "<string>",
        "namespaceKey": "<string>",
        "reason": "UNKNOWN_ERROR_EVALUATION_REASON"
      },
      "type": "VARIANT_EVALUATION_RESPONSE_TYPE",
      "variantResponse": {
        "flagKey": "<string>",
        "match": true,
        "reason": "UNKNOWN_EVALUATION_REASON",
        "requestDurationMillis": 123,
        "requestId": "<string>",
        "segmentKeys": [
          "<string>"
        ],
        "timestamp": "2023-11-07T05:31:56Z",
        "variantAttachment": "<string>",
        "variantKey": "<string>"
      }
    }
  ]
}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
reference
string
requestId
string
requests
object[]
required

Response

200 - application/json
requestDurationMillis
number
required
requestId
string
required
responses
object[]
required