Skip to main content

External API

Interaktiv testen: https://ki-toolbox.reflactportal.com/swagger.

GET /api/external/bot​

Get the token's own bot config (scope bot:read)

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

StatusBeschreibung
200The bot (API keys are masked)
404Bot not found

PUT /api/external/bot​

Partially update the token's own bot config (scope bot:write)

Only the fields present in the request body are updated (like a PATCH) - any allow-listed field can be omitted. Unknown fields are rejected.

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

Request-Body (application/json): name: string, customJs: string, customCss: string, customChatCss: string, customVoiceCss: string, customAvatarCss: string, customDidAvatarCss: string, botInstruction: string, summarizePrompt: string, helpUrls: string, documentationUrl: string, temperature: number, model: string, modelSource: "openai" | "vllm", reasoningEffort: "none" | "minimal" | "low" | "medium" | "high" | "xhigh", textVerbosity: "low" | "medium" | "high", isPublic: boolean, isPwProtected: boolean, botPassword: string, websearch: boolean, allowUserFileUpload: boolean, memoryEnabled: boolean, voiceAutoPlay: boolean, tagList: string[], stopWords: string[], chatMsgSourceOption: "hidden" | "visible" | "linking", wordReplacements: object[], complianceText: object, storageaccessText: object, loadingMessages: string, postMessageTargetOrigin: string, speechRecognitionMode: "locale" | "auto", enableMessageFeedback: boolean, enableInstantAccess: boolean, createEmptyThreadOnVisit: boolean, secondsToWaitForThreadDeleting: integer, deleteGuestsAfterDays: integer, supervisorEnabled: boolean, messageCopyChatActive: boolean, chatCopyActive: boolean, chatExportActive: boolean, messageDeleteChatActive: boolean, cancelBotThinkingChatActive: boolean, cancelBotThinkingVoiceActive: boolean, cancelBotThinkingAvatarActive: boolean, promptbarChatActive: boolean, promptbarAudioActive: boolean, promptbarAvatarActive: boolean, voiceInputChatActive: boolean, voiceInputVoiceActive: boolean, voiceInputAvatarActive: boolean, voiceOutputChatActive: boolean, switchToChatFromVoice: boolean, switchToChatFromAvatar: boolean, switchToVoiceFromChat: boolean, switchToVoiceFromAvatar: boolean, switchToAvatarFromChat: boolean, switchToAvatarFromVoice: boolean, activeDocSearch: boolean, activeDocSearchCount: integer, activeDocSearchMinScore: integer, activeDocSearchType: "vector" | "text" | "combined", userDocumentsEnabled: boolean, userDocumentsMaxCount: integer, userDocumentsMaxMb: integer

StatusBeschreibung
200The updated bot (API keys are masked)
404Bot not found
422Invalid or unknown fields, or no fields provided

DELETE /api/external/bot​

Delete, archive or trash the token's own bot (scope bot:write)

Default mode is "delete" (irreversible, same teardown as the internal admin delete). "archive" and "trash" instead just flag the bot (archived/thisIsTrash) - after that it no longer matches this token's own-bot lookup (same exclusion as demo/template bots), so further calls on it will 404. Not available with LogtoBearer (403 BOT_LIFECYCLE_FORBIDDEN); use an API key.

Auth: APIKeyHeader

Request-Body (application/json): mode: "delete" | "archive" | "trash"

StatusBeschreibung
200Bot deleted, archived or trashed
404Bot not found

GET /api/external/bot/blockly​

List all Blockly slots of the token's own bot (scope blockly:read or blockly:write)

Returns every slot where the bot can have Blockly logic: the global slot, enter and exit per Stage, each Fusion-View with own JavaScript and each Wenn-Dann toolkit. Slots without a stored document are included with exists=false.

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

StatusBeschreibung
200Blockly slots
403Missing blockly:read / blockly:write scope
404Bot not found

GET /api/external/bot/blockly/{uniqueId}​

Read a Blockly document of the token's own bot (scope blockly:read or blockly:write)

Valid slots without a stored document return exists=false and an empty workspace. format=json converts the stored XML losslessly in the Blockly worker; if that is not possible (e.g. unknown blocks or invalid dropdown values), 422 CONVERSION_FAILED is returned and the document can still be read as XML.

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

