experiments

Embed
Preview of the card
<a href="https://lucidace.com/docs/ref-experiments"><img src="https://lucidace.com/docs/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/da916cd3-c0fc-4b63-b971-b3c13623daf3/pages/6af814d4-70c1-4363-8381-689a51668c4d/social-card.svg?v=3e7ae33eec8b" alt="experiments" width="600" height="315"></a>
GEThttps://lucidace.com/v1/projects/{project_id}/tenant-experiments/{id}/resultsScope experiment:read

Parameters

project_idstringpathrequired
idstringpathrequired

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/tenant-experiments/{id}/results"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200
Example
{
  "experiment": {
    "created_at": "2024-01-01T00:00:00Z",
    "id": "string",
    "metric": "string",
    "name": "string",
    "status": "string",
    "stopped_at": "2024-01-01T00:00:00Z",
    "tenant_id": "string",
    "variants": [
      {}
    ]
  },
  "srm": {
    "flagged": true,
    "p_value": 0
  },
  "variants": [
    {
      "chance_to_win": 0,
      "ci_high": 0,
      "ci_low": 0,
      "conversions": 0,
      "diff": 0,
      "expected_loss": 0,
      "exposed_units": 0,
      "harm_p_value": 0,
      "is_control": true,
      "lift_ci_high": 0,
      "lift_ci_low": 0,
      "mean": 0,
      "note": "string",
      "p_adjusted": 0,
      "p_value": 0,
      "relative_lift": 0,
      "significant": true,
      "units": 0,
      "variant": "string"
    }
  ]
}
Schema
experimentobjectrequired
Show child parameters
created_atstringrequired
idstringrequired
metricstringrequired
Conversion event name.
namestringrequired
statusstringrequired
running | stopped
stopped_atstring
tenant_idstringrequired
variantsobject[]required
[{key, weight, name?}]; the first variant is the control. key is immutable; name is the display label.
srmSrmOut
Show child parameters
flaggedbooleanrequired
Exposures split differs from the weights (p < 0.001): check the assignment and exposure calls.
p_valuenumberrequired
variantsVariantResult[]required
Show child parameters
chance_to_winnumber
ci_highnumber
ci_lownumber
conversionsinteger
Proportion metrics: units that converted (mean = conversions / units before adjustment).
diffnumber
expected_lossnumber
exposed_unitsintegerrequired
Units of this arm that were exposed and analysed (the arm's share of the exposed total).
harm_p_valuenumber
Guardrails: one-sided p-value for harm.
is_controlbooleanrequired
lift_ci_highnumber
lift_ci_lownumber
Fieller interval on relative_lift (ratio metrics only; valid near a zero control).
meannumberrequired
notestring
p_adjustednumber
p_valuenumber
Raw p-value (always-valid for the sequential engine).
relative_liftnumber
significantbooleanrequired
unitsintegerrequired
variantstringrequired
404
503
PATCHhttps://lucidace.com/v1/projects/{project_id}/tenant-experiments/{id}/variants/{key}

Renames a variant's display name at any status. The `key` stays immutable, so exposures and results stay joined; the rename is audited.

Parameters

project_idstringpathrequired
idstringpathrequired
keystringpathrequired

Request body

application/json
namestringrequired
Display name, 1 to 200 characters.
{
  "name": "string"
}

Code samples

cURL
curl -X PATCH "https://lucidace.com/v1/projects/{project_id}/tenant-experiments/{id}/variants/{key}" \
  -H "Content-Type: application/json" \
  -d '{"name":"string"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200
Example
{
  "created_at": "2024-01-01T00:00:00Z",
  "id": "string",
  "metric": "string",
  "name": "string",
  "status": "string",
  "stopped_at": "2024-01-01T00:00:00Z",
  "tenant_id": "string",
  "variants": [
    {}
  ]
}
Schema
created_atstringrequired
idstringrequired
metricstringrequired
Conversion event name.
namestringrequired
statusstringrequired
running | stopped
stopped_atstring
tenant_idstringrequired
variantsobject[]required
[{key, weight, name?}]; the first variant is the control. key is immutable; name is the display label.
400
403
404
Updated