OFREP bulk flag evaluation contract
OFREP bulk evaluation request. The endpoint is called by the client providers to evaluate all flags at once.
Authorization
bearerAuth read:feature_flagsA JWT verified by the proxy in front of this API, or a Kaiten access token (ksh_...) — send either as Authorization: Bearer <token>. The scopes listed on each operation are the ones the token must carry; write:<module> implies read:<module>, and read:* / write:* are wildcards over every module. x-kaiten-scopes lists every scope such a token can carry, including those enforced by a service in front of this API rather than by one of its operations.
In: header
Scope: read:feature_flags
Header Parameters
The request will be processed only if ETag doesn't match any of the values listed.
Request Body
application/json
EvaluateVariant multiple flags in one request
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://app.kaiten.sh/api/ofrep/v1/evaluate/flags" \ -H "Content-Type: application/json" \ -d '{}'{
"flags": [
{
"key": "string",
"metadata": {
"property1": null,
"property2": null
},
"reason": "STATIC",
"value": null,
"variant": "string"
}
]
}{
"errorCode": "string",
"errorDetails": "string"
}{
"errorCode": "string",
"errorDetails": "string"
}