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}/guidesScope *:read

Parameters

project_idstringpathrequired
statusstringquery
qstringquery
folderstringquery
tagstringquery
limitintegerquery
cursorstringquery

Code 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[]required
Show child parameters
appearanceobjectrequired
created_atstringrequired
created_bystring
folderstring
Folder the guide is filed in (N-DAP-4).
idstringrequired
kindstringrequired
tooltip | modal | banner | tour | checklist | resource_center | announcement
namestringrequired
published_atstring
When the guide first went live.
statusstringrequired
draft | live | paused | archived
stepsobject[]required
Ordered steps {id, title?, body?, selector?, placement?, buttons?}.
tagsstring[]required
targetingobjectrequired
Same keys as survey targeting (url, flag_key, sample_pct, wait_days, ...).
updated_atstringrequired
versionintegerrequired
next_cursorstring
404
POSThttps://lucidace.com/v1/projects/{project_id}/guidesScope *:write

Parameters

project_idstringpathrequired

Request 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?}.
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).
{
  "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
appearanceobjectrequired
created_atstringrequired
created_bystring
folderstring
Folder the guide is filed in (N-DAP-4).
idstringrequired
kindstringrequired
tooltip | modal | banner | tour | checklist | resource_center | announcement
namestringrequired
published_atstring
When the guide first went live.
statusstringrequired
draft | live | paused | archived
stepsobject[]required
Ordered steps {id, title?, body?, selector?, placement?, buttons?}.
tagsstring[]required
targetingobjectrequired
Same keys as survey targeting (url, flag_key, sample_pct, wait_days, ...).
updated_atstringrequired
versionintegerrequired
400
403
404
POSThttps://lucidace.com/v1/projects/{project_id}/guides/bulkScope *:write

Parameters

project_idstringpathrequired

Request body

application/json
actionstringrequired
start | stop | archive | delete | move | tag
add_tagsstring[]
tag: tags to add and to remove.
folderstring
move: the folder (empty or absent = unfiled).
idsstring[]required
1 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[]required
Guides left alone: unknown ids, or a lifecycle step that is not allowed from their status.
Show child parameters
idstringrequired
reasonstringrequired
updatedstring[]required
400
403
404
POSThttps://lucidace.com/v1/projects/{project_id}/guides/draftScope *:write

Parameters

project_idstringpathrequired

Request body

application/json
promptstring
recorded_stepsRecordedStep[]
Show child parameters
selectorstringrequired
Stable css selector of the clicked element (the recorder prefers ids and data attributes).
textstring
Visible text of the element (never field values).
urlstringrequired
Page 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
kindstringrequired
namestringrequired
sourcestringrequired
ai or template (deterministic fallback).
stepsobject[]required
targetingobjectrequired
400
403
404
GEThttps://lucidace.com/v1/projects/{project_id}/guides/facetsScope *:read

Parameters

project_idstringpathrequired

Code 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[]required
tagsstring[]required
404
GEThttps://lucidace.com/v1/projects/{project_id}/guides/{id}Scope *:read

Parameters

project_idstringpathrequired
idstringpathrequired

Code samples

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

Responses

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

Parameters

project_idstringpathrequired
idstringpathrequired

Request 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?}.
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).
{
  "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

Responses

400
403
404
DELETEhttps://lucidace.com/v1/projects/{project_id}/guides/{id}Scope *:write

Parameters

project_idstringpathrequired
idstringpathrequired

Code samples

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

Responses

204
403
404
POSThttps://lucidace.com/v1/projects/{project_id}/guides/{id}/archiveScope *:write

Parameters

project_idstringpathrequired
idstringpathrequired

Code samples

cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/guides/{id}/archive"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

404
409

Updated