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

Authorizations

Authorization
string
header
required

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

Body

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

Response

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