Evaluate member features
Changed onReturns 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.
Request
- Base URLhttps://api.trademeai.co.nz (the document declares no server; this is the origin it was published from)
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Request body
Response
Successful Response
Changes
- warning
deleted the
headerrequest parameterif-none-match - warning
deleted the
headerrequest parameteris-in-staff-group - info
removed the non-success response with the status
- warning
- info
endpoint added
- info