ParameterInPflichtTypBeschreibung
uniqueIdpath✔string
formatquery–"xml""json"
StatusBeschreibung
200Blockly document
400Invalid format
403Missing blockly:read / blockly:write scope
404Unknown slot or slot of another bot
422Stored XML cannot be converted to JSON losslessly
429Too many Blockly requests are queued or running for this bot
504Blockly worker timed out

PUT /api/external/bot/blockly/{uniqueId}​

Validate and save Blockly for the token's own bot (scope blockly:write)

Saves only valid Blockly. JSON input is normalized to the same XML storage format used by the admin editor, and the generated JavaScript is written to the owning surface (Bot customJs, Stage enterJS/exitJS, Fusion customJS, or Wenn-Dann content). Missing documents of valid slots (global, existing Stage/Fusion-View/Wenn-Dann toolkit) are created. With expectedRevision the save is an atomic compare-and-set; on mismatch 409 REVISION_CONFLICT with currentRevision is returned and nothing is saved.

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

ParameterInPflichtTypBeschreibung
uniqueIdpath✔string

Request-Body (application/json): format: "xml" | "json", content: string, expectedRevision: string

StatusBeschreibung
200Blockly item saved; response includes the stored document, new revision and validation result
400Malformed request body
403Missing blockly:write scope
404Unknown slot or slot of another bot (never returned for global_js_<botId>)
409expectedRevision does not match the stored document; nothing was saved
413Blockly content is too large or contains too many blocks
422Blockly content is syntactically accepted but invalid; nothing was saved
429Too many validation requests are queued or running
504Blockly validation timed out

GET /api/external/bot/blockly/catalog/blocks​

Search the Blockly block catalog (scope blockly:read, blockly:validate or blockly:write)

Tokenized search over type, name, tooltip, description and category path. Case-insensitive and tolerant for German spelling (ä/ae, ö/oe, ü/ue, ß/ss). Exact type matches come first. Without q all matching blocks are returned in toolbox order.

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

ParameterInPflichtTypBeschreibung
qquery–string
categoryquery–stringCategory path or prefix, e.g. "Start & Ablauf" or "Start & Ablauf > Stages".
sectionquery–"standard""expert"
includeDeprecatedquery–boolean
limitquery–integerValues above 50 are capped at 50.
uniqueIdquery–stringOptional context slot. With an ifthen_<id> slot the context specific Wenn-Dann blocks are included.
StatusBeschreibung
200Matching blocks
400Invalid query parameters
403Missing Blockly scope
404Bot or context slot not found
429Too many Blockly requests are queued or running for this bot
504Blockly worker timed out

GET /api/external/bot/blockly/catalog/categories​

Toolbox categories of the Blockly block catalog (scope blockly:read, blockly:validate or blockly:write)

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

ParameterInPflichtTypBeschreibung
uniqueIdquery–stringOptional context slot. With an ifthen_<id> slot the context specific Wenn-Dann blocks are included.
StatusBeschreibung
200Categories per toolbox section (standard toolbox incl. plugins and deprecated blocks, expert mode)
403Missing Blockly scope
404Bot or context slot not found
429Too many Blockly requests are queued or running for this bot
504Blockly worker timed out

GET /api/external/bot/blockly/catalog/specs​

Detailed block specifications incl. bot specific dropdown values (scope blockly:read, blockly:validate or blockly:write)

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

ParameterInPflichtTypBeschreibung
typesquery✔stringComma separated block types (at most 20).
uniqueIdquery–stringOptional context slot. With an ifthen_<id> slot the context specific Wenn-Dann blocks are included.
StatusBeschreibung
200Specifications of the known types
400Missing types or more than 20 types
403Missing Blockly scope
404Bot or context slot not found
429Too many Blockly requests are queued or running for this bot
504Blockly worker timed out

GET /api/external/bot/blockly/docs​

Blockly, Blockly-Expert, RAGAI and example documentation (scope blockly:read, blockly:validate or blockly:write)

