Interactive Guides
Interactive guides are step-by-step walkthroughs the widget can run on your site (highlight elements, click, navigate). Guides have steps and optional multi-language translations. Authentication required.
Guides
/api/v1/sites/{id}/guides AuthList guides for a site.
{ "success": true, "guides": [ { "id": 3, "title": "Checkout tour", "is_active": true } ] }/api/v1/sites/{id}/guides AuthCreate a guide. highlight_style: spotlight | outline.
{ "title": "Checkout tour", "description": "…", "highlight_style": "spotlight" }{ "success": true, "guide": { "id": 3 } }/api/v1/guides/{id} AuthGet a guide with its steps.
{ "success": true, "guide": { … }, "steps": [ … ] }/api/v1/guides/{id} AuthUpdate a guide (title, description, highlight_style, is_active).
{ "is_active": true }{ "success": true, "guide": { … } }/api/v1/guides/{id} AuthDelete a guide.
{ "success": true }Steps
/api/v1/guides/{id}/steps AuthAdd a step. selectors is a non-empty array of CSS selectors; step_type e.g. click; page_match_mode e.g. pathname.
{
"step_type": "click",
"page_url": "/cart",
"selectors": ["#checkout-btn"],
"title": "Click checkout",
"description": "…"
}{ "success": true, "step": { "id": 11 } }/api/v1/guide-steps/{id} AuthUpdate a step.
{ "title": "…", "selectors": ["#btn"] }{ "success": true, "step": { … } }/api/v1/guide-steps/{id} AuthDelete a step.
{ "success": true }/api/v1/guides/{id}/steps/reorder AuthReorder steps by id array.
{ "order": [11, 9, 14] }{ "success": true }/api/v1/sites/{id}/guides/training-token AuthIssue a short-lived token to record guide steps from the widget (“training mode”).
{ "success": true, "token": "…" }Translations
/api/v1/guides/{id}/translate AuthAuto-translate a guide and its steps to another language.
{ "target_lang": "de", "source_lang": "en" }{ "success": true }/api/v1/guides/{id}/translations AuthList available translations.
{ "success": true, "translations": [ … ] }/api/v1/guides/{id}/translations/{lang} AuthSave/override a translation (title, description, steps).
{ "title": "…", "description": "…", "steps": [ … ] }{ "success": true }/api/v1/guides/{id}/translations/{lang} AuthDelete a translation.
{ "success": true }