flags
GET
https://lucidace.com /v1/projects/{project_id}/flags/{id}/impact Scope flag:read insight:readParameters
project_idstringpathrequiredidstringpathrequiredmetric_idstringqueryeventstringquerydaysintegerqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/flags/{id}/impact"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"flag": "string",
"query": {},
"result": {
"columns": [
"string"
],
"meta": {
"bytes_read": 0,
"cache_hit": true,
"cache_key": "string",
"clamped_range": true,
"computed_at": "2024-01-01T00:00:00Z",
"execution_ms": 0,
"next_allowed_client_refresh": "2024-01-01T00:00:00Z",
"rows_read": 0,
"sampled": true,
"sql_hash": "string"
},
"rows": [
[
{}
]
]
}
}Schema
flagstringrequiredqueryobjectrequiredThe trends query that produced
result (open it as an insight).resultobjectrequiredRows:
series, period, bucket, bd_0 (variant), value.Show child parameters
columnsstring[]requiredmetaobjectrequiredShow child parameters
bytes_readintegerBytes
ClickHouse read, like rows_read.cache_hitbooleanrequiredcache_keystringrequiredStable hash of the cache key (project, SQL, timezone, canonical query).
clamped_rangebooleanrequiredcomputed_atstringrequiredWhen the result was computed (
last_refresh).execution_msintegerWall time of the
ClickHouse call; None on a cache hit.next_allowed_client_refreshstringrequiredBefore this,
refresh: "force_*" recomputes but the dashboards' auto refresh serves the cache.rows_readintegerRows
ClickHouse read (its X-ClickHouse-Summary header); None when not reported.sampledbooleanrequiredsql_hashstringrequiredrowsobject[][]required400
404
POST
https://lucidace.com /v1/projects/{project_id}/flags/{id}/kill Scope flag:writeOne-click off: sets `kill_switch` in the base filters and every environment override, bypassing approvals (emergency path; the change is still versioned, audited and pushed as `flag.killed`).
Parameters
project_idstringpathrequiredidstringpathrequiredRequest body
application/json
activebooleanreasonstringWhy (rollback / incident reason); stored on the history row and the audit entry.
{
"active": true,
"reason": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/flags/{id}/kill" \
-H "Content-Type: application/json" \
-d '{"active":true,"reason":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"created_at": "2024-01-01T00:00:00Z",
"created_by": "string",
"description": "string",
"enabled": true,
"environment_state": {},
"expires_at": "2024-01-01T00:00:00Z",
"filters": {},
"holdout_id": "string",
"id": "string",
"key": "string",
"kind": "string",
"lifecycle": "string",
"name": "string",
"namespace_id": "string",
"owner_user_id": "string",
"payloads": {},
"protected_envs": [
"string"
],
"stickiness": "string",
"tags": [
"string"
],
"updated_at": "2024-01-01T00:00:00Z",
"variants": {},
"version": 0
}Schema
created_atstringrequiredcreated_bystringdescriptionstringrequiredenabledbooleanrequiredenvironment_stateobjectrequiredexpires_atstringfiltersobjectrequiredholdout_idstringidstringrequiredkeystringrequiredkindstringrequiredlifecyclestringrequireddraft | active | launched | deprecated (advisory; stale detection surfaces the last two).namestringrequirednamespace_idstringowner_user_idstringpayloadsobjectrequiredprotected_envsstring[]requiredstickinessstringrequiredtagsstring[]requiredupdated_atstringrequiredvariantsobjectrequiredversionintegerrequired403
404
GET
https://lucidace.com /v1/projects/{project_id}/flags/{id}/links Scope flag:readThe flag's links and the project templates expanded for it.
Parameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/flags/{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
POST
https://lucidace.com /v1/projects/{project_id}/flags/{id}/links Scope flag:writeAttach a link (the experiment route `POST .../experiments/{id}/links` takes the same body).
Parameters
project_idstringpathrequiredidstringpathrequiredRequest body
application/json
kindstringrequiredjira | linear | github | gitlab | docs | othertitlestringrequiredurlstringrequiredAn http(s) URL.
{
"kind": "string",
"title": "string",
"url": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/flags/{id}/links" \
-H "Content-Type: application/json" \
-d '{"kind":"string","title":"string","url":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201
Example
{
"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"
}Schema
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_typestringrequiredtitlestringrequiredurlstringrequired400
403
404
POST
https://lucidace.com /v1/projects/{project_id}/flags/{id}/links/issue Scope flag:writeFile an issue through a project tracker and link it (same for `.../experiments/{id}/links/issue`).
Parameters
project_idstringpathrequiredidstringpathrequiredRequest body
application/json
bodystringconnection_idstringrequiredA project issue tracker connection (Settings, Issue trackers).
titlestringrequired{
"body": "string",
"connection_id": "string",
"title": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/flags/{id}/links/issue" \
-H "Content-Type: application/json" \
-d '{"body":"string","connection_id":"string","title":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
PUT
https://lucidace.com /v1/projects/{project_id}/flags/{id}/purpose Scope flag:writeSet or clear one flag's purpose.
Parameters
project_idstringpathrequiredidstringpathrequiredRequest body
application/json
purposestringOne of the purposes, or null to clear.
{
"purpose": "string"
}Code samples
cURL
curl -X PUT "https://lucidace.com/v1/projects/{project_id}/flags/{id}/purpose" \
-H "Content-Type: application/json" \
-d '{"purpose":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
{purpose}400
403
404
GET
https://lucidace.com /v1/projects/{project_id}/flags/{id}/release Scope flag:readParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/flags/{id}/release"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"awaiting_cr": "string",
"baseline": {},
"created_at": "2024-01-01T00:00:00Z",
"current_phase": 0,
"flag_id": "string",
"id": "string",
"paused_reason": "string",
"phase_applied_at": "2024-01-01T00:00:00Z",
"phases": [
{}
],
"pipeline_id": "string",
"project_id": "string",
"started_by": "string",
"status": "string",
"updated_at": "2024-01-01T00:00:00Z"
}Schema
awaiting_crstringChange request the next phase waits on.
baselineobjectrequired{env: {enabled, filters}} at start: what a rollback restores.created_atstringrequiredcurrent_phaseintegerrequiredIndex of the last applied phase (-1 = none yet).
flag_idstringrequiredidstringrequiredpaused_reasonstringWhy the automation paused (guardrail breach or a person).
phase_applied_atstringWhen the current phase went live (the automation's hold counts from here).
phasesobject[]requiredCopy of the pipeline's phases taken at start.
pipeline_idstringproject_idstringrequiredstarted_bystringstatusstringrequiredactive | paused | completed | aborted | rolled_backupdated_atstringrequired404 the flag never had a release
POST
https://lucidace.com /v1/projects/{project_id}/flags/{id}/release Scope flag:writeParameters
project_idstringpathrequiredidstringpathrequiredRequest body
application/json
pipeline_idstringrequired{
"pipeline_id": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/flags/{id}/release" \
-H "Content-Type: application/json" \
-d '{"pipeline_id":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Updated