List logic scripts
List all logic scripts. Logic scripts are global assets; use status and category filters for management views.
query Parameters
statusStatus of resource
idCategoryOptional category ID to filter by
List logic scripts › Responses
List of logic scripts
idLogicScriptID of the logic script.
logicScriptNameLogic script display name.
statusidCategoryID of the parent category.
categoryNameName of the parent category.
codeHashServer-managed SHA-256 hash of code when returned by the backend.
Find logic script by ID
Retrieve a logic script by its id.
query Parameters
idLogicScriptThe ID of the logic script to query.
Find logic script by ID › Responses
The requested logic script
idLogicScriptID of the logic script.
logicScriptNameLogic script display name. The backend trims and validates non-empty names.
codeLogic script code. Maximum size is 10 KB.
codeHashServer-managed SHA-256 hash of code. Omit on create/update/duplicate bodyUpdates.
statusLifecycle status. Defaults to active when omitted on write.
ownerServer-managed owner. Omit on writes.
idCategoryCategory ID. Empty if uncategorized.
descriptionOptional user-facing description.
Reserved for the FunnelFlux user interface (UI state and edit version/conflict tracking). For internal UI use only; do not store your own data here via the API, as the UI may overwrite it.
Find logic scripts by ID list
Retrieve all logic scripts with the specified ids.
query Parameters
idLogicScriptsComma-separated list of logic script IDs to retrieve.
Find logic scripts by ID list › Responses
The requested logic scripts
idLogicScriptID of the logic script.
logicScriptNameLogic script display name. The backend trims and validates non-empty names.
codeLogic script code. Maximum size is 10 KB.
codeHashServer-managed SHA-256 hash of code. Omit on create/update/duplicate bodyUpdates.
statusLifecycle status. Defaults to active when omitted on write.
ownerServer-managed owner. Omit on writes.
idCategoryCategory ID. Empty if uncategorized.
descriptionOptional user-facing description.
Reserved for the FunnelFlux user interface (UI state and edit version/conflict tracking). For internal UI use only; do not store your own data here via the API, as the UI may overwrite it.
Find logic scripts by name
Retrieve all logic scripts with the specified name.
query Parameters
logicScriptNameThe logic script name to query.
Find logic scripts by name › Responses
The requested logic scripts
idLogicScriptID of the logic script.
logicScriptNameLogic script display name. The backend trims and validates non-empty names.
codeLogic script code. Maximum size is 10 KB.
codeHashServer-managed SHA-256 hash of code. Omit on create/update/duplicate bodyUpdates.
statusLifecycle status. Defaults to active when omitted on write.
ownerServer-managed owner. Omit on writes.
idCategoryCategory ID. Empty if uncategorized.
descriptionOptional user-facing description.
Reserved for the FunnelFlux user interface (UI state and edit version/conflict tracking). For internal UI use only; do not store your own data here via the API, as the UI may overwrite it.
Find logic scripts by status
Retrieve all logic scripts with the specified status. Returns slim projection (same as list endpoint). Use find/byId for full objects.
query Parameters
statusStatus of resource
Find logic scripts by status › Responses
The requested logic scripts
idLogicScriptID of the logic script.
logicScriptNameLogic script display name.
statusidCategoryID of the parent category.
categoryNameName of the parent category.
codeHashServer-managed SHA-256 hash of code when returned by the backend.
Find logic scripts by category
Retrieve all logic scripts under the specified category.
query Parameters
idCategoryParent category of resource
Find logic scripts by category › Responses
The requested logic scripts
idLogicScriptID of the logic script.
logicScriptNameLogic script display name. The backend trims and validates non-empty names.
codeLogic script code. Maximum size is 10 KB.
codeHashServer-managed SHA-256 hash of code. Omit on create/update/duplicate bodyUpdates.
statusLifecycle status. Defaults to active when omitted on write.
ownerServer-managed owner. Omit on writes.
idCategoryCategory ID. Empty if uncategorized.
descriptionOptional user-facing description.
Reserved for the FunnelFlux user interface (UI state and edit version/conflict tracking). For internal UI use only; do not store your own data here via the API, as the UI may overwrite it.
Update a logic script
Update an existing logic script. The id cannot be changed. codeHash and owner are server-managed and must be omitted on writes.
Update a logic script › Request Body
idLogicScriptID of the logic script.
logicScriptNameLogic script display name. The backend trims and validates non-empty names.
codeLogic script code. Maximum size is 10 KB.
codeHashServer-managed SHA-256 hash of code. Omit on create/update/duplicate bodyUpdates.
statusLifecycle status. Defaults to active when omitted on write.
ownerServer-managed owner. Omit on writes.
idCategoryCategory ID. Empty if uncategorized.
descriptionOptional user-facing description.
Reserved for the FunnelFlux user interface (UI state and edit version/conflict tracking). For internal UI use only; do not store your own data here via the API, as the UI may overwrite it.
Update a logic script › Responses
Logic script updated successfully
idLogicScriptID of the logic script.
logicScriptNameLogic script display name. The backend trims and validates non-empty names.
codeLogic script code. Maximum size is 10 KB.
codeHashServer-managed SHA-256 hash of code. Omit on create/update/duplicate bodyUpdates.
statusLifecycle status. Defaults to active when omitted on write.
ownerServer-managed owner. Omit on writes.
idCategoryCategory ID. Empty if uncategorized.
descriptionOptional user-facing description.
Reserved for the FunnelFlux user interface (UI state and edit version/conflict tracking). For internal UI use only; do not store your own data here via the API, as the UI may overwrite it.
Create a logic script
Create a new logic script. logicScriptName and code are required. codeHash and owner are server-managed and must be omitted on writes. status defaults to active if omitted. Logic scripts are global assets and cannot be restricted to a funnel.
Create a logic script › Request Body
idLogicScriptID of the logic script.
logicScriptNameLogic script display name. The backend trims and validates non-empty names.
codeLogic script code. Maximum size is 10 KB.
codeHashServer-managed SHA-256 hash of code. Omit on create/update/duplicate bodyUpdates.
statusLifecycle status. Defaults to active when omitted on write.
ownerServer-managed owner. Omit on writes.
idCategoryCategory ID. Empty if uncategorized.
descriptionOptional user-facing description.
Reserved for the FunnelFlux user interface (UI state and edit version/conflict tracking). For internal UI use only; do not store your own data here via the API, as the UI may overwrite it.
Create a logic script › Responses
Logic script created successfully
idLogicScriptID of the logic script.
logicScriptNameLogic script display name. The backend trims and validates non-empty names.
codeLogic script code. Maximum size is 10 KB.
codeHashServer-managed SHA-256 hash of code. Omit on create/update/duplicate bodyUpdates.
statusLifecycle status. Defaults to active when omitted on write.
ownerServer-managed owner. Omit on writes.
idCategoryCategory ID. Empty if uncategorized.
descriptionOptional user-facing description.
Reserved for the FunnelFlux user interface (UI state and edit version/conflict tracking). For internal UI use only; do not store your own data here via the API, as the UI may overwrite it.
Duplicate a logic script
Create duplicate of an existing logic script. Only name plus optional bodyUpdates.idCategory, bodyUpdates.categoryName, and bodyUpdates.description are honored; script code and codeHash are copied from the source and server-managed.
query Parameters
idLogicScriptID of the logic script to duplicate.
Duplicate a logic script › Request Body
nameName for the new logic script.
Optional metadata overrides for the duplicated logic script. Only idCategory, categoryName, and description are honored; all other fields are ignored by the backend.
Duplicate a logic script › Responses
The newly created logic script
idID of the newly created asset
Soft-delete logic scripts
Mark the specified logic scripts as deleted. The row and script payload remain stored so existing funnel references and direct find-by-id/runtime paths can still resolve them. Accepts entries in the body and/or a single idLogicScript query fallback; IDs are deduplicated and body entries are preferred for bulk deletes.
query Parameters
idLogicScriptOptional single logic script ID to mark deleted. Body entries are preferred for bulk deletes; this query fallback is accepted for simple clients.
Soft-delete logic scripts › Responses
Logic scripts marked deleted successfully
Get logic script language metadata
Return the backend-owned logic script language catalog used by builders and validation clients. This auth-api endpoint is not a Ledger gRPC RPC. LogicScript variables mirror public token formatting where possible; timezone is formatted like the public {timezone} token, for example GMT+7 or GMT-5, and utcOffsetHours is the matching whole-hour integer for time helpers. Time helpers use HHMM values plus utcOffsetHours; timeInRange supports overnight wraparound, so timeInRange(2200, 600, utcOffsetHours) means 22:00 through 06:00 in the visitor's local offset. Local non-recursive closures are allowed, for example isMobile := func() bool { return deviceType == "mobile" }.
Get logic script language metadata › Responses
Logic script language metadata
Validate logic script code
Move logic scripts to a category
Move the specified logic scripts to a category. Use idCategory="" to remove assets from a category.
Move logic scripts to a category › Request Body
entriesList of asset IDs to move
idCategoryTarget category ID (empty string to remove from category)
Move logic scripts to a category › Responses
Logic scripts moved successfully