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>"
    }
  ]
}'
{
  "requestId": "<string>",
  "responses": [
    {
      "type": "VARIANT_EVALUATION_RESPONSE_TYPE",
      "booleanResponse": {
        "requestId": "<string>",
        "flagKey": "<string>",
        "enabled": true,
        "timestamp": "2023-11-07T05:31:56Z",
        "requestDurationMillis": 123,
        "reason": "UNKNOWN_EVALUATION_REASON"
      },
      "variantResponse": {
        "requestId": "<string>",
        "match": true,
        "flagKey": "<string>",
        "segmentKeys": [
          "<string>"
        ],
        "variantKey": "<string>",
        "variantAttachment": "<string>",
        "timestamp": "2023-11-07T05:31:56Z",
        "requestDurationMillis": 123,
        "reason": "UNKNOWN_EVALUATION_REASON"
      },
      "errorResponse": {
        "flagKey": "<string>",
        "namespaceKey": "<string>",
        "reason": "UNKNOWN_ERROR_EVALUATION_REASON"
      }
    }
  ],
  "requestDurationMillis": 123
}

Authorizations

Authorization
string
headerrequired

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

Body

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

Response

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