dashboards
GET
https://lucidace.com /v1/projects/{project_id}/dashboard-templates Scope dashboard:readParameters
project_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/dashboard-templates"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Built-in templates first, then the project's own (no pagination: bounded)
Example
{
"data": [
{
"builtin": true,
"description": "string",
"id": "string",
"name": "string",
"origin": "string",
"project_id": "string",
"references": [
"string"
],
"tags": [
"string"
],
"tiles": 0
}
],
"next_cursor": "string"
}Schema
dataobject[]requiredShow child parameters
builtinbooleanrequireddescriptionstringrequiredidstringrequirednamestringrequiredoriginstringrequiredbuiltin, project or org.project_idstringThe project that owns it; none for built-ins.
referencesstring[]requiredProject-specific things the definition refers to (cohorts, actions, warehouse tables).
tagsstring[]requiredtilesintegerrequirednext_cursorstring404
DELETE
https://lucidace.com /v1/projects/{project_id}/dashboard-templates/{id} Scope dashboard:writeParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/dashboard-templates/{id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
404
PATCH
https://lucidace.com /v1/projects/{project_id}/dashboard-templates/{id} Scope dashboard:writeParameters
project_idstringpathrequiredidstringpathrequiredRequest body
application/json
descriptionstringnamestringscopestringproject or org.tagsarray{
"description": "string",
"name": "string",
"scope": "string",
"tags": [
"string"
]
}Code samples
cURL
curl -X PATCH "https://lucidace.com/v1/projects/{project_id}/dashboard-templates/{id}" \
-H "Content-Type: application/json" \
-d '{"description":"string","name":"string","scope":"string","tags":["string"]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
warnings lists references that dangle once the template is org-wideExample
{
"created_at": "2024-01-01T00:00:00Z",
"definition": {},
"description": "string",
"id": "string",
"name": "string",
"project_id": "string",
"scope": "string",
"tags": [
"string"
],
"updated_at": "2024-01-01T00:00:00Z",
"warnings": [
"string"
]
}Schema
created_atstringrequireddefinitionobjectrequireddescriptionstringrequiredidstringrequirednamestringrequiredproject_idstringrequiredThe project that owns it.
scopestringrequiredproject or org.tagsstring[]requiredupdated_atstringrequiredwarningsstring[]requiredProject-specific references (cohorts, actions, metrics, warehouse tables) that other projects will not have; set when the template is org-wide or copied to another project.
400
404 not a template of this project
409 name taken
POST
https://lucidace.com /v1/projects/{project_id}/dashboard-templates/{id}/copy Scope dashboard:writeParameters
project_idstringpathrequiredidstringpathrequiredRequest body
application/json
target_project_idstringrequiredAnother project of the same org.
{
"target_project_id": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/dashboard-templates/{id}/copy" \
-H "Content-Type: application/json" \
-d '{"target_project_id":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 the copy, project-scoped, named
<name> (copy) when the name is takenSame as 200 · PATCH /v1/projects/{project_id}/dashboard-templates/{id}
403
404
POST
https://lucidace.com /v1/projects/{project_id}/dashboard-templates/{id}/instantiate Scope dashboard:writeParameters
project_idstringpathrequiredidstringpathrequiredTemplate uuid or
builtin:<key>Request body
application/json
flag_keystringbuiltin:form-response only: the experiment's flag key. The "Response rate by experiment arm" funnel then counts only exposures to this flag ($feature_flag = flag_key).namestringName of the new dashboard (defaults to the template's).
{
"flag_key": "string",
"name": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/dashboard-templates/{id}/instantiate" \
-H "Content-Type: application/json" \
-d '{"flag_key":"string","name":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 A new dashboard whose insights are new copies
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_atstringrequired400
404
GET
https://lucidace.com /v1/projects/{project_id}/dashboards Scope dashboard:readParameters
project_idstringpathrequiredlimitintegerqueryqstringqueryfolder_idstringquerya folder id, or
none for dashboards in no foldercursorstringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/dashboards"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Page of Dashboard, newest first
Example
{
"data": [
{
"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"
}
],
"next_cursor": "string"
}Schema
dataDashboard[]requiredShow child parameters
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_atstringrequirednext_cursorstring404
POST
https://lucidace.com /v1/projects/{project_id}/dashboards Scope dashboard:writeParameters
project_idstringpathrequiredRequest body
application/json
descriptionstringfiltersobjectOverrides applied to every insight tile:
{date_range?: {from, to}, filters?: PropertyGroup, variables?: [{name, kind, default}]}; tiles opt into variables via layout.variables.namestringrequiredpinnedbooleantagsstring[]{
"description": "string",
"filters": {},
"name": "string",
"pinned": true,
"tags": [
"string"
]
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/dashboards" \
-H "Content-Type: application/json" \
-d '{"description":"string","filters":{},"name":"string","pinned":true,"tags":["string"]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201
Same as 201 · POST /v1/projects/{project_id}/dashboard-templates/{id}/instantiate
Headers
ETagstring400
403
404
POST
https://lucidace.com /v1/projects/{project_id}/dashboards/bulk-delete Scope dashboard:writeParameters
project_idstringpathrequiredRequest body
application/json
delete_orphan_insightsbooleanAlso delete insights that are on no other dashboard afterwards.
idsstring[]required1 to 100 dashboards.
{
"delete_orphan_insights": true,
"ids": [
"string"
]
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/dashboards/bulk-delete" \
-H "Content-Type: application/json" \
-d '{"delete_orphan_insights":true,"ids":["string"]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"deleted": [
"string"
],
"insights_deleted": 0,
"skipped": [
"string"
]
}Schema
deletedstring[]requiredinsights_deletedintegerrequiredskippedstring[]requiredDashboards the caller may not edit (or that need approval, or are gone): left alone.
400 none or more than 100 ids
403
404
Updated