guides
GET
https://lucidace.com /v1/projects/{project_id}/guides Scope *:readParameters
project_idstringpathrequiredstatusstringqueryqstringqueryfolderstringquerytagstringquerylimitintegerquerycursorstringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/guides"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Page of Guide, newest first
Example
{
"data": [
{
"appearance": {},
"created_at": "2024-01-01T00:00:00Z",
"created_by": "string",
"folder": "string",
"id": "string",
"kind": "string",
"name": "string",
"published_at": "2024-01-01T00:00:00Z",
"status": "string",
"steps": [
{}
],
"tags": [
"string"
],
"targeting": {},
"updated_at": "2024-01-01T00:00:00Z",
"version": 0
}
],
"next_cursor": "string"
}Schema
dataGuide[]requiredShow child parameters
appearanceobjectrequiredcreated_atstringrequiredcreated_bystringfolderstringFolder the guide is filed in (N-DAP-4).
idstringrequiredkindstringrequiredtooltip | modal | banner | tour | checklist | resource_center | announcementnamestringrequiredpublished_atstringWhen the guide first went live.
statusstringrequireddraft | live | paused | archivedstepsobject[]requiredOrdered steps
{id, title?, body?, selector?, placement?, buttons?}.tagsstring[]requiredtargetingobjectrequiredSame keys as survey targeting (
url, flag_key, sample_pct, wait_days, ...).updated_atstringrequiredversionintegerrequirednext_cursorstring404
POST
https://lucidace.com /v1/projects/{project_id}/guides Scope *:writeParameters
project_idstringpathrequiredRequest body
application/json
appearanceobject{tokens?: {background, text, accent, radius}, font_family?, theme_id?: uuid, theme_mode?: auto|light|dark, dark?: {tokens}, launcher_label?, side?: left|right, custom_css?}.folderstringFolder the guide is filed in (1 to 100 characters).
kindstringrequiredtooltip | modal | banner | tour | checklist | resource_center | announcement | hotspot | beacon | badge | launcher | slideout | inline | carousel | form_validationnamestringrequiredstepsobject[]requiredOrdered steps:
{id, title?, body?, selector?, placement?, fallback_selectors?: [css] (max 5), wait_ms? (0-15000), advance?: button|click|input, auto_close_s? (1-600), confetti? (last step), native_id? (mobile anchor), automation?: {action: click|focus|fill, selector, value?}, validation? (form_validation): {selector, rules: [{type, value?, message}]}, url?, buttons?: [{label, action, url?, event?, goto?, snooze_hours?}], branch?: [{key, op: eq|neq|contains|exists|element_present|element_absent|flag_on|flag_off, value?, goto}], complete_on?: {event, props?}, i18n?: {locale: {title?, body?, buttons?}}, media?: [{type: image|video|embed, url, alt?}], module?: guides|announcements|search, guide_ids?, search_url?}.tagsarrayUp to 20 tags of 1 to 50 characters.
targetingobjectTargeting keys: url, url_match, flag_key, flag_variant (only when the flag is that variant), sample_pct, wait_days, delay_seconds, devices, cohort_ids, exclude_cohort_ids, group_filters, seen_guides, not_seen_guides, schedule, frequency, goal, holdout_pct, ab_group, ab_weight, qa_users (distinct ids who see it as a draft), pacing (asap | even: first shows spread over the schedule window).
{
"appearance": {},
"folder": "string",
"kind": "string",
"name": "string",
"steps": [
{}
],
"tags": [
"string"
],
"targeting": {}
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/guides" \
-H "Content-Type: application/json" \
-d '{"appearance":{},"folder":"string","kind":"string","name":"string","steps":[{}],"tags":["string"],"targeting":{}}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201
Example
{
"appearance": {},
"created_at": "2024-01-01T00:00:00Z",
"created_by": "string",
"folder": "string",
"id": "string",
"kind": "string",
"name": "string",
"published_at": "2024-01-01T00:00:00Z",
"status": "string",
"steps": [
{}
],
"tags": [
"string"
],
"targeting": {},
"updated_at": "2024-01-01T00:00:00Z",
"version": 0
}Schema
appearanceobjectrequiredcreated_atstringrequiredcreated_bystringfolderstringFolder the guide is filed in (N-DAP-4).
idstringrequiredkindstringrequiredtooltip | modal | banner | tour | checklist | resource_center | announcementnamestringrequiredpublished_atstringWhen the guide first went live.
statusstringrequireddraft | live | paused | archivedstepsobject[]requiredOrdered steps
{id, title?, body?, selector?, placement?, buttons?}.tagsstring[]requiredtargetingobjectrequiredSame keys as survey targeting (
url, flag_key, sample_pct, wait_days, ...).updated_atstringrequiredversionintegerrequired400
403
404
POST
https://lucidace.com /v1/projects/{project_id}/guides/bulk Scope *:writeParameters
project_idstringpathrequiredRequest body
application/json
actionstringrequiredstart | stop | archive | delete | move | tagadd_tagsstring[]tag: tags to add and to remove.folderstringmove: the folder (empty or absent = unfiled).idsstring[]required1 to 100 guide ids.
remove_tagsstring[]{
"action": "string",
"add_tags": [
"string"
],
"folder": "string",
"ids": [
"string"
],
"remove_tags": [
"string"
]
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/guides/bulk" \
-H "Content-Type: application/json" \
-d '{"action":"string","add_tags":["string"],"folder":"string","ids":["string"],"remove_tags":["string"]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"skipped": [
{
"id": "string",
"reason": "string"
}
],
"updated": [
"string"
]
}Schema
skippedGuidesOpsSkipped[]requiredGuides left alone: unknown ids, or a lifecycle step that is not allowed from their status.
Show child parameters
idstringrequiredreasonstringrequiredupdatedstring[]required400
403
404
POST
https://lucidace.com /v1/projects/{project_id}/guides/draft Scope *:writeParameters
project_idstringpathrequiredRequest body
application/json
promptstringrecorded_stepsRecordedStep[]Show child parameters
selectorstringrequiredStable css selector of the clicked element (the recorder prefers ids and data attributes).
textstringVisible text of the element (never field values).
urlstringrequiredPage the click happened on.
{
"prompt": "string",
"recorded_steps": [
{
"selector": "string",
"text": "string",
"url": "string"
}
]
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/guides/draft" \
-H "Content-Type: application/json" \
-d '{"prompt":"string","recorded_steps":[{"selector":"string","text":"string","url":"string"}]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 an unsaved draft; nothing is stored
Example
{
"kind": "string",
"name": "string",
"source": "string",
"steps": [
{}
],
"targeting": {}
}Schema
kindstringrequirednamestringrequiredsourcestringrequiredai or template (deterministic fallback).stepsobject[]requiredtargetingobjectrequired400
403
404
GET
https://lucidace.com /v1/projects/{project_id}/guides/facets Scope *:readParameters
project_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/guides/facets"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"folders": [
"string"
],
"tags": [
"string"
]
}Schema
foldersstring[]requiredtagsstring[]required404
GET
https://lucidace.com /v1/projects/{project_id}/guides/{id} Scope *:readParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/guides/{id}"TypeScript
Python
Go
PHP
Ruby
Java
PUT
https://lucidace.com /v1/projects/{project_id}/guides/{id} Scope *:writeParameters
project_idstringpathrequiredidstringpathrequiredRequest body
application/json
appearanceobject{tokens?: {background, text, accent, radius}, font_family?, theme_id?: uuid, theme_mode?: auto|light|dark, dark?: {tokens}, launcher_label?, side?: left|right, custom_css?}.folderstringFolder the guide is filed in (1 to 100 characters).
kindstringrequiredtooltip | modal | banner | tour | checklist | resource_center | announcement | hotspot | beacon | badge | launcher | slideout | inline | carousel | form_validationnamestringrequiredstepsobject[]requiredOrdered steps:
{id, title?, body?, selector?, placement?, fallback_selectors?: [css] (max 5), wait_ms? (0-15000), advance?: button|click|input, auto_close_s? (1-600), confetti? (last step), native_id? (mobile anchor), automation?: {action: click|focus|fill, selector, value?}, validation? (form_validation): {selector, rules: [{type, value?, message}]}, url?, buttons?: [{label, action, url?, event?, goto?, snooze_hours?}], branch?: [{key, op: eq|neq|contains|exists|element_present|element_absent|flag_on|flag_off, value?, goto}], complete_on?: {event, props?}, i18n?: {locale: {title?, body?, buttons?}}, media?: [{type: image|video|embed, url, alt?}], module?: guides|announcements|search, guide_ids?, search_url?}.tagsarrayUp to 20 tags of 1 to 50 characters.
targetingobjectTargeting keys: url, url_match, flag_key, flag_variant (only when the flag is that variant), sample_pct, wait_days, delay_seconds, devices, cohort_ids, exclude_cohort_ids, group_filters, seen_guides, not_seen_guides, schedule, frequency, goal, holdout_pct, ab_group, ab_weight, qa_users (distinct ids who see it as a draft), pacing (asap | even: first shows spread over the schedule window).
{
"appearance": {},
"folder": "string",
"kind": "string",
"name": "string",
"steps": [
{}
],
"tags": [
"string"
],
"targeting": {}
}Code samples
cURL
curl -X PUT "https://lucidace.com/v1/projects/{project_id}/guides/{id}" \
-H "Content-Type: application/json" \
-d '{"appearance":{},"folder":"string","kind":"string","name":"string","steps":[{}],"tags":["string"],"targeting":{}}'TypeScript
Python
Go
PHP
Ruby
Java
DELETE
https://lucidace.com /v1/projects/{project_id}/guides/{id} Scope *:writeParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/guides/{id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
403
404
POST
https://lucidace.com /v1/projects/{project_id}/guides/{id}/archive Scope *:writeParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/guides/{id}/archive"TypeScript
Python
Go
PHP
Ruby
Java
Updated