v1alpha1

Evaluate member features

Changed on

Returns which variant of each app-visible feature the signed-in member gets, before a conversation exists. For example, whether to show the assistant entry point. The shape is bulk evaluation in the OpenFeature Remote Evaluation Protocol (OFREP 0.4.0), so a standard OFREP provider can point at this API.

Each flag has key, value, variant, reason and metadata. reason is STATIC (no rule applied, the default), TARGETING_MATCH (a rule chose the variant) or SPLIT (a percentage split chose it). Staff are marked with {"context": {"staff": true}} in the body; everything else in the context is ignored. The response is not cached (Cache-Control: private, no-store).

Answers 401 when signed out. Answers 503 when features cannot be read, which an OFREP provider takes as a cue to use the defaults in your code.

Error bodies are described in the error contract.

post/api/v1alpha1/assistant/trademe/ofrep/v1/evaluate/flags

Request

Headers

authorizationstring nullable

Request body

contextobject

Response

Successful Response

Changes