flags
POST
https://lucidace.com /v1/projects/{project_id}/flag-blocklist Scope adminParameters
project_idstringpathrequiredRequest body
application/json
kindstringrequiredhost or cidr.notestringvaluestringrequiredapp.example.com, *.example.com, 203.0.113.0/24 or a single address.{
"kind": "string",
"note": "string",
"value": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/flag-blocklist" \
-H "Content-Type: application/json" \
-d '{"kind":"string","note":"string","value":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201
Example
{
"created_at": "2024-01-01T00:00:00Z",
"id": "string",
"kind": "string",
"note": "string",
"value": "string"
}Schema
created_atstringrequiredidstringrequiredkindstringrequiredhost (exact, or *.example.com) or cidr.notestringrequiredvaluestringrequired400
403
404
409
DELETE
https://lucidace.com /v1/projects/{project_id}/flag-blocklist/{id} Scope adminParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/flag-blocklist/{id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
403
404
GET
https://lucidace.com /v1/projects/{project_id}/flag-coverage Scope flag:readParameters
project_idstringpathrequireddaysintegerqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/flag-coverage"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"days": 0,
"flags": [
{
"flag": "string",
"series": [
{
"calls": 0,
"day": "string",
"value": "string"
}
],
"total_calls": 0
}
]
}Schema
daysintegerrequiredflagsCoverageFlag[]requiredThe most called flags first, at most 20.
Show child parameters
flagstringrequiredseriesCoveragePoint[]requiredShow child parameters
callsintegerrequireddaystringrequiredYYYY-MM-DDvaluestringrequiredServed value (
true, false, a variant key).total_callsintegerrequired400
404
503
GET
https://lucidace.com /v1/projects/{project_id}/flag-definitions Scope flag:readWhat the gateway serves for an environment (`{"flags": [flageval.Flag]}`).
Parameters
project_idstringpathrequiredenvironmentstringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/flag-definitions"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
{flags: [flageval.Flag]} as served by the gateway404
GET
https://lucidace.com /v1/projects/{project_id}/flag-health Scope flag:readEvery current state of the project (badges on the flags list).
Parameters
project_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/flag-health"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
[
{
"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"
}
]Schema
dismissed_atstringenvironmentstringrequired'' = the base state / every environment.
flag_idstringNull = the whole environment.
hook_idstringidstringrequiredlinksstring[]requiredreasonstringrequiredstatusstringrequiredhealthy | unhealthyupdated_atstringrequired404
GET
https://lucidace.com /v1/projects/{project_id}/flag-health-hooks Scope flag:readParameters
project_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/flag-health-hooks"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
[
{
"created_at": "2024-01-01T00:00:00Z",
"created_by": "string",
"format": "string",
"id": "string",
"last_received_at": "2024-01-01T00:00:00Z",
"name": "string",
"received_count": 0,
"revoked_at": "2024-01-01T00:00:00Z",
"signed": true,
"trigger_id": "string"
}
]Schema
created_atstringrequiredcreated_bystringformatstringrequiredgeneric | alertmanager | watchtoweridstringrequiredlast_received_atstringnamestringrequiredreceived_countintegerrequiredrevoked_atstringsignedbooleanrequiredWhether calls must carry a signature.
trigger_idstringFlag trigger fired when a report is unhealthy.
404
POST
https://lucidace.com /v1/projects/{project_id}/flag-health-hooks Scope adminParameters
project_idstringpathrequiredRequest body
application/json
formatstringrequiredgeneric | alertmanager | watchtowernamestringrequiredsignedbooleanRequire a signature on every call (always on for watchtower).
trigger_idstringA flag trigger of this project fired when a report turns unhealthy.
{
"format": "string",
"name": "string",
"signed": true,
"trigger_id": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/flag-health-hooks" \
-H "Content-Type: application/json" \
-d '{"format":"string","name":"string","signed":true,"trigger_id":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201
Example
{
"hook": {
"created_at": "2024-01-01T00:00:00Z",
"created_by": "string",
"format": "string",
"id": "string",
"last_received_at": "2024-01-01T00:00:00Z",
"name": "string",
"received_count": 0,
"revoked_at": "2024-01-01T00:00:00Z",
"signed": true,
"trigger_id": "string"
},
"secret": "string",
"url": "string"
}Schema
hookobjectrequiredShow child parameters
created_atstringrequiredcreated_bystringformatstringrequiredgeneric | alertmanager | watchtoweridstringrequiredlast_received_atstringnamestringrequiredreceived_countintegerrequiredrevoked_atstringsignedbooleanrequiredWhether calls must carry a signature.
trigger_idstringFlag trigger fired when a report is unhealthy.
secretstringHMAC-SHA256 key for
Lucida-Signature / X-Watchtower-Signature, when signed.urlstringrequiredPOST reports here.
400
403
404
GET
https://lucidace.com /v1/projects/{project_id}/flag-notifications Scope flag:readParameters
project_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/flag-notifications"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"data": [
{
"channels": [
{}
],
"created_at": "2024-01-01T00:00:00Z",
"enabled": true,
"flag_keys": [
"string"
],
"id": "string",
"name": "string",
"project_id": "string"
}
],
"next_cursor": "string"
}Schema
dataobject[]requiredShow child parameters
channelsobject[]requiredShared notify channels (
email / slack; Slack URLs sealed).created_atstringrequiredenabledbooleanrequiredflag_keysstring[]requiredFlag keys the rule watches; empty = every flag.
idstringrequirednamestringrequiredproject_idstringrequirednext_cursorstring404
POST
https://lucidace.com /v1/projects/{project_id}/flag-notifications Scope adminParameters
project_idstringpathrequiredRequest body
application/json
channelsobject[]required[{type: "email", to}, {type: "slack", url}]; Slack URLs are stored sealed and never returned.flag_keysstring[]Flag keys to watch; empty = every flag.
namestringrequired{
"channels": [
{}
],
"flag_keys": [
"string"
],
"name": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/flag-notifications" \
-H "Content-Type: application/json" \
-d '{"channels":[{}],"flag_keys":["string"],"name":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201
Example
{
"channels": [
{}
],
"created_at": "2024-01-01T00:00:00Z",
"enabled": true,
"flag_keys": [
"string"
],
"id": "string",
"name": "string",
"project_id": "string"
}Schema
channelsobject[]requiredShared notify channels (
email / slack; Slack URLs sealed).created_atstringrequiredenabledbooleanrequiredflag_keysstring[]requiredFlag keys the rule watches; empty = every flag.
idstringrequirednamestringrequiredproject_idstringrequired400
403
404
DELETE
https://lucidace.com /v1/projects/{project_id}/flag-notifications/{id} Scope adminParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/flag-notifications/{id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
403
404
Updated