experiments
POST
https://lucidace.com /v1/projects/{project_id}/experiments/{id}/goals Scope experiment:writeParameters
project_idstringpathrequiredidstringpathrequiredRequest body
application/json
namestringrequiredrolestringprimary | secondary (default secondary).selectorstringrequiredCSS selector of the clicked element (as the visual editor records it).
textstringElement text to require (exact).
urlstringPage the click must happen on (URL contains).
{
"name": "string",
"role": "string",
"selector": "string",
"text": "string",
"url": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/experiments/{id}/goals" \
-H "Content-Type: application/json" \
-d '{"name":"string","role":"string","selector":"string","text":"string","url":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Click action, proportion metric and the experiment with the metric attached
Example
{
"action_id": "string",
"experiment": {
"audience": {},
"conclusion": "string",
"created_at": "2024-01-01T00:00:00Z",
"created_by": "string",
"ended_at": "2024-01-01T00:00:00Z",
"exposure": {},
"flag_id": "string",
"flag_key": "string",
"guardrail_state": {},
"holdout_id": "string",
"hypothesis": "string",
"id": "string",
"kind": "string",
"metrics": {},
"name": "string",
"namespace_id": "string",
"project_id": "string",
"requires_approval": true,
"schedule": {},
"shipped_at": "2024-01-01T00:00:00Z",
"snapshot": {},
"started_at": "2024-01-01T00:00:00Z",
"stats_config": {},
"status": "string",
"traffic_pct": 0,
"updated_at": "2024-01-01T00:00:00Z",
"variants": {},
"winner": "string"
},
"metric_id": "string"
}Schema
action_idstringrequiredexperimentobjectrequiredShow child parameters
audienceobjectrequiredconclusionstringcreated_atstringrequiredcreated_bystringended_atstringexposureobjectrequiredflag_idstringrequiredflag_keystringKey of the flag
flag_id names; null only if that flag row is gone.guardrail_stateobjectrequiredholdout_idstringhypothesisstringrequiredidstringrequiredkindstringrequiredmetricsobjectrequired{primary: [metric id], secondary: [...], guardrail: [{metric, direction?}]}.namestringrequirednamespace_idstringproject_idstringrequiredrequires_approvalbooleanrequiredscheduleobjectrequiredshipped_atstringsnapshotobjectstarted_atstringstats_configobjectrequiredstatusstringrequiredtraffic_pctnumberrequiredupdated_atstringrequiredvariantsobjectrequiredwinnerstringmetric_idstringrequired400
403
404
409
GET
https://lucidace.com /v1/projects/{project_id}/experiments/{id}/holdback Scope experiment:readLong-term results of a shipped experiment's holdback.
Parameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/experiments/{id}/holdback"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"analysis": {
"exposure_health": {
"exposed_units": 0,
"flagged": true,
"ignored_before_start": 0,
"ignored_internal": 0,
"ignored_invalid_variant": 0,
"multi_exposed_units": 0,
"multi_exposure_rate": 0
},
"guardrail_breached": true,
"metrics": [
{
"cuped_theta": 0,
"cuped_thetas": [
0
],
"guardrail": "ok",
"id": "string",
"name": "string",
"role": "primary",
"variance_reduction": 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"
}
]
}
],
"srm": {
"chi2": 0,
"flagged": true,
"observed": [
[
null
]
],
"p_value": 0
},
"switched_units": 0
},
"holdback": {}
}Schema
analysisAnalysisShow child parameters
exposure_healthobjectrequiredMultiple-exposure health (LC-EXT-35): units exposed to several variants are excluded from the analysis, so a high rate means assignment is leaking (cookie loss, bucketing on a changing id).
Show child parameters
exposed_unitsintegerrequiredflaggedbooleanrequiredignored_before_startintegerrequiredUnits exposed before the experiment started (left out of the analysis). Filled by the API from the event store;
analyze itself leaves the three ignored_* counts at 0.ignored_internalintegerrequiredUnits of internal / test traffic left out (only when the experiment filters it).
ignored_invalid_variantintegerrequiredUnits exposed with a variant key the experiment does not define.
multi_exposed_unitsintegerrequiredmulti_exposure_ratenumberrequiredmulti_exposed / (exposed + multi_exposed).guardrail_breachedbooleanrequiredSome guardrail is breached: the caller pauses the experiment.
metricsMetricResult[]requiredShow child parameters
cuped_thetanumbercuped_thetasnumber[]requiredOne slope per covariate when CUPED used several (the first is the metric's own pre-period).
guardrailGuardrailStatusidstringrequirednamestringrequiredrolestringrequiredvariance_reductionnumbervariantsVariantResult[]requiredsrmSrmReportShow child parameters
chi2numberrequiredflaggedbooleanrequiredobservedobject[][]requiredp_valuenumberrequiredswitched_unitsintegerrequiredholdbackobjectrequired{pct, control, winner, since, ended_at}.404
409
503
POST
https://lucidace.com /v1/projects/{project_id}/experiments/{id}/holdback/end Scope experiment:writeEnd the holdback: the flag serves the winner to everyone in the ship scope.
Parameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/experiments/{id}/holdback/end"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"audience": {},
"conclusion": "string",
"created_at": "2024-01-01T00:00:00Z",
"created_by": "string",
"ended_at": "2024-01-01T00:00:00Z",
"exposure": {},
"flag_id": "string",
"flag_key": "string",
"guardrail_state": {},
"holdout_id": "string",
"hypothesis": "string",
"id": "string",
"kind": "string",
"metrics": {},
"name": "string",
"namespace_id": "string",
"project_id": "string",
"requires_approval": true,
"schedule": {},
"shipped_at": "2024-01-01T00:00:00Z",
"snapshot": {},
"started_at": "2024-01-01T00:00:00Z",
"stats_config": {},
"status": "string",
"traffic_pct": 0,
"updated_at": "2024-01-01T00:00:00Z",
"variants": {},
"winner": "string"
}Schema
audienceobjectrequiredconclusionstringcreated_atstringrequiredcreated_bystringended_atstringexposureobjectrequiredflag_idstringrequiredflag_keystringKey of the flag
flag_id names; null only if that flag row is gone.guardrail_stateobjectrequiredholdout_idstringhypothesisstringrequiredidstringrequiredkindstringrequiredmetricsobjectrequired{primary: [metric id], secondary: [...], guardrail: [{metric, direction?}]}.namestringrequirednamespace_idstringproject_idstringrequiredrequires_approvalbooleanrequiredscheduleobjectrequiredshipped_atstringsnapshotobjectstarted_atstringstats_configobjectrequiredstatusstringrequiredtraffic_pctnumberrequiredupdated_atstringrequiredvariantsobjectrequiredwinnerstring403
404
409
GET
https://lucidace.com /v1/projects/{project_id}/experiments/{id}/interactions Scope experiment:readPairs of concurrent experiments whose effects on a shared metric differ across arms. Sorted by p-value; `flagged` rows are the suspected interactions.
Parameters
project_idstringpathrequiredidstringpathrequiredlimitintegerquerycursorstringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/experiments/{id}/interactions"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"data": [
{
"df": 0,
"effects": [
{
"b_variant": "string",
"diff": 0,
"se": 0,
"units": 0
}
],
"flagged": true,
"metric_id": "string",
"metric_name": "string",
"other_experiment_id": "string",
"other_name": "string",
"p_value": 0,
"q": 0,
"shared_units": 0,
"variant": "string"
}
],
"next_cursor": "string"
}Schema
dataobject[]requiredShow child parameters
dfnumberrequiredeffectsArmEffect[]requiredThis experiment's effect inside each arm of the other experiment.
Show child parameters
b_variantstringrequireddiffnumberrequiredsenumberrequiredunitsintegerrequiredUnits exposed to both experiments in this arm of B.
flaggedbooleanrequiredBonferroni over the tests in this response.
metric_idstringrequiredmetric_namestringrequiredother_experiment_idstringrequiredother_namestringrequiredp_valuenumberrequiredqnumberrequiredCochran's Q, its degrees of freedom and p-value (equal effects across arms under H0).
shared_unitsintegerrequiredUnits exposed to both experiments.
variantstringrequiredThe treatment variant of this experiment the effects are for.
next_cursorstring400
404
503
GET
https://lucidace.com /v1/projects/{project_id}/experiments/{id}/links Scope experiment:readThe experiment's links and the project templates expanded for it.
Parameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/experiments/{id}/links"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"data": [
{
"created_at": "2024-01-01T00:00:00Z",
"created_by": "string",
"external_key": "string",
"id": "string",
"kind": "string",
"object_id": "string",
"object_type": "string",
"title": "string",
"url": "string"
}
],
"templated": [
{
"kind": "string",
"template_id": "string",
"title": "string",
"url": "string"
}
]
}Schema
dataResourceLink[]requiredShow child parameters
created_atstringrequiredcreated_bystringexternal_keystringIssue key when the link was created by filing an issue (e.g.
ENG-12).idstringrequiredkindstringrequiredjira | linear | github | gitlab | docs | otherobject_idstringrequiredobject_typestringrequiredtitlestringrequiredurlstringrequiredtemplatedTemplated[]requiredShow child parameters
kindstringrequiredtemplate_idstringrequiredtitlestringrequiredurlstringrequired404
Updated