flags
GET
https://lucidace.com /v1/projects/{project_id}/flags/{id}/guarded-rollout Scope flag:readParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/flags/{id}/guarded-rollout"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"advance_every_hours": 0,
"advanced_at": "2024-01-01T00:00:00Z",
"breach": {},
"created_at": "2024-01-01T00:00:00Z",
"current_pct": 0,
"ended_at": "2024-01-01T00:00:00Z",
"flag_id": "string",
"guardrails": [
{}
],
"id": "string",
"notice": {},
"previous": {},
"project_id": "string",
"started_at": "2024-01-01T00:00:00Z",
"status": "string",
"step_index": 0,
"steps": [
{}
]
}Schema
advance_every_hoursintegerThe guardrail job advances one step every this many hours while no guardrail is breached.
advanced_atstringrequiredWhen the current step started.
breachobjectcreated_atstringrequiredcurrent_pctnumberrequiredended_atstringflag_idstringrequiredguardrailsobject[]required[{metric: uuid, direction?: "lower_is_better" | "higher_is_better", threshold?: f64, action?: "rollback" | "notify"}]idstringrequirednoticeobjectUnacknowledged notify-only breach
{metrics, at}; advancing waits for an acknowledgement.previousobjectrequiredFlag state restored on rollback or abort:
{enabled, filters}.project_idstringrequiredstarted_atstringrequiredstatusstringrequiredactive | completed | rolled_back | abortedstep_indexintegerrequiredstepsobject[]required[10, 25, {pct: 50, audience: [filter]}, 100]: a number rolls out to everyone, an object to the audience first (its condition goes before the flag's previous conditions).404
POST
https://lucidace.com /v1/projects/{project_id}/flags/{id}/guarded-rollout Scope flag:writeParameters
project_idstringpathrequiredidstringpathrequiredforcebooleanqueryEdit serving state although a running experiment owns the flag
Request body
application/json
advance_every_hoursintegerAdvance one step every this many hours (1-720) while no guardrail is breached.
guardrailsGuardrail[]requiredShow child parameters
actionstringrollback (default) restores the flag; notify records a notice, tells the flag's subscribers and holds the rollout until someone acknowledges it.directionstringlower_is_better or higher_is_better; defaults to the metric's own direction.metricstringrequiredSaved metric id.
thresholdnumberLargest tolerated relative regression (0.02 = 2 %): a breach needs the engine's harm verdict AND a regression beyond this. 0 (default) = any significant harm.
stepsarrayPercentages or
{pct, audience: [filter]} steps; ascending for the same audience and ending at 100 for everyone. Default [10, 25, 50, 100].{
"advance_every_hours": 0,
"guardrails": [
{
"action": "string",
"direction": "string",
"metric": "string",
"threshold": 0
}
],
"steps": [
{}
]
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/flags/{id}/guarded-rollout" \
-H "Content-Type: application/json" \
-d '{"advance_every_hours":0,"guardrails":[{"action":"string","direction":"string","metric":"string","threshold":0}],"steps":[{}]}'TypeScript
Python
Go
PHP
Ruby
Java
POST
https://lucidace.com /v1/projects/{project_id}/flags/{id}/guarded-rollout/abort Scope flag:writeParameters
project_idstringpathrequiredidstringpathrequiredRequest body
application/json
optional
reasonstringWhy the rollout is aborted; stored on the restoring history row.
{
"reason": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/flags/{id}/guarded-rollout/abort" \
-H "Content-Type: application/json" \
-d '{"reason":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
POST
https://lucidace.com /v1/projects/{project_id}/flags/{id}/guarded-rollout/acknowledge Scope flag:writeParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/flags/{id}/guarded-rollout/acknowledge"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Notice acknowledged: the rollout may advance; the acknowledged metrics stay quiet
Same as 200 · GET /v1/projects/{project_id}/flags/{id}/guarded-rollout
403
404
409
POST
https://lucidace.com /v1/projects/{project_id}/flags/{id}/guarded-rollout/advance Scope flag:writeParameters
project_idstringpathrequiredidstringpathrequiredforcebooleanqueryEdit serving state although a running experiment owns the flag
Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/flags/{id}/guarded-rollout/advance"TypeScript
Python
Go
PHP
Ruby
Java
Responses
403
404
409 Not active, a guardrail notice waits for acknowledgement, or a guardrail is breached (rolled back)
GET
https://lucidace.com /v1/projects/{project_id}/flags/{id}/health Scope flag:readThe flag's health: its own states and the environment-wide ones.
Parameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/flags/{id}/health"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"states": [
{
"dismissed_at": "2024-01-01T00:00:00Z",
"environment": "string",
"flag_id": "string",
"hook_id": "string",
"id": "string",
"links": [
"string"
],
"reason": "string",
"status": "string",
"updated_at": "2024-01-01T00:00:00Z"
}
],
"unhealthy": true
}Schema
statesHealthState[]requiredThe flag's states and the environment-wide ones.
Show child parameters
dismissed_atstringenvironmentstringrequired'' = the base state / every environment.
flag_idstringNull = the whole environment.
hook_idstringidstringrequiredlinksstring[]requiredreasonstringrequiredstatusstringrequiredhealthy | unhealthyupdated_atstringrequiredunhealthybooleanrequiredTrue while an undismissed unhealthy state applies.
404
POST
https://lucidace.com /v1/projects/{project_id}/flags/{id}/health/dismiss Scope flag:writeDismiss the flag's unhealthy badge until the next status change.
Parameters
project_idstringpathrequiredidstringpathrequiredRequest body
application/json
environmentstringOnly this environment ('' = base); absent = every unhealthy state of the flag.
{
"environment": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/flags/{id}/health/dismiss" \
-H "Content-Type: application/json" \
-d '{"environment":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
{dismissed}403
404
GET
https://lucidace.com /v1/projects/{project_id}/flags/{id}/health/history Scope flag:readThe flag's health history (reports and dismissals), newest first.
Parameters
project_idstringpathrequiredidstringpathrequiredlimitintegerquerycursorstringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/flags/{id}/health/history"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"data": [
{
"actor_user_id": "string",
"at": "2024-01-01T00:00:00Z",
"environment": "string",
"flag_id": "string",
"hook_id": "string",
"id": "string",
"links": [
"string"
],
"reason": "string",
"status": "string"
}
],
"next_cursor": "string"
}Schema
dataobject[]requiredShow child parameters
actor_user_idstringatstringrequiredenvironmentstringrequiredflag_idstringhook_idstringidstringrequiredlinksstring[]requiredreasonstringrequiredstatusstringrequiredhealthy | unhealthy | dismissednext_cursorstring404
GET
https://lucidace.com /v1/projects/{project_id}/flags/{id}/history Scope flag:readParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/flags/{id}/history"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
[
{
"actor_user_id": "string",
"after": {},
"before": {},
"change_kind": "string",
"created_at": "2024-01-01T00:00:00Z",
"flag_id": "string",
"id": "string",
"reason": "string",
"version": 0
}
]Schema
actor_user_idstringafterobjectbeforeobjectchange_kindstringrequiredcreated_atstringrequiredflag_idstringrequiredidstringrequiredreasonstringWhy the change was made (rollback / kill reason), when the actor gave one.
versionintegerrequired404
Updated