dashboards

Embed
Preview of the card
<a href="https://lucidace.com/docs/ref-dashboards"><img src="https://lucidace.com/docs/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/da916cd3-c0fc-4b63-b971-b3c13623daf3/pages/762ede6d-1249-459e-9c7f-3150f8f9979c/social-card.svg?v=3e7ae33eec8b" alt="dashboards" width="600" height="315"></a>
GEThttps://lucidace.com/v1/projects/{project_id}/dashboards/{id}Scope dashboard:read

Parameters

project_idstringpathrequired
idstringpathrequired
canonicalstringquery
1 or true: keys sorted at every level

Code 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 304
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",
  "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_atstringrequired
created_bystring
descriptionstringrequired
filtersobjectrequired
Dashboard-level overrides: {date_range?: {from, to}, filters?: PropertyGroup}.
folder_idstring
The folder it sits in (see object_acl); null = top level.
idstringrequired
namestringrequired
pinnedbooleanrequired
project_idstringrequired
tagsstring[]required
updated_atstringrequired
tilesTile[]required
Show child parameters
configobjectrequired
Button ({label, url, ...}) and widget ({widget, ...}) settings.
dashboard_idstringrequired
idstringrequired
ignore_dashboard_filtersbooleanrequired
The tile ignores the dashboard's date range and filters.
insight_idstring
kindstringrequired
insight, text, button or widget.
layoutobjectrequired
overridesobjectrequired
Tile-level overrides, merged over the dashboard's: {date_range?, interval?, breakdown?, filters?, filter_test_accounts?}.
positionintegerrequired
text_bodystring
Headers
ETagstring
304
404
DELETEhttps://lucidace.com/v1/projects/{project_id}/dashboards/{id}Scope dashboard:write

Parameters

project_idstringpathrequired
idstringpathrequired

Code samples

cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/dashboards/{id}"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

204
403
404
PATCHhttps://lucidace.com/v1/projects/{project_id}/dashboards/{id}Scope dashboard:write

Parameters

project_idstringpathrequired
idstringpathrequired

Request body

application/json
descriptionstring
filtersobject
namestring
pinnedboolean
tagsarray
{
  "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_atstringrequired
created_bystring
descriptionstringrequired
filtersobjectrequired
Dashboard-level overrides: {date_range?: {from, to}, filters?: PropertyGroup}.
folder_idstring
The folder it sits in (see object_acl); null = top level.
idstringrequired
namestringrequired
pinnedbooleanrequired
project_idstringrequired
tagsstring[]required
updated_atstringrequired
Headers
ETagstring
400
403
404
POSThttps://lucidace.com/v1/projects/{project_id}/dashboards/{id}/duplicateScope dashboard:write

Parameters

project_idstringpathrequired
idstringpathrequired

Request body

application/json

optional

duplicate_insightsboolean
Copy the insights too, so the two dashboards no longer share them (default: share).
namestring
Name 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

Responses

400
403
404
GEThttps://lucidace.com/v1/projects/{project_id}/dashboards/{id}/explainScope dashboard:read

Parameters

project_idstringpathrequired
idstringpathrequired

Code 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
POSThttps://lucidace.com/v1/projects/{project_id}/dashboards/{id}/explainScope dashboard:read

Parameters

project_idstringpathrequired
idstringpathrequired

Request body

application/json
promptstring
A 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
explanationobjectrequired
Show child parameters
aibooleanrequired
Written by the model (false: the plain figures digest, no LLM configured).
bodystringrequired
created_atstringrequired
dashboard_idstringrequired
idstringrequired
promptstring
The starter or free prompt that was asked, when one was.
ratinginteger
1 helpful, -1 not helpful, null not rated.
tilesintegerrequired
Tiles refreshed for this explanation.
failed_tilesintegerrequired
Tiles whose query failed on this refresh.
400
404
GEThttps://lucidace.com/v1/projects/{project_id}/dashboards/{id}/explain/startersScope dashboard:read

Parameters

project_idstringpathrequired
idstringpathrequired

Code 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[]required
404
PUThttps://lucidace.com/v1/projects/{project_id}/dashboards/{id}/explain/{explanation_id}/ratingScope dashboard:read

Parameters

project_idstringpathrequired
idstringpathrequired
explanation_idstringpathrequired

Request body

application/json
ratinginteger
1 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
aibooleanrequired
Written by the model (false: the plain figures digest, no LLM configured).
bodystringrequired
created_atstringrequired
dashboard_idstringrequired
idstringrequired
promptstring
The starter or free prompt that was asked, when one was.
ratinginteger
1 helpful, -1 not helpful, null not rated.
tilesintegerrequired
Tiles refreshed for this explanation.
400
404

Updated