palbaseDocs

Palbase Flags · API

GET/flags/experiments/{experiment_id}/results

Read an experiment's results

What each variant's people did, counted by analytics where their events are: the exposures their apps reported ($flag_exposure), the people exposed (each user, or installation of someone signed in as no one, once — counted for the variant they saw first), and those of them who did the goal event within window_days (7 unless said) after their first exposure; the conversion rate; and each variant's chance to convert best. leader is the likeliest best, confident whether declaring it the winner is sound. Analytics not answering is a 503: retrying is safe.

Called by your server, with the project's secret key.

Path

experiment_idstring (uuid) · requiredThe experiment's id.

Query

window_daysinteger · optionalThe days after a person's first exposure the goal event counts within (7 unless said).
curl
curl -X GET "https://<your-ref>.palbase.studio/flags/experiments/<experiment_id>/results" \
  -H "apikey: $PALBASE_SECRET_KEY"

Responses

200The results

400`window_days` is not 1 to 90 (`invalid_window`)

401No key, or not a key of this project, or a token that is not valid (the edge's answer)

403Not the project's secret key

404No such experiment (`experiment_not_found`)

429The project's request rate, or its flag reads for the period under its quota, are used up; Retry-After says when to try again

503The platform could not answer now; retrying is safe (Retry-After)

defaultAn error: the envelope names it (`error`) and explains it (`error_description`).

Operation GetExperimentResults of flags's contract.