insights
GET
https://lucidace.com /v1/projects/{project_id}/health-scores Scope insight:readParameters
project_idstringpathrequiredlimitintegerquerycursorstringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/health-scores"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Page of HealthScoreRow, newest first
Example
{
"data": [
{
"config": {},
"created_at": "2024-01-01T00:00:00Z",
"created_by": "string",
"description": "string",
"id": "string",
"name": "string",
"updated_at": "2024-01-01T00:00:00Z"
}
],
"next_cursor": "string"
}Schema
dataHealthScoreRow[]requiredShow child parameters
configobjectrequiredThe
health_score Query IR document (without kind).created_atstringrequiredcreated_bystringdescriptionstringrequiredidstringrequirednamestringrequiredupdated_atstringrequirednext_cursorstring404
POST
https://lucidace.com /v1/projects/{project_id}/health-scores Scope insight:writeParameters
project_idstringpathrequiredRequest body
application/json
configobjectrequiredThe
health_score query without kind: signals (event, weight, target), window_days, entity, healthy_at, at_risk_at, environment.descriptionstringnamestringrequired{
"config": {},
"description": "string",
"name": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/health-scores" \
-H "Content-Type: application/json" \
-d '{"config":{},"description":"string","name":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201
Example
{
"config": {},
"created_at": "2024-01-01T00:00:00Z",
"created_by": "string",
"description": "string",
"id": "string",
"name": "string",
"updated_at": "2024-01-01T00:00:00Z"
}Schema
configobjectrequiredThe
health_score Query IR document (without kind).created_atstringrequiredcreated_bystringdescriptionstringrequiredidstringrequirednamestringrequiredupdated_atstringrequired400
403
404
409
GET
https://lucidace.com /v1/projects/{project_id}/health-scores/{id} Scope insight:readParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/health-scores/{id}"TypeScript
Python
Go
PHP
Ruby
Java
PUT
https://lucidace.com /v1/projects/{project_id}/health-scores/{id} Scope insight:writeParameters
project_idstringpathrequiredidstringpathrequiredRequest body
application/json
configobjectrequiredThe
health_score query without kind: signals (event, weight, target), window_days, entity, healthy_at, at_risk_at, environment.descriptionstringnamestringrequired{
"config": {},
"description": "string",
"name": "string"
}Code samples
cURL
curl -X PUT "https://lucidace.com/v1/projects/{project_id}/health-scores/{id}" \
-H "Content-Type: application/json" \
-d '{"config":{},"description":"string","name":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
DELETE
https://lucidace.com /v1/projects/{project_id}/health-scores/{id} Scope insight:writeParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/health-scores/{id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
403
404
POST
https://lucidace.com /v1/projects/{project_id}/health-scores/{id}/run Scope insight:readParameters
project_idstringpathrequiredidstringpathrequiredRequest body
application/json
entitystringOnly this entity's row (a person's distinct id or a group key), however large the population.
partstringentities (default) or bands.refreshboolean{
"entity": "string",
"part": "string",
"refresh": true
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/health-scores/{id}/run" \
-H "Content-Type: application/json" \
-d '{"entity":"string","part":"string","refresh":true}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"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
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[][]required202
404
429
503
GET
https://lucidace.com /v1/projects/{project_id}/insight-feed Scope insight:readParameters
project_idstringpathrequiredinclude_dismissedbooleanquerylimitintegerquerycursorstringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/insight-feed"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Page of FeedItem, newest first
Example
{
"data": [
{
"body": "string",
"created_at": "2024-01-01T00:00:00Z",
"data": {},
"dedupe_key": "string",
"dismissed_at": "2024-01-01T00:00:00Z",
"id": "string",
"kind": "string",
"severity": "string",
"title": "string"
}
],
"next_cursor": "string"
}Schema
dataFeedItem[]requiredShow child parameters
bodystringrequiredcreated_atstringrequireddataobjectrequireddedupe_keystringrequireddismissed_atstringidstringrequiredkindstringrequiredseveritystringrequiredinfo | warning | criticaltitlestringrequirednext_cursorstring404
POST
https://lucidace.com /v1/projects/{project_id}/insight-feed Scope insight:writeParameters
project_idstringpathrequiredRequest body
application/json
bodystringdataobjectdedupe_keystringrequiredSame key = same card (refreshed in place).
kindstringrequiredseveritystringinfo | warning | criticaltitlestringrequired{
"body": "string",
"data": {},
"dedupe_key": "string",
"kind": "string",
"severity": "string",
"title": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/insight-feed" \
-H "Content-Type: application/json" \
-d '{"body":"string","data":{},"dedupe_key":"string","kind":"string","severity":"string","title":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201
Example
{
"body": "string",
"created_at": "2024-01-01T00:00:00Z",
"data": {},
"dedupe_key": "string",
"dismissed_at": "2024-01-01T00:00:00Z",
"id": "string",
"kind": "string",
"severity": "string",
"title": "string"
}Schema
bodystringrequiredcreated_atstringrequireddataobjectrequireddedupe_keystringrequireddismissed_atstringidstringrequiredkindstringrequiredseveritystringrequiredinfo | warning | criticaltitlestringrequired400
404
POST
https://lucidace.com /v1/projects/{project_id}/insight-feed/{id}/dismiss Scope insight:writeParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/insight-feed/{id}/dismiss"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
404
Updated