Without path all pages are listed. With path the Markdown content of the page is returned in chunks (offset/maxChars); with blockType additionally only the section of that block (anchor {#TYPE}).

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

ParameterInPflichtTypBeschreibung
pathquery–string
blockTypequery–string
offsetquery–integer
maxCharsquery–integerValues above 50000 are capped.
StatusBeschreibung
200Page list (without path) or page content (with path)
400Invalid query parameters
403Missing Blockly scope
404Page or block section not found

GET /api/external/bot/blockly/guide​

Guide for Blockly authoring agents (scope blockly:read, blockly:validate or blockly:write)

Without topic the core guide (intended for the agent's system prompt) and the list of in-depth topics are returned. With topic the full content of that topic (or of core) is returned. version is a shortened SHA-256 over all guide files and changes whenever the guide changes. The content is static and identical for all bots.

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

ParameterInPflichtTypBeschreibung
topicquery–stringTopic ID from the topics list (or core).
StatusBeschreibung
200Core guide with topic list (without topic) or a single topic (with topic)
400Invalid or unknown query parameters
403Missing Blockly scope
404Unknown topic; validIds lists all valid topic IDs
503Guide is not available on this server

GET /api/external/bot/blockly/recipes​

Search reviewed Blockly recipes (scope blockly:read, blockly:validate or blockly:write)

Recipes are reviewed example workspaces for typical tasks. q is a tolerant word search (case, umlauts) over id, title, tags and summary; tag and slotKind filter exactly. Without parameters all recipes are listed.

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

ParameterInPflichtTypBeschreibung
qquery–string
tagquery–string
slotKindquery–"global""ifthen"
StatusBeschreibung
200Matching recipes, best matches first
400Invalid or unknown query parameters
403Missing Blockly scope

GET /api/external/bot/blockly/recipes/{id}​

Read a Blockly recipe incl. explanation and workspace XML (scope blockly:read, blockly:validate or blockly:write)

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

ParameterInPflichtTypBeschreibung
idpath✔string
StatusBeschreibung
200Recipe
403Missing Blockly scope
404Unknown recipe; validIds lists all recipe IDs

POST /api/external/bot/blockly/validate​

Validate Blockly XML or JSON for the token's own bot (scope blockly:validate)

Validation failures in Blockly content return HTTP 200 with valid=false. Malformed request bodies return 400, content and block limits return 413, validation overload returns 429, and validator timeouts return 504.

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

Request-Body (application/json): format: "xml" | "json", content: string, uniqueId: string

StatusBeschreibung
200Validation completed. valid=false means the Blockly content must be fixed.
400Malformed request body
403Missing blockly:validate scope
404uniqueId was provided but is neither a valid slot nor a stored Blockly item of this bot
413Blockly content is too large or contains too many blocks
429Too many validation requests are queued or running
504Blockly validation timed out

GET /api/external/bot/changelog​

Read the change history of the token's own bot (scope changelog:read)

Returns up to the last 5000 changelog entries, newest first.

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

StatusBeschreibung
200Array of changelog entries

POST /api/external/bot/duplicate​

Duplicate the token's own bot (scope bot:write)

Creates a full copy of the bot (config, documents, skills, stages, fusion views, ...) in the same project. The new bot is not accessible through this token (which stays scoped to the original bot) - use a Project API token or mint a new Bot API token for it. Not available with LogtoBearer (403 BOT_LIFECYCLE_FORBIDDEN); use an API key.

Auth: APIKeyHeader

Request-Body (application/json): name: string

StatusBeschreibung
200The newly created bot (API keys are masked)
404Bot not found

GET /api/external/bot/embedding​

List all website-crawls of the token's own bot (scope embedding:read)

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

StatusBeschreibung
200Array of website-crawls

POST /api/external/bot/embedding​

Start a new website-crawl for the token's own bot (scope embedding:write)

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

Request-Body (application/json): url: string, depth: integer, skillId: string, description: string, name: string

StatusBeschreibung
200The created (or already-running) crawl
422Invalid or missing fields

GET /api/external/bot/embedding/{scrapeId}​

Get a single website-crawl of the token's own bot (scope embedding:read)

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

ParameterInPflichtTypBeschreibung
scrapeIdpath✔string
StatusBeschreibung
200The website-crawl, including its scraped pages
404Website-crawl not found

PUT /api/external/bot/embedding/{scrapeId}​

Update a website-crawl of the token's own bot (scope embedding:write)

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

ParameterInPflichtTypBeschreibung
scrapeIdpath✔string

Request-Body (application/json): description: string, active: boolean, skillId: string, name: string

StatusBeschreibung
200The updated website-crawl
404Website-crawl not found
422Invalid or missing fields

DELETE /api/external/bot/embedding/{scrapeId}​

Delete a website-crawl of the token's own bot (scope embedding:write)

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

ParameterInPflichtTypBeschreibung
scrapeIdpath✔string
StatusBeschreibung
200Website-crawl deleted
404Website-crawl not found

GET /api/external/bot/feedback​

Read message feedback of the token's own bot (scope stats:read)

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

StatusBeschreibung
200Array of message feedback entries

GET /api/external/bot/fusion​

List all Fusion-Views of the token's own bot (scope fusion:read)

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

StatusBeschreibung
200Array of Fusion-Views

POST /api/external/bot/fusion​

Create a new Fusion-View (scope fusion:write)

For rise/storyline/captivate/lxt/knowledgeworker this only creates the metadata entry - upload the ZIP afterwards via the /upload endpoint.

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

Request-Body (application/json): type: string, title: string

StatusBeschreibung
200The newly created Fusion-View
422Invalid fields (e.g. missing type/title, or a reserved field was set)

GET /api/external/bot/fusion/{fusionId}​

Get a single Fusion-View of the token's own bot (scope fusion:read)

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

ParameterInPflichtTypBeschreibung
fusionIdpath✔string
StatusBeschreibung
200The Fusion-View
404Fusion-View not found

PUT /api/external/bot/fusion/{fusionId}​

Partially update a Fusion-View's metadata (scope fusion:write)

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

ParameterInPflichtTypBeschreibung
fusionIdpath✔string

Request-Body (application/json): object

StatusBeschreibung
200The updated Fusion-View
404Fusion-View not found
422Invalid fields (e.g. type/_id/botId was set, or no fields provided)

DELETE /api/external/bot/fusion/{fusionId}​

Delete a Fusion-View (scope fusion:write)

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

ParameterInPflichtTypBeschreibung
fusionIdpath✔string
StatusBeschreibung
200Fusion-View deleted
404Fusion-View not found

POST /api/external/bot/fusion/{fusionId}/upload​

Upload the ZIP content for a rise/storyline/captivate/lxt/knowledgeworker Fusion-View (scope fusion:write)

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

ParameterInPflichtTypBeschreibung
fusionIdpath✔string

Request-Body (multipart/form-data): file: string

StatusBeschreibung
200The updated Fusion-View file entry
404Fusion-View not found
415Upload not supported for this Fusion-View type, or unsupported mimetype

GET /api/external/bot/skills​

List all Skills (Wenn-Dann/Online-Quellen/Webhooks) of the token's own bot (scope skills:read)

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

StatusBeschreibung
200Array of skills

POST /api/external/bot/skills​

Create a new Skill (scope skills:write)

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

Request-Body (application/json): tool: "customtoolkit" | "websitesearch" | "schnittstelle" | "webhook", name: string, skillId: string, description: string, enabled: boolean, params: object[], url: string, content: string, toolCallAnswer: string[], answerMode: "sequence" | "sequenceloop" | "random", authMethod: "none" | "basic", authData: object, urlMethod: "get" | "post", contentType: "application/json" | "application/x-www-form-urlencoded" & object

StatusBeschreibung
200The newly created skill
409name (customtoolkit only) or skillId already used by another Skill of this bot
422Invalid or unknown fields

GET /api/external/bot/skills/{skillId}​

Get a single Skill of the token's own bot (scope skills:read)

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

ParameterInPflichtTypBeschreibung
skillIdpath✔string
StatusBeschreibung
200The skill
404Skill not found

PUT /api/external/bot/skills/{skillId}​

Partially update a Skill (scope skills:write)

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

ParameterInPflichtTypBeschreibung
skillIdpath✔string

Request-Body (application/json): tool: "customtoolkit" | "websitesearch" | "schnittstelle" | "webhook", name: string, skillId: string, description: string, enabled: boolean, params: object[], url: string, content: string, toolCallAnswer: string[], answerMode: "sequence" | "sequenceloop" | "random", authMethod: "none" | "basic", authData: object, urlMethod: "get" | "post", contentType: "application/json" | "application/x-www-form-urlencoded"

StatusBeschreibung
200The updated skill
404Skill not found
409name (customtoolkit only) or skillId already used by another Skill of this bot
422Invalid or unknown fields, or no fields provided

DELETE /api/external/bot/skills/{skillId}​

Delete a Skill (scope skills:write)

Also removes the rule's skillId from any Stage referencing it and deletes a matching Blockly block (ifthen_{id}), if one exists.

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

ParameterInPflichtTypBeschreibung
skillIdpath✔string
StatusBeschreibung
200Skill deleted
404Skill not found

GET /api/external/bot/stages​

List all stages of the token's own bot (scope stages:read)

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

StatusBeschreibung
200Array of stages

POST /api/external/bot/stages​

Create a new stage (scope stages:write)

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

Request-Body (application/json): title: string, name: string, hidden: boolean, footer: boolean, forceSkills: boolean, skills: string[], enterJS: string, exitJS: string, preConditionJS: string & object

StatusBeschreibung
200The newly created stage
422Invalid or unknown fields

GET /api/external/bot/stages/{stageId}​

Get a single stage of the token's own bot (scope stages:read)

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

ParameterInPflichtTypBeschreibung
stageIdpath✔string
StatusBeschreibung
200The stage
404Stage not found

PUT /api/external/bot/stages/{stageId}​

Partially update a stage (scope stages:write)

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

ParameterInPflichtTypBeschreibung
stageIdpath✔string

Request-Body (application/json): title: string, name: string, hidden: boolean, footer: boolean, forceSkills: boolean, skills: string[], enterJS: string, exitJS: string, preConditionJS: string

StatusBeschreibung
200The updated stage
404Stage not found
422Invalid or unknown fields, or no fields provided

DELETE /api/external/bot/stages/{stageId}​

Delete a stage (scope stages:write)

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

ParameterInPflichtTypBeschreibung
stageIdpath✔string
StatusBeschreibung
200Stage deleted
404Stage not found

GET /api/external/bot/usage​

Read usage/token statistics of the token's own bot (scope stats:read)

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

StatusBeschreibung
200Array of usage stats (chat completions, TTS, HeyGen)

GET /api/external/checkauth​

Verify external API token

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

StatusBeschreibung
200Validated token data

GET /api/external/keyval​

List all key-value entries for this bot

Returns all KeyVal entries belonging to the token's bot. Filter by userId, key, keyPrefix, and/or type via query parameters.

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

ParameterInPflichtTypBeschreibung
userIdquery–stringFilter by user ID
typequery–stringFilter by entry type
keyquery–stringExact key match (mutually exclusive with keyPrefix)
keyPrefixquery–stringKey starts-with filter (mutually exclusive with key)
StatusBeschreibung
200Array of KeyVal entries (enriched with guestId)

GET /api/external/keyval/{userId}​

List all key-value entries for a specific user

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

ParameterInPflichtTypBeschreibung
userIdpath✔string
typequery–string
keyPrefixquery–string
StatusBeschreibung
200Array of KeyVal entries

DELETE /api/external/keyval/{userId}​

Delete all key-value entries for a specific user

Deletes all entries for the given user. Filter by type and/or keyPrefix. Permanent entries ("!"-prefixed keys) are protected by default; pass keepPermanent=false to remove them as well.

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

ParameterInPflichtTypBeschreibung
userIdpath✔string
typequery–string
keyPrefixquery–string
keepPermanentquery–boolean
StatusBeschreibung
200Number of deleted entries

GET /api/external/keyval/{userId}/{type}/{key}​

Get a single key-value entry

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

ParameterInPflichtTypBeschreibung
userIdpath✔string
typepath✔string
keypath✔string
StatusBeschreibung
200KeyVal entry
404Entry not found

PUT /api/external/keyval/{userId}/{type}/{key}​

Create or update a key-value entry (upsert)

Permanent entries (key starts with "!") cannot be written and return 403.

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

ParameterInPflichtTypBeschreibung
userIdpath✔string
typepath✔string
keypath✔string

Request-Body (application/json): value: unknown

StatusBeschreibung
200Updated or created entry
403Key is read-only (starts with "!")

DELETE /api/external/keyval/{userId}/{type}/{key}​

Delete a single key-value entry

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

ParameterInPflichtTypBeschreibung
userIdpath✔string
typepath✔string
keypath✔string
StatusBeschreibung
200Entry deleted
404Entry not found

POST /api/external/keyval/bulk-delete​

Bulk-delete key-value entries for this bot

Deletes all entries matching the given filter. By default, entries whose key starts with "!" (permanent entries) are protected — set keepPermanent to false to delete them as well.

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

Request-Body (application/json): userId: string, type: string, keyPrefix: string, keepPermanent: boolean

StatusBeschreibung
200Number of deleted entries

GET /api/external/logto/bot-templates​

List the released bot templates for the Logto user

Same authentication as GET /api/external/logto/bots (only the bearer token). Returns the released templates (template, not a draft, not archived, not trashed): all general templates plus the templates released for the token tenant. Catalog metadata that is not maintained comes back as null or empty list. Sorted by name (German collation). Response header Cache-Control: no-store.

Auth: LogtoBearer

StatusBeschreibung
200Template catalog
400API key header sent (only a Logto bearer token is accepted)
401Token missing or invalid, or the Logto mode is off
403Email missing in the token, unknown Engine user or portal access denied

GET /api/external/logto/bots​

List all bots the Logto user may access

Only Authorization: Bearer &lt;Logto organization token&gt;; X-ENGINE-PROJECT-ID and X-ENGINE-BOT-ID are ignored, API keys are rejected. Lists the bots of all projects of the token tenant plus the user's own private projects that the user can read, plus the bots without project that the user created (creator), independent of the token tenant (trashed, archived, demo and template bots excluded). Bots without project have projectId, projectName and orgShort null and canWrite true. Sorted by projectName, then botName (German collation); bots without project come after all bots with project, sorted by botName. Response header Cache-Control: no-store.

Auth: LogtoBearer

StatusBeschreibung
200Accessible bots
400API key header sent (only a Logto bearer token is accepted)
401Token missing or invalid, or the Logto mode is off
403Email missing in the token, unknown Engine user or portal access denied

GET /api/external/logto/bots/{botId}​

Resolve a bot and its current project for the Logto user

Same authentication and permission as GET /api/external/logto/bots. Call it before each agent run: it returns the bot's CURRENT project (null for a bot without project; then omit X-ENGINE-PROJECT-ID in bot API calls). A bot without project is only accessible to its creator. Unknown, invalid and inaccessible bots all answer 403 with the same message. Response header Cache-Control: no-store.

Auth: LogtoBearer

ParameterInPflichtTypBeschreibung
botIdpath✔string
StatusBeschreibung
200The bot
400API key header sent (only a Logto bearer token is accepted)
401Token missing or invalid, or the Logto mode is off
403No access to this bot (also unknown or invalid bot ID), email missing, unknown Engine user or portal access denied

GET /api/external/logto/bots/{botId}/presence​

Who is working on the bot right now

Same authentication and permission as GET /api/external/logto/bots/{botId} (unknown, invalid and inaccessible bots answer 403 NO_BOT_ACCESS). Lists the Engine admins currently in the Admin UI of this bot (source: engine) and the active entries of external apps (PUT below), across all server instances. Response header Cache-Control: no-store.

Auth: LogtoBearer

StatusBeschreibung
200Active presence
401Token missing or invalid, or the Logto mode is off
403No access to this bot (also unknown or invalid bot ID), email missing, unknown Engine user or portal access denied

PUT /api/external/logto/bots/{botId}/presence​

Heartbeat of an external app (e.g. puzzleflow)

Same authentication and permission as GET. Upserts the entry per (botId, Logto sub of the token, source). Send it about every 20 s; an entry without heartbeat for 60 s is no longer listed. Shown in the Engine Admin UI as "<name> (über Puzzleflow)". Answers the same list as GET. Response header Cache-Control: no-store.

Auth: LogtoBearer

Request-Body (application/json): source: "puzzleflow", name: string, running: boolean

StatusBeschreibung
200Active presence after the heartbeat
400Invalid body (errorType INVALID_PRESENCE) or API key header sent
401Token missing or invalid, or the Logto mode is off
403No access to this bot (checked before the body), email missing, unknown Engine user or portal access denied

DELETE /api/external/logto/bots/{botId}/presence​

Remove the own entry of an external app

Removes the caller's own entry (Logto sub of the token) of this source. Idempotent; no bot access check, since only the own entry is removed.

Auth: LogtoBearer

ParameterInPflichtTypBeschreibung
sourcequery✔"puzzleflow"
StatusBeschreibung
204Entry removed (or there was none)
400source missing or invalid (errorType INVALID_PRESENCE) or API key header sent
401Token missing or invalid, or the Logto mode is off
403Email missing, unknown Engine user or portal access denied

POST /api/external/logto/bots/from-template​

Create a bot from a released template in a project of the Logto user

Only Authorization: Bearer &lt;Logto organization token&gt; (no X-ENGINE-* headers, API keys are rejected). Copies a released template (isTemplate, not a draft, not trashed or archived; a tenant template only for the token tenant) with stages, skills, fusion views, Blockly etc. as a NEW bot into projectId. The target project must be visible to the user (token tenant or own private project) and writable (editMode), otherwise 403. The new bot belongs to the token user (creator), is named botName (no "Kopie von" prefix) and stores its origin in templateOrigin (templateId, templateName and templateUpdated = the template's updated at copy time as version). AI template variables are filled during the copy; useCaseDescription is passed as context. The template itself is never changed; the response never contains the template's ID. Response header Cache-Control: no-store.

Auth: LogtoBearer

Request-Body (application/json): templateId: string, projectId: string, botName: string, useCaseDescription: string

StatusBeschreibung
201The new bot, same format as GET /api/external/logto/bots/{botId}
400Invalid body (INVALID_REQUEST) or API key header sent
401Token missing or invalid, or the Logto mode is off
403No write access to the target project (NO_PROJECT_WRITE_ACCESS), email missing, unknown Engine user or portal access denied
422Source is unknown, not a released template or a tenant template of another tenant (TEMPLATE_NOT_AVAILABLE)
500Copying failed, nothing was stored (TEMPLATE_COPY_FAILED)

GET /api/external/logto/projects​

List all projects the Logto user may access, including empty ones

Same authentication as GET /api/external/logto/bots (only the bearer token; X-ENGINE-* headers are ignored, API keys are rejected). Lists the projects of the token tenant (orgShort = tenant, isPrivate false) and the user's own private projects (empty orgShort, creator = user; returned with orgShort null and isPrivate true) that the user can read, also projects without bots. Deleted projects are not listed. canWrite means the user may create bots in the project. Sorted with tenant projects first, then private projects, each by projectName (German collation). Response header Cache-Control: no-store.

Auth: LogtoBearer

ParameterInPflichtTypBeschreibung
scopequery–"mandant""private"
StatusBeschreibung
200Accessible projects
400API key header sent (only a Logto bearer token is accepted) or invalid scope
401Token missing or invalid, or the Logto mode is off
403Email missing in the token, unknown Engine user or portal access denied

POST /api/external/logto/projects​

Create a project in the token tenant or a private project for the Logto user

Only Authorization: Bearer &lt;Logto organization token&gt;; X-ENGINE-* headers are ignored, API keys are rejected. The tenant cannot be chosen: isPrivate: false creates the project in the token tenant, isPrivate: true creates a private project of the user (no tenant). Creator is the token user, editMode is creator (only the creator can edit it, as with the Admin default); every other body field is ignored. Anyone with Engine access in the token tenant (portal check) may create projects. projectName is trimmed and must be unique (case-insensitive) within the token tenant resp. within the user's private projects. Response header Cache-Control: no-store.

Auth: LogtoBearer

Request-Body (application/json): projectName: string, isPrivate: boolean

StatusBeschreibung
201Project created
400API key header sent (only a Logto bearer token is accepted)
401Token missing or invalid, or the Logto mode is off
403Email missing in the token, unknown Engine user or no Engine access in the token tenant (PORTAL_DENIED)
409A project with this name already exists in the same scope (PROJECT_NAME_TAKEN)
422Invalid body (INVALID_REQUEST_BODY) or project name (INVALID_PROJECT_NAME)

GET /api/external/supervisor/adminmessages​

Get supervisor admin messages of this bot, paginated (scope supervisor:read)

Messages a supervisor sent to users of this bot (from the admin supervisor view), including the user's answer. Sorted by created ascending. For a fully consistent snapshot across pages, pass the asOf value of the first response as until on subsequent requests.

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

ParameterInPflichtTypBeschreibung
pagequery–integer1-based page number
pageSizequery–integerNumber of items per page
userIdquery–stringOnly include entries of this user
threadIdquery–stringOnly include entries of this thread
sincequery–stringOnly include entries created at or after this time (ISO 8601)
untilquery–stringOnly include entries created at or before this time (ISO 8601)
StatusBeschreibung
200One page of admin messages
400Invalid query parameter
403Missing/invalid token or missing scope supervisor:read

GET /api/external/supervisor/chats​

Get supervisor chats for this bot, grouped by user and paginated by user (scope supervisor:read). SocketEvents are excluded.

Breaking change: the response is a page object &#123; items, page, pageSize, total, asOf &#125; instead of a plain array. Chats are ordered by the user's first message, so users appearing later are appended at the end and don't shift earlier pages. For a fully consistent snapshot across pages, pass the asOf value of the first response as until on subsequent requests. Each chat contains supervisorInfo: the values stored via RAGAI SUPERVISOR.setInfo for this user.

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

ParameterInPflichtTypBeschreibung
pagequery–integer1-based page number
pageSizequery–integerNumber of users (chats) per page
sincequery–stringOnly include history items created at or after this time (ISO 8601)
untilquery–stringOnly include history items created at or before this time (ISO 8601)
rolesquery–stringComma-separated list of message roles to include
StatusBeschreibung
200One page of supervisor chats
400Invalid query parameter
403Missing scope

GET /api/external/supervisor/chats/{userId}​

Get the supervisor chat of a single user of this bot (scope supervisor:read). SocketEvents are excluded.

The chat contains supervisorInfo: the values stored via RAGAI SUPERVISOR.setInfo for this user.

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

ParameterInPflichtTypBeschreibung
userIdpath✔string
StatusBeschreibung
200The user's supervisor chat
403Missing scope

GET /api/external/supervisor/helprequests​

Get supervisor help requests of this bot, paginated (scope supervisor:read)

Help requests users raised via the bot (RAGAI SUPERVISOR.notify). Sorted by created ascending. For a fully consistent snapshot across pages, pass the asOf value of the first response as until on subsequent requests.

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

ParameterInPflichtTypBeschreibung
pagequery–integer1-based page number
pageSizequery–integerNumber of items per page
userIdquery–stringOnly include entries of this user
threadIdquery–stringOnly include entries of this thread
sincequery–stringOnly include entries created at or after this time (ISO 8601)
untilquery–stringOnly include entries created at or before this time (ISO 8601)
solvedquery–booleanOnly include solved (true) or unsolved (false) help requests
StatusBeschreibung
200One page of help requests
400Invalid query parameter
403Missing/invalid token or missing scope supervisor:read

GET /api/external/supervisor/users​

Get all users of this bot that have at least one supervisor-enabled history item (scope supervisor:read)

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

StatusBeschreibung
200Array of users
403Missing scope

POST /api/external/useraccess/resetstats​

Reset usage stats for a user

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

Request-Body (application/json): userId: string

StatusBeschreibung
200Stats reset
403Reset failed

POST /api/external/useraccess/user​

Create a user

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

Request-Body (application/json): object

StatusBeschreibung
200Created user
403Creation failed (e.g. missing guestId)

PUT /api/external/useraccess/user​

Update a user

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

Request-Body (application/json): object

StatusBeschreibung
200Updated user
403Update failed (e.g. guestId already in list)

GET /api/external/useraccess/user/byGuestId/{guestId}​

Get user by guest ID

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

ParameterInPflichtTypBeschreibung
guestIdpath✔string
StatusBeschreibung
200User object

GET /api/external/useraccess/user/byId/{userId}​

Get user by ID

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

ParameterInPflichtTypBeschreibung
userIdpath✔string
StatusBeschreibung
200User object

GET /api/external/useraccess/user/usersinorg​

Get all users in the token's organisation

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

StatusBeschreibung
200Array of bots in the organisation with their selectable users

GET /api/external/useraccess/users​

Get all users for this bot

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

StatusBeschreibung
200Array of users

DELETE /api/external/useraccess/users​

Delete a user

Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId

Request-Body (application/json): userId: string

StatusBeschreibung
200User deleted