Hanzo
OpenapiExperiment

Is every experiment in the caller's org, with its variants, status and…

Is every experiment in the caller's org, with its variants, status and decision, ordered by project then id.

GET /v1/experiment

Addresshttps://api.hanzo.ai/v1/experiment
MethodGET
Operationget_experiment
AuthAuthorization: Bearer $HANZO_API_KEY

Is every experiment in the caller's org, with its variants, status and decision, ordered by project then id.

Scoped to the org resolved from the validated principal — a distinct org is a distinct physical store, so no query here can reach another tenant's rows — and further narrowed to the caller's project scope when the credential carries one. A principal with NO project scope sees the org's experiments across all of its projects, which is the answer a reader most often expects to be filtered and is not.

Requires a validated principal; refuses without one rather than answering an empty list.

Request

GET /v1/experiment takes no parameters and no body — the credential is the whole request.

Response

StatusBodyMeaning
200experimentListok

200 body — 20 fields.

FieldInTypeAlwaysDescription
databodyTrial[]Data is the org's experiments, ordered by project then id.
data[].createdAtbodystringwhen it started assigning
data[].createdBybodystringthe credential that registered it
data[].decidedAtbodystringwhen the promotion took effect
data[].decidedBybodystringthe credential that promoted the winner
data[].exposureEventbodystringthe event that enrols a subject — the analysis denominator
data[].flagKeybodystringthe assignment flag this experiment drives
data[].idbodystringthe experiment's slug, unique within the project
data[].metricEventbodystringthe event that counts as a conversion — the numerator
data[].namebodystringfree text for a reader
data[].projectbodystringthe sub-scope within the org, stamped from the principal
data[].statusbodystringrunning while it assigns and measures, decided once a winner is promoted
data[].subjectKindbodystringthe unit assigned and measured: user, org, session or audience
data[].variantsbodyArm[]the arms, weighted, one of them the control
data[].variants[].controlbodybooleantrue on the baseline arm every other arm is compared to
data[].variants[].keybodystringthe arm's slug, unique within the experiment
data[].variants[].payloadbodyanyopaque JSON the arm carries, which the consumer interprets
data[].variants[].weightbodynumberits share of the rollout; the arms sum to 100
data[].winnerbodystringthe arm promoted to the whole rollout
totalbodyintegerTotal is how many rows Data holds.

Failure carries the platform error shape — see Errors.

Examples

hanzo experiments list

Experiment API · All Hanzo APIs · Interactive reference

How is this guide?

On this page