guides

Embed
Preview of the card
<a href="https://lucidace.com/docs/ref-guides"><img src="https://lucidace.com/docs/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/da916cd3-c0fc-4b63-b971-b3c13623daf3/pages/ab75c966-4170-490b-b77f-6a922f366adf/social-card.svg?v=3e7ae33eec8b" alt="guides" width="600" height="315"></a>
GEThttps://lucidace.com/v1/projects/{project_id}/guide-templatesScope *:read

Parameters

project_idstringpathrequired
limitintegerquery
cursorstringquery

Code 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[]required
Show child parameters
bodyobjectrequired
Guide document {name, kind, steps, targeting, appearance}.
builtinbooleanrequired
created_atstring
descriptionstringrequired
idstringrequired
A uuid for saved templates, builtin:<slug> for the built-in library.
namestringrequired
next_cursorstring
404
POSThttps://lucidace.com/v1/projects/{project_id}/guide-templatesScope *:write

Parameters

project_idstringpathrequired

Request body

application/json
bodyGuideBody
Show 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?}.
folderstring
Folder the guide is filed in (1 to 100 characters).
kindstringrequired
tooltip | modal | banner | tour | checklist | resource_center | announcement | hotspot | beacon | badge | launcher | slideout | inline | carousel | form_validation
namestringrequired
stepsobject[]required
Ordered 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?}.
tagsarray
Up to 20 tags of 1 to 50 characters.
targetingobject
Targeting 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).
descriptionstring
from_guidestring
Copy 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
bodyobjectrequired
Guide document {name, kind, steps, targeting, appearance}.
builtinbooleanrequired
created_atstring
descriptionstringrequired
idstringrequired
A uuid for saved templates, builtin:<slug> for the built-in library.
namestringrequired
400
403
404
409
DELETEhttps://lucidace.com/v1/projects/{project_id}/guide-templates/{id}Scope *:write

Parameters

project_idstringpathrequired
idstringpathrequired

Code 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
GEThttps://lucidace.com/v1/projects/{project_id}/guide-themesScope *:read

Parameters

project_idstringpathrequired
limitintegerquery
cursorstringquery

Code 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[]required
Show child parameters
created_atstringrequired
created_bystring
custom_cssstringrequired
darkobject
Dark variant {tokens} (used when theme_mode is dark, or auto and the visitor prefers dark).
font_familystring
idstringrequired
is_defaultbooleanrequired
namestringrequired
radiusinteger
tokensobjectrequired
Color / shape tokens, the keys of appearance.tokens.
updated_atstringrequired
next_cursorstring
404
POSThttps://lucidace.com/v1/projects/{project_id}/guide-themesScope *:write

Parameters

project_idstringpathrequired

Request body

application/json
custom_cssstring
darkobject
Dark variant {tokens}.
font_familystring
is_defaultboolean
namestringrequired
radiusinteger
Corner 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_atstringrequired
created_bystring
custom_cssstringrequired
darkobject
Dark variant {tokens} (used when theme_mode is dark, or auto and the visitor prefers dark).
font_familystring
idstringrequired
is_defaultbooleanrequired
namestringrequired
radiusinteger
tokensobjectrequired
Color / shape tokens, the keys of appearance.tokens.
updated_atstringrequired
400
403
404
409
GEThttps://lucidace.com/v1/projects/{project_id}/guide-themes/{id}Scope *:read

Parameters

project_idstringpathrequired
idstringpathrequired

Code samples

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

Responses

404
PUThttps://lucidace.com/v1/projects/{project_id}/guide-themes/{id}Scope *:write

Parameters

project_idstringpathrequired
idstringpathrequired

Request body

application/json
custom_cssstring
darkobject
Dark variant {tokens}.
font_familystring
is_defaultboolean
namestringrequired
radiusinteger
Corner 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

Responses

400
403
404
409
DELETEhttps://lucidace.com/v1/projects/{project_id}/guide-themes/{id}Scope *:write

Parameters

project_idstringpathrequired
idstringpathrequired

Code 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