POST /v1/env/evaluate
Evaluate a single named variable and return its plaintext value. Forab_roll variables, the response includes which bucket was selected.
Request
Response
ab_roll variables:
Deterministic A/B evaluation
Passseed and key to get a stable bucket assignment for a given user or context. Barekey computes:
chance value. The same seed + key always returns the same bucket for the same variable.
Error codes
POST /v1/env/evaluate-batch
Evaluate multiple variables in a single request. More efficient than calling/v1/env/evaluate in a loop — one round trip, one billing event.
Request
Each entry in
entries:
Response
entries array. If one variable is not found, the entire request returns VARIABLE_NOT_FOUND — there is no partial success.
POST /v1/env/pull
Fetch all variables for a stage and return them as a flat{ [name]: value } map. Equivalent to barekey env pull in the CLI.
This endpoint is designed for local development tooling and scripts that need all variables at once. For production application use, prefer /v1/env/evaluate or /v1/env/evaluate-batch which scope requests to specific variables.
Request
Response
boolean, int64, and json declared types — the pull endpoint does not coerce types. The CLI and SDK handle coercion on top of this response.
ab_roll variables are evaluated using seed/key if provided, or randomly if not. There is no decision field in pull responses.
Error codes
The same codes as/v1/env/evaluate apply, plus:

