flags

Embed
Preview of the card
<a href="https://lucidace.com/docs/ref-flags"><img src="https://lucidace.com/docs/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/da916cd3-c0fc-4b63-b971-b3c13623daf3/pages/b5c3688b-7e55-4666-be20-ed9c5f8c72a6/social-card.svg?v=3e7ae33eec8b" alt="flags" width="600" height="315"></a>
POSThttps://lucidace.com/v1/projects/{project_id}/flag-blocklistScope admin

Parameters

project_idstringpathrequired

Request body

application/json
kindstringrequired
host or cidr.
notestring
valuestringrequired
app.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_atstringrequired
idstringrequired
kindstringrequired
host (exact, or *.example.com) or cidr.
notestringrequired
valuestringrequired
400
403
404
409
DELETEhttps://lucidace.com/v1/projects/{project_id}/flag-blocklist/{id}Scope admin

Parameters

project_idstringpathrequired
idstringpathrequired

Code 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
GEThttps://lucidace.com/v1/projects/{project_id}/flag-coverageScope flag:read

Parameters

project_idstringpathrequired
daysintegerquery

Code 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
daysintegerrequired
flagsCoverageFlag[]required
The most called flags first, at most 20.
Show child parameters
flagstringrequired
seriesCoveragePoint[]required
Show child parameters
callsintegerrequired
daystringrequired
YYYY-MM-DD
valuestringrequired
Served value (true, false, a variant key).
total_callsintegerrequired
400
404
503
GEThttps://lucidace.com/v1/projects/{project_id}/flag-definitionsScope flag:read

What the gateway serves for an environment (`{"flags": [flageval.Flag]}`).

Parameters

project_idstringpathrequired
environmentstringquery

Code 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 gateway
404
GEThttps://lucidace.com/v1/projects/{project_id}/flag-healthScope flag:read

Every current state of the project (badges on the flags list).

Parameters

project_idstringpathrequired

Code 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_atstring
environmentstringrequired
'' = the base state / every environment.
flag_idstring
Null = the whole environment.
hook_idstring
idstringrequired
linksstring[]required
reasonstringrequired
statusstringrequired
healthy | unhealthy
updated_atstringrequired
404
GEThttps://lucidace.com/v1/projects/{project_id}/flag-health-hooksScope flag:read

Parameters

project_idstringpathrequired

Code 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_atstringrequired
created_bystring
formatstringrequired
generic | alertmanager | watchtower
idstringrequired
last_received_atstring
namestringrequired
received_countintegerrequired
revoked_atstring
signedbooleanrequired
Whether calls must carry a signature.
trigger_idstring
Flag trigger fired when a report is unhealthy.
404
POSThttps://lucidace.com/v1/projects/{project_id}/flag-health-hooksScope admin

Parameters

project_idstringpathrequired

Request body

application/json
formatstringrequired
generic | alertmanager | watchtower
namestringrequired
signedboolean
Require a signature on every call (always on for watchtower).
trigger_idstring
A 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
hookobjectrequired
Show child parameters
created_atstringrequired
created_bystring
formatstringrequired
generic | alertmanager | watchtower
idstringrequired
last_received_atstring
namestringrequired
received_countintegerrequired
revoked_atstring
signedbooleanrequired
Whether calls must carry a signature.
trigger_idstring
Flag trigger fired when a report is unhealthy.
secretstring
HMAC-SHA256 key for Lucida-Signature / X-Watchtower-Signature, when signed.
urlstringrequired
POST reports here.
400
403
404
GEThttps://lucidace.com/v1/projects/{project_id}/flag-notificationsScope flag:read

Parameters

project_idstringpathrequired

Code 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[]required
Show child parameters
channelsobject[]required
Shared notify channels (email / slack; Slack URLs sealed).
created_atstringrequired
enabledbooleanrequired
flag_keysstring[]required
Flag keys the rule watches; empty = every flag.
idstringrequired
namestringrequired
project_idstringrequired
next_cursorstring
404
POSThttps://lucidace.com/v1/projects/{project_id}/flag-notificationsScope admin

Parameters

project_idstringpathrequired

Request 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[]required
Shared notify channels (email / slack; Slack URLs sealed).
created_atstringrequired
enabledbooleanrequired
flag_keysstring[]required
Flag keys the rule watches; empty = every flag.
idstringrequired
namestringrequired
project_idstringrequired
400
403
404
DELETEhttps://lucidace.com/v1/projects/{project_id}/flag-notifications/{id}Scope admin

Parameters

project_idstringpathrequired
idstringpathrequired

Code 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