dashboards
GET
https://lucidace.com /v1/projects/{project_id}/dashboards/{id} Scope dashboard:readParameters
project_idstringpathrequiredidstringpathrequiredcanonicalstringquery1 or true: keys sorted at every levelCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/dashboards/{id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Carries an
ETag (hash of the canonical JSON, key order ignored); If-None-Match gives 304Example
{
"created_at": "2024-01-01T00:00:00Z",
"created_by": "string",
"description": "string",
"filters": {},
"folder_id": "string",
"id": "string",
"name": "string",
"pinned": true,
"project_id": "string",
"tags": [
"string"
],
"updated_at": "2024-01-01T00:00:00Z",
"tiles": [
{
"config": {},
"dashboard_id": "string",
"id": "string",
"ignore_dashboard_filters": true,
"insight_id": "string",
"kind": "string",
"layout": {},
"overrides": {},
"position": 0,
"text_body": "string"
}
]
}Schema
created_atstringrequiredcreated_bystringdescriptionstringrequiredfiltersobjectrequiredDashboard-level overrides:
{date_range?: {from, to}, filters?: PropertyGroup}.folder_idstringThe folder it sits in (see
object_acl); null = top level.idstringrequirednamestringrequiredpinnedbooleanrequiredproject_idstringrequiredtagsstring[]requiredupdated_atstringrequiredtilesTile[]requiredShow child parameters
configobjectrequiredButton (
{label, url, ...}) and widget ({widget, ...}) settings.dashboard_idstringrequiredidstringrequiredignore_dashboard_filtersbooleanrequiredThe tile ignores the dashboard's date range and filters.
insight_idstringkindstringrequiredinsight, text, button or widget.layoutobjectrequiredoverridesobjectrequiredTile-level overrides, merged over the dashboard's:
{date_range?, interval?, breakdown?, filters?, filter_test_accounts?}.positionintegerrequiredtext_bodystringHeaders
ETagstring304
404
DELETE
https://lucidace.com /v1/projects/{project_id}/dashboards/{id} Scope dashboard:writeParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/dashboards/{id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
403
404
PATCH
https://lucidace.com /v1/projects/{project_id}/dashboards/{id} Scope dashboard:writeParameters
project_idstringpathrequiredidstringpathrequiredRequest body
application/json
descriptionstringfiltersobjectnamestringpinnedbooleantagsarray{
"description": "string",
"filters": {},
"name": "string",
"pinned": true,
"tags": [
"string"
]
}Code samples
cURL
curl -X PATCH "https://lucidace.com/v1/projects/{project_id}/dashboards/{id}" \
-H "Content-Type: application/json" \
-d '{"description":"string","filters":{},"name":"string","pinned":true,"tags":["string"]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"created_at": "2024-01-01T00:00:00Z",
"created_by": "string",
"description": "string",
"filters": {},
"folder_id": "string",
"id": "string",
"name": "string",
"pinned": true,
"project_id": "string",
"tags": [
"string"
],
"updated_at": "2024-01-01T00:00:00Z"
}Schema
created_atstringrequiredcreated_bystringdescriptionstringrequiredfiltersobjectrequiredDashboard-level overrides:
{date_range?: {from, to}, filters?: PropertyGroup}.folder_idstringThe folder it sits in (see
object_acl); null = top level.idstringrequirednamestringrequiredpinnedbooleanrequiredproject_idstringrequiredtagsstring[]requiredupdated_atstringrequiredHeaders
ETagstring400
403
404
POST
https://lucidace.com /v1/projects/{project_id}/dashboards/{id}/duplicate Scope dashboard:writeParameters
project_idstringpathrequiredidstringpathrequiredRequest body
application/json
optional
duplicate_insightsbooleanCopy the insights too, so the two dashboards no longer share them (default: share).
namestringName of the copy (default: the original's plus " (copy)").
{
"duplicate_insights": true,
"name": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/dashboards/{id}/duplicate" \
-H "Content-Type: application/json" \
-d '{"duplicate_insights":true,"name":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
GET
https://lucidace.com /v1/projects/{project_id}/dashboards/{id}/explain Scope dashboard:readParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/dashboards/{id}/explain"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Your latest explanations, newest first: {data}
404
POST
https://lucidace.com /v1/projects/{project_id}/dashboards/{id}/explain Scope dashboard:readParameters
project_idstringpathrequiredidstringpathrequiredRequest body
application/json
promptstringA starter or free-form question to focus the explanation (at most 500 characters).
{
"prompt": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/dashboards/{id}/explain" \
-H "Content-Type: application/json" \
-d '{"prompt":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201
Example
{
"explanation": {
"ai": true,
"body": "string",
"created_at": "2024-01-01T00:00:00Z",
"dashboard_id": "string",
"id": "string",
"prompt": "string",
"rating": 0,
"tiles": 0
},
"failed_tiles": 0
}Schema
explanationobjectrequiredShow child parameters
aibooleanrequiredWritten by the model (
false: the plain figures digest, no LLM configured).bodystringrequiredcreated_atstringrequireddashboard_idstringrequiredidstringrequiredpromptstringThe starter or free prompt that was asked, when one was.
ratinginteger1 helpful, -1 not helpful, null not rated.tilesintegerrequiredTiles refreshed for this explanation.
failed_tilesintegerrequiredTiles whose query failed on this refresh.
400
404
GET
https://lucidace.com /v1/projects/{project_id}/dashboards/{id}/explain/starters Scope dashboard:readParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/dashboards/{id}/explain/starters"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"data": [
"string"
]
}Schema
datastring[]required404
PUT
https://lucidace.com /v1/projects/{project_id}/dashboards/{id}/explain/{explanation_id}/rating Scope dashboard:readParameters
project_idstringpathrequiredidstringpathrequiredexplanation_idstringpathrequiredRequest body
application/json
ratinginteger1 helpful, -1 not helpful, null clears the rating.{
"rating": 0
}Code samples
cURL
curl -X PUT "https://lucidace.com/v1/projects/{project_id}/dashboards/{id}/explain/{explanation_id}/rating" \
-H "Content-Type: application/json" \
-d '{"rating":0}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"ai": true,
"body": "string",
"created_at": "2024-01-01T00:00:00Z",
"dashboard_id": "string",
"id": "string",
"prompt": "string",
"rating": 0,
"tiles": 0
}Schema
aibooleanrequiredWritten by the model (
false: the plain figures digest, no LLM configured).bodystringrequiredcreated_atstringrequireddashboard_idstringrequiredidstringrequiredpromptstringThe starter or free prompt that was asked, when one was.
ratinginteger1 helpful, -1 not helpful, null not rated.tilesintegerrequiredTiles refreshed for this explanation.
400
404
Updated