customer-analytics
GET
https://lucidace.com /v1/projects/{project_id}/customer-analytics/config Scope insight:readParameters
project_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/customer-analytics/config"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"events": {},
"group_type_index": 0,
"mode": "string",
"updated_at": "2024-01-01T00:00:00Z"
}Schema
eventsobjectrequiredgroup_type_indexintegermodestringrequiredupdated_atstring404
PUT
https://lucidace.com /v1/projects/{project_id}/customer-analytics/config Scope insight:writeParameters
project_idstringpathrequiredRequest body
application/json
eventsobjectrequiredAny of
activity | signup_pageview | signup | subscription | payment, each {source: {type: "event", name} | {type: "action", id}, filters?}.group_type_indexintegerGroup type (0 to 4); required for
b2b.modestringb2c (default) or b2b.{
"events": {},
"group_type_index": 0,
"mode": "string"
}Code samples
cURL
curl -X PUT "https://lucidace.com/v1/projects/{project_id}/customer-analytics/config" \
-H "Content-Type: application/json" \
-d '{"events":{},"group_type_index":0,"mode":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
GET
https://lucidace.com /v1/projects/{project_id}/customer-analytics/dashboard Scope insight:readParameters
project_idstringpathrequireddaysintegerquerymodestringquerygroup_type_indexintegerqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/customer-analytics/dashboard"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"days": 0,
"group_type_index": 0,
"mode": "string",
"tiles": [
{
"config": {},
"dashboard_id": "string",
"id": "string",
"ignore_dashboard_filters": true,
"insight_id": "string",
"kind": "string",
"layout": {},
"overrides": {},
"position": 0,
"text_body": "string"
}
]
}Schema
daysintegerrequiredgroup_type_indexintegermodestringrequiredtilesTile[]requiredRun each tile's
query through POST /query.Show 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_bodystring400
404
GET
https://lucidace.com /v1/projects/{project_id}/customer-analytics/suggest-event Scope insight:readParameters
project_idstringpathrequiredrolestringqueryrequiredaibooleanqueryalso have the assistant pick
Code samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/customer-analytics/suggest-event?role=<role>"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"answer": "string",
"ask_path": "string",
"candidates": [
{
"name": "string",
"volume_30d": 0
}
],
"prompt": "string",
"role": "string"
}Schema
answerstringThe assistant's pick and reason, written through the organization's AI provider; only with
ai=true (a project with no provider connected gets the 409 "connect an AI provider").ask_pathstringrequiredWeb path that opens the ask agent with
prompt.candidatesCandidate[]requiredShow child parameters
namestringrequiredvolume_30dintegerrequiredpromptstringrequiredPrefilled question for the ask agent.
rolestringrequired400
404
409 ai=true and no AI provider connected
503
GET
https://lucidace.com /v1/projects/{project_id}/customer-journeys Scope insight:readParameters
project_idstringpathrequiredlimitintegerquerycursorstringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/customer-journeys"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Page of JourneyRow, newest first
Example
{
"data": [
{
"created_at": "2024-01-01T00:00:00Z",
"created_by": "string",
"description": "string",
"id": "string",
"name": "string",
"origin": "string",
"steps": [
{}
],
"updated_at": "2024-01-01T00:00:00Z",
"window_days": 0
}
],
"next_cursor": "string"
}Schema
dataJourneyRow[]requiredShow child parameters
created_atstringrequiredcreated_bystringdescriptionstringrequiredidstringrequirednamestringrequiredoriginstringrequiredtemplate | funnel | scratchstepsobject[]required[{label, source: {type, name|id}, filters?, optional}]updated_atstringrequiredwindow_daysintegerrequirednext_cursorstring404
POST
https://lucidace.com /v1/projects/{project_id}/customer-journeys Scope insight:writeParameters
project_idstringpathrequiredRequest body
application/json
descriptionstringnamestringrequiredstepsStep[]required[{label, source: {type: event|action, name|id}, filters?, optional?}], the first required.Show child parameters
filtersobjectlabelstringrequiredoptionalbooleansourceobjectrequired{type: "event", name} or {type: "action", id}.window_daysintegerConversion window in days (default 14).
{
"description": "string",
"name": "string",
"steps": [
{
"filters": {},
"label": "string",
"optional": true,
"source": {}
}
],
"window_days": 0
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/customer-journeys" \
-H "Content-Type: application/json" \
-d '{"description":"string","name":"string","steps":[{"filters":{},"label":"string","optional":true,"source":{}}],"window_days":0}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201
Example
{
"created_at": "2024-01-01T00:00:00Z",
"created_by": "string",
"description": "string",
"id": "string",
"name": "string",
"origin": "string",
"steps": [
{}
],
"updated_at": "2024-01-01T00:00:00Z",
"window_days": 0
}Schema
created_atstringrequiredcreated_bystringdescriptionstringrequiredidstringrequirednamestringrequiredoriginstringrequiredtemplate | funnel | scratchstepsobject[]required[{label, source: {type, name|id}, filters?, optional}]updated_atstringrequiredwindow_daysintegerrequired400
403
404
409
POST
https://lucidace.com /v1/projects/{project_id}/customer-journeys/from-funnel Scope insight:writeParameters
project_idstringpathrequiredRequest body
application/json
insight_idstringrequiredA saved funnel insight; its steps are copied, not linked.
namestring{
"insight_id": "string",
"name": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/customer-journeys/from-funnel" \
-H "Content-Type: application/json" \
-d '{"insight_id":"string","name":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
GET
https://lucidace.com /v1/projects/{project_id}/customer-journeys/templates Scope insight:readParameters
project_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/customer-journeys/templates"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 {data: Template[]}
404
POST
https://lucidace.com /v1/projects/{project_id}/customer-journeys/templates Scope insight:writeParameters
project_idstringpathrequiredRequest body
application/json
namestringDefaults to the template name.
templatestringrequiredsignup_conversion or free_to_paid.{
"name": "string",
"template": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/customer-journeys/templates" \
-H "Content-Type: application/json" \
-d '{"name":"string","template":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
GET
https://lucidace.com /v1/projects/{project_id}/customer-journeys/{id} Scope insight:readParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/customer-journeys/{id}"TypeScript
Python
Go
PHP
Ruby
Java
Updated