guides
GET
https://lucidace.com /v1/projects/{project_id}/guide-templates Scope *:readParameters
project_idstringpathrequiredlimitintegerquerycursorstringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/guide-templates"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Built-in templates first (first page only), then the project's, newest first
Example
{
"data": [
{
"body": {},
"builtin": true,
"created_at": "2024-01-01T00:00:00Z",
"description": "string",
"id": "string",
"name": "string"
}
],
"next_cursor": "string"
}Schema
dataobject[]requiredShow child parameters
bodyobjectrequiredGuide document
{name, kind, steps, targeting, appearance}.builtinbooleanrequiredcreated_atstringdescriptionstringrequiredidstringrequiredA uuid for saved templates,
builtin:<slug> for the built-in library.namestringrequirednext_cursorstring404
POST
https://lucidace.com /v1/projects/{project_id}/guide-templates Scope *:writeParameters
project_idstringpathrequiredRequest body
application/json
bodyGuideBodyShow child parameters
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).
descriptionstringfrom_guidestringCopy the content of this guide.
namestringrequired{
"body": {
"appearance": {},
"folder": "string",
"kind": "string",
"name": "string",
"steps": [
{}
],
"tags": [
"string"
],
"targeting": {}
},
"description": "string",
"from_guide": "string",
"name": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/guide-templates" \
-H "Content-Type: application/json" \
-d '{"body":{"appearance":{},"folder":"string","kind":"string","name":"string","steps":[{}],"tags":["string"],"targeting":{}},"description":"string","from_guide":"string","name":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201
Example
{
"body": {},
"builtin": true,
"created_at": "2024-01-01T00:00:00Z",
"description": "string",
"id": "string",
"name": "string"
}Schema
bodyobjectrequiredGuide document
{name, kind, steps, targeting, appearance}.builtinbooleanrequiredcreated_atstringdescriptionstringrequiredidstringrequiredA uuid for saved templates,
builtin:<slug> for the built-in library.namestringrequired400
403
404
409
DELETE
https://lucidace.com /v1/projects/{project_id}/guide-templates/{id} Scope *:writeParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/guide-templates/{id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
403
404
GET
https://lucidace.com /v1/projects/{project_id}/guide-themes Scope *:readParameters
project_idstringpathrequiredlimitintegerquerycursorstringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/guide-themes"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 By name
Example
{
"data": [
{
"created_at": "2024-01-01T00:00:00Z",
"created_by": "string",
"custom_css": "string",
"dark": {},
"font_family": "string",
"id": "string",
"is_default": true,
"name": "string",
"radius": 0,
"tokens": {},
"updated_at": "2024-01-01T00:00:00Z"
}
],
"next_cursor": "string"
}Schema
dataobject[]requiredShow child parameters
created_atstringrequiredcreated_bystringcustom_cssstringrequireddarkobjectDark variant
{tokens} (used when theme_mode is dark, or auto and the visitor prefers dark).font_familystringidstringrequiredis_defaultbooleanrequirednamestringrequiredradiusintegertokensobjectrequiredColor / shape tokens, the keys of
appearance.tokens.updated_atstringrequirednext_cursorstring404
POST
https://lucidace.com /v1/projects/{project_id}/guide-themes Scope *:writeParameters
project_idstringpathrequiredRequest body
application/json
custom_cssstringdarkobjectDark variant
{tokens}.font_familystringis_defaultbooleannamestringrequiredradiusintegerCorner radius 0-32 px (merged into
tokens.radius when the guide sets none).tokensobject{background, text, accent, secondary, secondary_text: #hex, radius, button_radius: 0-32, shadow, font}.{
"custom_css": "string",
"dark": {},
"font_family": "string",
"is_default": true,
"name": "string",
"radius": 0,
"tokens": {}
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/guide-themes" \
-H "Content-Type: application/json" \
-d '{"custom_css":"string","dark":{},"font_family":"string","is_default":true,"name":"string","radius":0,"tokens":{}}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201
Example
{
"created_at": "2024-01-01T00:00:00Z",
"created_by": "string",
"custom_css": "string",
"dark": {},
"font_family": "string",
"id": "string",
"is_default": true,
"name": "string",
"radius": 0,
"tokens": {},
"updated_at": "2024-01-01T00:00:00Z"
}Schema
created_atstringrequiredcreated_bystringcustom_cssstringrequireddarkobjectDark variant
{tokens} (used when theme_mode is dark, or auto and the visitor prefers dark).font_familystringidstringrequiredis_defaultbooleanrequirednamestringrequiredradiusintegertokensobjectrequiredColor / shape tokens, the keys of
appearance.tokens.updated_atstringrequired400
403
404
409
GET
https://lucidace.com /v1/projects/{project_id}/guide-themes/{id} Scope *:readParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/guide-themes/{id}"TypeScript
Python
Go
PHP
Ruby
Java
PUT
https://lucidace.com /v1/projects/{project_id}/guide-themes/{id} Scope *:writeParameters
project_idstringpathrequiredidstringpathrequiredRequest body
application/json
custom_cssstringdarkobjectDark variant
{tokens}.font_familystringis_defaultbooleannamestringrequiredradiusintegerCorner radius 0-32 px (merged into
tokens.radius when the guide sets none).tokensobject{background, text, accent, secondary, secondary_text: #hex, radius, button_radius: 0-32, shadow, font}.{
"custom_css": "string",
"dark": {},
"font_family": "string",
"is_default": true,
"name": "string",
"radius": 0,
"tokens": {}
}Code samples
cURL
curl -X PUT "https://lucidace.com/v1/projects/{project_id}/guide-themes/{id}" \
-H "Content-Type: application/json" \
-d '{"custom_css":"string","dark":{},"font_family":"string","is_default":true,"name":"string","radius":0,"tokens":{}}'TypeScript
Python
Go
PHP
Ruby
Java
DELETE
https://lucidace.com /v1/projects/{project_id}/guide-themes/{id} Scope *:writeParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/guide-themes/{id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
403
404
Updated