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
| Status | Beschreibung |
|---|---|
| 200 | The bot (API keys are masked) |
| 404 | Bot 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, templateVars: object[]
| Status | Beschreibung |
|---|---|
| 200 | The updated bot (API keys are masked) |
| 404 | Bot not found |
| 422 | Invalid 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"
| Status | Beschreibung |
|---|---|
| 200 | Bot deleted, archived or trashed |
| 404 | Bot 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
| Status | Beschreibung |
|---|---|
| 200 | Blockly slots |
| 403 | Missing blockly:read / blockly:write scope |
| 404 | Bot 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
| Parameter | In | Pflicht | Typ | Beschreibung |
|---|---|---|---|---|
uniqueId | path | ✔ | string | |
format | query | – | "xml" | "json" |
| Status | Beschreibung |
|---|---|
| 200 | Blockly document |
| 400 | Invalid format |
| 403 | Missing blockly:read / blockly:write scope |
| 404 | Unknown slot or slot of another bot |
| 422 | Stored XML cannot be converted to JSON losslessly |
| 429 | Too many Blockly requests are queued or running for this bot |
| 504 | Blockly 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
| Parameter | In | Pflicht | Typ | Beschreibung |
|---|---|---|---|---|
uniqueId | path | ✔ | string |
Request-Body (application/json): format: "xml" | "json", content: string, expectedRevision: string
| Status | Beschreibung |
|---|---|
| 200 | Blockly item saved; response includes the stored document, new revision and validation result |
| 400 | Malformed request body |
| 403 | Missing blockly:write scope |
| 404 | Unknown slot or slot of another bot (never returned for global_js_<botId>) |
| 409 | expectedRevision does not match the stored document; nothing was saved |
| 413 | Blockly content is too large or contains too many blocks |
| 422 | Blockly content is syntactically accepted but invalid; nothing was saved |
| 429 | Too many validation requests are queued or running |
| 504 | Blockly 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
| Parameter | In | Pflicht | Typ | Beschreibung |
|---|---|---|---|---|
q | query | – | string | |
category | query | – | string | Category path or prefix, e.g. "Start & Ablauf" or "Start & Ablauf > Stages". |
section | query | – | "standard" | "expert" |
includeDeprecated | query | – | boolean | |
limit | query | – | integer | Values above 50 are capped at 50. |
uniqueId | query | – | string | Optional context slot. With an ifthen_<id> slot the context specific Wenn-Dann blocks are included. |
| Status | Beschreibung |
|---|---|
| 200 | Matching blocks |
| 400 | Invalid query parameters |
| 403 | Missing Blockly scope |
| 404 | Bot or context slot not found |
| 429 | Too many Blockly requests are queued or running for this bot |
| 504 | Blockly 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
| Parameter | In | Pflicht | Typ | Beschreibung |
|---|---|---|---|---|
uniqueId | query | – | string | Optional context slot. With an ifthen_<id> slot the context specific Wenn-Dann blocks are included. |
| Status | Beschreibung |
|---|---|
| 200 | Categories per toolbox section (standard toolbox incl. plugins and deprecated blocks, expert mode) |
| 403 | Missing Blockly scope |
| 404 | Bot or context slot not found |
| 429 | Too many Blockly requests are queued or running for this bot |
| 504 | Blockly 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
| Parameter | In | Pflicht | Typ | Beschreibung |
|---|---|---|---|---|
types | query | ✔ | string | Comma separated block types (at most 20). |
uniqueId | query | – | string | Optional context slot. With an ifthen_<id> slot the context specific Wenn-Dann blocks are included. |
| Status | Beschreibung |
|---|---|
| 200 | Specifications of the known types |
| 400 | Missing types or more than 20 types |
| 403 | Missing Blockly scope |
| 404 | Bot or context slot not found |
| 429 | Too many Blockly requests are queued or running for this bot |
| 504 | Blockly 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
| Parameter | In | Pflicht | Typ | Beschreibung |
|---|---|---|---|---|
path | query | – | string | |
blockType | query | – | string | |
offset | query | – | integer | |
maxChars | query | – | integer | Values above 50000 are capped. |
| Status | Beschreibung |
|---|---|
| 200 | Page list (without path) or page content (with path) |
| 400 | Invalid query parameters |
| 403 | Missing Blockly scope |
| 404 | Page 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
| Parameter | In | Pflicht | Typ | Beschreibung |
|---|---|---|---|---|
topic | query | – | string | Topic ID from the topics list (or core). |
| Status | Beschreibung |
|---|---|
| 200 | Core guide with topic list (without topic) or a single topic (with topic) |
| 400 | Invalid or unknown query parameters |
| 403 | Missing Blockly scope |
| 404 | Unknown topic; validIds lists all valid topic IDs |
| 503 | Guide is not available on this server |
GET /api/external/bot/blockly/plugins
List the Blockly plugins of the token's own bot (scope blockly:read or blockly:write)
Plugins add own blocks to the bot (".block" format, first line "@plugin:<Name>", one "###BLOCKDEF" section per block with #::ID, #::block, #::code and optional #::nestings). Their blocks appear in the Blockly catalog (category "Erweiterungen") and can be used in validate/save of Blockly documents. The syntax is explained in GET /api/external/bot/blockly/guide?topic=plugins.
Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId
| Status | Beschreibung |
|---|---|
| 200 | Plugins without content |
| 403 | Missing blockly:read / blockly:write scope |
| 404 | Bot not found |
POST /api/external/bot/blockly/plugins
Validate and create a Blockly plugin (scope blockly:write)
Saves only valid plugins (same checks as POST /plugins/validate). Writes a pluginCreated entry to the bot changelog with createdBy "apitoken:<token name>". Note that #::code is JavaScript that runs in the bot like code from raw code blocks.
Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId
Request-Body (application/json): content: string
| Status | Beschreibung |
|---|---|
| 201 | Plugin created |
| 400 | Malformed request body |
| 403 | Missing blockly:write scope |
| 404 | Bot not found |
| 413 | Plugin text is larger than 256 KB |
| 422 | Plugin is invalid; nothing was saved |
| 429 | Too many Blockly worker requests are queued or running |
| 504 | Plugin validation timed out |
GET /api/external/bot/blockly/plugins/{pluginId}
Read a Blockly plugin incl. content and revision (scope blockly:read or blockly:write)
Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId
| Parameter | In | Pflicht | Typ | Beschreibung |
|---|---|---|---|---|
pluginId | path | ✔ | string |
| Status | Beschreibung |
|---|---|
| 200 | Plugin |
| 403 | Missing blockly:read / blockly:write scope |
| 404 | Bot or plugin not found |
PUT /api/external/bot/blockly/plugins/{pluginId}
Validate and replace a Blockly plugin (scope blockly:write)
Saves only valid content. With expectedRevision (from GET) the save is an atomic compare-and-set; on mismatch 409 REVISION_CONFLICT with currentRevision is returned and nothing is saved. If removed blocks are still used in Blockly documents, validation.warnings contains PLUGIN_BLOCK_IN_USE. Writes a pluginUpdated changelog entry.
Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId
| Parameter | In | Pflicht | Typ | Beschreibung |
|---|---|---|---|---|
pluginId | path | ✔ | string |
Request-Body (application/json): content: string, expectedRevision: string
| Status | Beschreibung |
|---|---|
| 200 | Plugin replaced |
| 400 | Malformed request body |
| 403 | Missing blockly:write scope |
| 404 | Bot or plugin not found |
| 409 | expectedRevision does not match the stored plugin; nothing was saved |
| 413 | Plugin text is larger than 256 KB |
| 422 | Plugin is invalid; nothing was saved |
| 429 | Too many Blockly worker requests are queued or running |
| 504 | Plugin validation timed out |
DELETE /api/external/bot/blockly/plugins/{pluginId}
Delete a Blockly plugin (scope blockly:write)
Returns 409 PLUGIN_IN_USE with the affected Blockly documents while blocks of the plugin are still used. force=true deletes anyway (those documents then fail validation). Writes a pluginRemoved changelog entry.
Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId
| Parameter | In | Pflicht | Typ | Beschreibung |
|---|---|---|---|---|
pluginId | path | ✔ | string | |
force | query | – | "true" | "false" |
| Status | Beschreibung |
|---|---|
| 200 | Plugin deleted |
| 400 | Invalid force parameter |
| 403 | Missing blockly:write scope |
| 404 | Bot or plugin not found |
| 409 | Blocks of the plugin are still used in Blockly documents |
POST /api/external/bot/blockly/plugins/validate
Validate a Blockly plugin without saving (scope blockly:validate)
Checks the "@plugin:" header, unique plugin name and block IDs within the bot, required sections, conflicts with core, shared and expert blocks (PLUGIN_BLOCK_CONFLICT is an error), placeholder syntax and modes, placeholders in #::code that match no field or input (would become "???"), #::nestings against existing value inputs, and JavaScript syntax of the generated code (compiled, never executed). Validation failures return HTTP 200 with valid=false. Pass pluginId to validate a replacement for an existing plugin (its own name and IDs then do not conflict).
Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId
Request-Body (application/json): content: string, pluginId: string
| Status | Beschreibung |
|---|---|
| 200 | Validation completed |
| 400 | Malformed request body |
| 403 | Missing blockly:validate scope |
| 404 | Bot or pluginId not found |
| 413 | Plugin text is larger than 256 KB |
| 429 | Too many Blockly worker requests are queued or running |
| 504 | Plugin validation timed out |
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
| Parameter | In | Pflicht | Typ | Beschreibung |
|---|---|---|---|---|
q | query | – | string | |
tag | query | – | string | |
slotKind | query | – | "global" | "ifthen" |
| Status | Beschreibung |
|---|---|
| 200 | Matching recipes, best matches first |
| 400 | Invalid or unknown query parameters |
| 403 | Missing 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
| Parameter | In | Pflicht | Typ | Beschreibung |
|---|---|---|---|---|
id | path | ✔ | string |
| Status | Beschreibung |
|---|---|
| 200 | Recipe |
| 403 | Missing Blockly scope |
| 404 | Unknown 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
| Status | Beschreibung |
|---|---|
| 200 | Validation completed. valid=false means the Blockly content must be fixed. |
| 400 | Malformed request body |
| 403 | Missing blockly:validate scope |
| 404 | uniqueId was provided but is neither a valid slot nor a stored Blockly item of this bot |
| 413 | Blockly content is too large or contains too many blocks |
| 429 | Too many validation requests are queued or running |
| 504 | Blockly 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
| Status | Beschreibung |
|---|---|
| 200 | Array 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
| Status | Beschreibung |
|---|---|
| 200 | The newly created bot (API keys are masked) |
| 404 | Bot 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
| Status | Beschreibung |
|---|---|
| 200 | Array 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
| Status | Beschreibung |
|---|---|
| 200 | The created (or already-running) crawl |
| 422 | Invalid 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
| Parameter | In | Pflicht | Typ | Beschreibung |
|---|---|---|---|---|
scrapeId | path | ✔ | string |
| Status | Beschreibung |
|---|---|
| 200 | The website-crawl, including its scraped pages |
| 404 | Website-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
| Parameter | In | Pflicht | Typ | Beschreibung |
|---|---|---|---|---|
scrapeId | path | ✔ | string |
Request-Body (application/json): description: string, active: boolean, skillId: string, name: string
| Status | Beschreibung |
|---|---|
| 200 | The updated website-crawl |
| 404 | Website-crawl not found |
| 422 | Invalid 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
| Parameter | In | Pflicht | Typ | Beschreibung |
|---|---|---|---|---|
scrapeId | path | ✔ | string |
| Status | Beschreibung |
|---|---|
| 200 | Website-crawl deleted |
| 404 | Website-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
| Status | Beschreibung |
|---|---|
| 200 | Array 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
| Status | Beschreibung |
|---|---|
| 200 | Array 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
| Status | Beschreibung |
|---|---|
| 200 | The newly created Fusion-View |
| 422 | Invalid fields (e.g. missing type/title, a reserved field was set, or an iframely view without a usable video url / with html) |
| 502 | The urlpreview service for iframely embed codes is not reachable |
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
| Parameter | In | Pflicht | Typ | Beschreibung |
|---|---|---|---|---|
fusionId | path | ✔ | string |
| Status | Beschreibung |
|---|---|
| 200 | The Fusion-View |
| 404 | Fusion-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
| Parameter | In | Pflicht | Typ | Beschreibung |
|---|---|---|---|---|
fusionId | path | ✔ | string |
Request-Body (application/json): object
| Status | Beschreibung |
|---|---|
| 200 | The updated Fusion-View |
| 404 | Fusion-View not found |
| 422 | Invalid fields (e.g. type/_id/botId was set, no fields provided, or html/an unusable url for an iframely view) |
| 502 | The urlpreview service for iframely embed codes is not reachable |
DELETE /api/external/bot/fusion/{fusionId}
Delete a Fusion-View (scope fusion:write)
Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId
| Parameter | In | Pflicht | Typ | Beschreibung |
|---|---|---|---|---|
fusionId | path | ✔ | string |
| Status | Beschreibung |
|---|---|
| 200 | Fusion-View deleted |
| 404 | Fusion-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
| Parameter | In | Pflicht | Typ | Beschreibung |
|---|---|---|---|---|
fusionId | path | ✔ | string |
Request-Body (multipart/form-data): file: string
| Status | Beschreibung |
|---|---|
| 200 | The updated Fusion-View file entry |
| 404 | Fusion-View not found |
| 413 | |
| 415 | Upload not supported for this Fusion-View type, or unsupported mimetype |
| 422 | |
| 503 |
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
| Status | Beschreibung |
|---|---|
| 200 | Array 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
| Status | Beschreibung |
|---|---|
| 200 | The newly created skill |
| 409 | name (customtoolkit only) or skillId already used by another Skill of this bot |
| 422 | Invalid 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
| Parameter | In | Pflicht | Typ | Beschreibung |
|---|---|---|---|---|
skillId | path | ✔ | string |
| Status | Beschreibung |
|---|---|
| 200 | The skill |
| 404 | Skill not found |
PUT /api/external/bot/skills/{skillId}
Partially update a Skill (scope skills:write)
Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId
| Parameter | In | Pflicht | Typ | Beschreibung |
|---|---|---|---|---|
skillId | path | ✔ | 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"
| Status | Beschreibung |
|---|---|
| 200 | The updated skill |
| 404 | Skill not found |
| 409 | name (customtoolkit only) or skillId already used by another Skill of this bot |
| 422 | Invalid 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
| Parameter | In | Pflicht | Typ | Beschreibung |
|---|---|---|---|---|
skillId | path | ✔ | string |
| Status | Beschreibung |
|---|---|
| 200 | Skill deleted |
| 404 | Skill 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
| Status | Beschreibung |
|---|---|
| 200 | Array 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
| Status | Beschreibung |
|---|---|
| 200 | The newly created stage |
| 422 | Invalid 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
| Parameter | In | Pflicht | Typ | Beschreibung |
|---|---|---|---|---|
stageId | path | ✔ | string |
| Status | Beschreibung |
|---|---|
| 200 | The stage |
| 404 | Stage not found |
PUT /api/external/bot/stages/{stageId}
Partially update a stage (scope stages:write)
Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId
| Parameter | In | Pflicht | Typ | Beschreibung |
|---|---|---|---|---|
stageId | path | ✔ | string |
Request-Body (application/json): title: string, name: string, hidden: boolean, footer: boolean, forceSkills: boolean, skills: string[], enterJS: string, exitJS: string, preConditionJS: string
| Status | Beschreibung |
|---|---|
| 200 | The updated stage |
| 404 | Stage not found |
| 422 | Invalid 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
| Parameter | In | Pflicht | Typ | Beschreibung |
|---|---|---|---|---|
stageId | path | ✔ | string |
| Status | Beschreibung |
|---|---|
| 200 | Stage deleted |
| 404 | Stage 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
| Status | Beschreibung |
|---|---|
| 200 | Array of usage stats (chat completions, TTS, HeyGen) |
GET /api/external/checkauth
Verify external API token
Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId
| Status | Beschreibung |
|---|---|
| 200 | Validated 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
| Parameter | In | Pflicht | Typ | Beschreibung |
|---|---|---|---|---|
userId | query | – | string | Filter by user ID |
type | query | – | string | Filter by entry type |
key | query | – | string | Exact key match (mutually exclusive with keyPrefix) |
keyPrefix | query | – | string | Key starts-with filter (mutually exclusive with key) |
| Status | Beschreibung |
|---|---|
| 200 | Array 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
| Parameter | In | Pflicht | Typ | Beschreibung |
|---|---|---|---|---|
userId | path | ✔ | string | |
type | query | – | string | |
keyPrefix | query | – | string |
| Status | Beschreibung |
|---|---|
| 200 | Array 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
| Parameter | In | Pflicht | Typ | Beschreibung |
|---|---|---|---|---|
userId | path | ✔ | string | |
type | query | – | string | |
keyPrefix | query | – | string | |
keepPermanent | query | – | boolean |
| Status | Beschreibung |
|---|---|
| 200 | Number of deleted entries |
GET /api/external/keyval/{userId}/{type}/{key}
Get a single key-value entry
Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId
| Parameter | In | Pflicht | Typ | Beschreibung |
|---|---|---|---|---|
userId | path | ✔ | string | |
type | path | ✔ | string | |
key | path | ✔ | string |
| Status | Beschreibung |
|---|---|
| 200 | KeyVal entry |
| 404 | Entry 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
| Parameter | In | Pflicht | Typ | Beschreibung |
|---|---|---|---|---|
userId | path | ✔ | string | |
type | path | ✔ | string | |
key | path | ✔ | string |
Request-Body (application/json): value: unknown
| Status | Beschreibung |
|---|---|
| 200 | Updated or created entry |
| 403 | Key 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
| Parameter | In | Pflicht | Typ | Beschreibung |
|---|---|---|---|---|
userId | path | ✔ | string | |
type | path | ✔ | string | |
key | path | ✔ | string |
| Status | Beschreibung |
|---|---|
| 200 | Entry deleted |
| 404 | Entry 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
| Status | Beschreibung |
|---|---|
| 200 | Number 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
| Status | Beschreibung |
|---|---|
| 200 | Template catalog |
| 400 | API key header sent (only a Logto bearer token is accepted) |
| 401 | Token missing or invalid, or the Logto mode is off |
| 403 | Email 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 <Logto organization token>; 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
| Status | Beschreibung |
|---|---|
| 200 | Accessible bots |
| 400 | API key header sent (only a Logto bearer token is accepted) |
| 401 | Token missing or invalid, or the Logto mode is off |
| 403 | Email missing in the token, unknown Engine user or portal access denied |
POST /api/external/logto/bots
Create a blank bot in a project of the Logto user
Only Authorization: Bearer <Logto organization token> (no X-ENGINE-* headers, API keys are rejected). Creates a bot with the Engine default settings, without stages, skills and Blockly logic (like "Neuer Bot" in the Engine admin), named botName, in 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); it is billed to the project's tenant, for a private project to the token tenant. Response header Cache-Control: no-store.
Auth: LogtoBearer
Request-Body (application/json): projectId: string, botName: string
| Status | Beschreibung |
|---|---|
| 201 | The new bot, same format as GET /api/external/logto/bots/{botId} |
| 400 | Invalid body (INVALID_REQUEST) or API key header sent |
| 401 | Token missing or invalid, or the Logto mode is off |
| 403 | No write access to the target project (NO_PROJECT_WRITE_ACCESS), email missing, unknown Engine user or portal access denied |
| 500 | Creating the bot failed, nothing was stored (BOT_CREATE_FAILED) |
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
| Parameter | In | Pflicht | Typ | Beschreibung |
|---|---|---|---|---|
botId | path | ✔ | string |
| Status | Beschreibung |
|---|---|
| 200 | The bot |
| 400 | API key header sent (only a Logto bearer token is accepted) |
| 401 | Token missing or invalid, or the Logto mode is off |
| 403 | No access to this bot (also unknown or invalid bot ID), email missing, unknown Engine user or portal access denied |
POST /api/external/logto/bots/{botId}/copy
Copy an own bot into a project of the Logto user
Only Authorization: Bearer <Logto organization token> (no X-ENGINE-* headers, API keys are rejected). Source: a bot that GET /api/external/logto/bots returns for the same token with canWrite: true (no templates, demo, trashed, archived or write-protected bots). The copy contains stages, skills, fusion views, Blockly etc. like /from-template, but the template variables are taken over as they are (no AI filling); user data, uploads of bot users, feedback and usage are not copied. Target project and creator as for POST /api/external/logto/bots; source and target may be a tenant project and a private project of the user. The new bot is named botName (no "Kopie von" prefix) and stores its source in copiedFromBotId. The source bot is never changed; the response never contains its ID. A missing or deleted source answers 422 SOURCE_BOT_NOT_FOUND, never 404. Response header Cache-Control: no-store.
Auth: LogtoBearer
| Parameter | In | Pflicht | Typ | Beschreibung |
|---|---|---|---|---|
botId | path | ✔ | string | Source bot |
Request-Body (application/json): projectId: string, botName: string
| Status | Beschreibung |
|---|---|
| 201 | The new bot, same format as GET /api/external/logto/bots/{botId} |
| 400 | Invalid body (INVALID_REQUEST) or API key header sent |
| 401 | Token missing or invalid, or the Logto mode is off |
| 403 | No write access to the target project (NO_PROJECT_WRITE_ACCESS, checked first) or to the source bot (NO_BOT_WRITE_ACCESS), email missing, unknown Engine user or portal access denied |
| 422 | Source bot unknown or deleted (SOURCE_BOT_NOT_FOUND) or a template (SOURCE_IS_TEMPLATE) |
| 500 | Copying failed, nothing was stored (BOT_COPY_FAILED) |
GET /api/external/logto/bots/{botId}/export
Export a bot of the Logto user as ZIP
Only Authorization: Bearer <Logto organization token> (no X-ENGINE-* headers, API keys are rejected). Source: a bot that GET /api/external/logto/bots returns for the same token (read access is enough; no templates, demo, trashed or archived bots). The ZIP has the same content as the admin export (GET /api/toolbox/bot/admin/exportaszip/{botId}) and can be imported again with the admin ZIP import. The bot is only read, never changed. Used by the release check to take bots unchanged as raw data to another Engine instance. A missing or deleted bot answers 422 SOURCE_BOT_NOT_FOUND, never 404. The archive is streamed: an error after the first byte aborts the download (the client gets an incomplete response, never a broken ZIP marked as complete). Response header Cache-Control: no-store.
Auth: LogtoBearer
| Parameter | In | Pflicht | Typ | Beschreibung |
|---|---|---|---|---|
botId | path | ✔ | string |
| Status | Beschreibung |
|---|---|
| 200 | The bot as ZIP (Content-Disposition: attachment; filename="bot_<botId>.zip") |
| 400 | API key header sent (only a Logto bearer token is accepted) |
| 401 | Token missing or invalid, or the Logto mode is off |
| 403 | No read access to the bot (NO_BOT_ACCESS; deleted bots of others answer the same), email missing, unknown Engine user or portal access denied |
| 422 | Bot unknown, invalid or deleted (SOURCE_BOT_NOT_FOUND) or a template (SOURCE_IS_TEMPLATE) |
| 500 | The export failed before the download started (BOT_EXPORT_FAILED) |
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
| Status | Beschreibung |
|---|---|
| 200 | Active presence |
| 401 | Token missing or invalid, or the Logto mode is off |
| 403 | No 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
| Status | Beschreibung |
|---|---|
| 200 | Active presence after the heartbeat |
| 400 | Invalid body (errorType INVALID_PRESENCE) or API key header sent |
| 401 | Token missing or invalid, or the Logto mode is off |
| 403 | No 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
| Parameter | In | Pflicht | Typ | Beschreibung |
|---|---|---|---|---|
source | query | ✔ | "puzzleflow" |
| Status | Beschreibung |
|---|---|
| 204 | Entry removed (or there was none) |
| 400 | source missing or invalid (errorType INVALID_PRESENCE) or API key header sent |
| 401 | Token missing or invalid, or the Logto mode is off |
| 403 | Email 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 <Logto organization token> (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
| Status | Beschreibung |
|---|---|
| 201 | The new bot, same format as GET /api/external/logto/bots/{botId} |
| 400 | Invalid body (INVALID_REQUEST) or API key header sent |
| 401 | Token missing or invalid, or the Logto mode is off |
| 403 | No write access to the target project (NO_PROJECT_WRITE_ACCESS), email missing, unknown Engine user or portal access denied |
| 422 | Source is unknown, not a released template or a tenant template of another tenant (TEMPLATE_NOT_AVAILABLE) |
| 500 | Copying 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
| Parameter | In | Pflicht | Typ | Beschreibung |
|---|---|---|---|---|
scope | query | – | "mandant" | "private" |
| Status | Beschreibung |
|---|---|
| 200 | Accessible projects |
| 400 | API key header sent (only a Logto bearer token is accepted) or invalid scope |
| 401 | Token missing or invalid, or the Logto mode is off |
| 403 | Email 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 <Logto organization token>; 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
| Status | Beschreibung |
|---|---|
| 201 | Project created |
| 400 | API key header sent (only a Logto bearer token is accepted) |
| 401 | Token missing or invalid, or the Logto mode is off |
| 403 | Email missing in the token, unknown Engine user or no Engine access in the token tenant (PORTAL_DENIED) |
| 409 | A project with this name already exists in the same scope (PROJECT_NAME_TAKEN) |
| 422 | Invalid 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
| Parameter | In | Pflicht | Typ | Beschreibung |
|---|---|---|---|---|
page | query | – | integer | 1-based page number |
pageSize | query | – | integer | Number of items per page |
userId | query | – | string | Only include entries of this user |
threadId | query | – | string | Only include entries of this thread |
since | query | – | string | Only include entries created at or after this time (ISO 8601) |
until | query | – | string | Only include entries created at or before this time (ISO 8601) |
| Status | Beschreibung |
|---|---|
| 200 | One page of admin messages |
| 400 | Invalid query parameter |
| 403 | Missing/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 { items, page, pageSize, total, asOf } 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
| Parameter | In | Pflicht | Typ | Beschreibung |
|---|---|---|---|---|
page | query | – | integer | 1-based page number |
pageSize | query | – | integer | Number of users (chats) per page |
since | query | – | string | Only include history items created at or after this time (ISO 8601) |
until | query | – | string | Only include history items created at or before this time (ISO 8601) |
roles | query | – | string | Comma-separated list of message roles to include |
| Status | Beschreibung |
|---|---|
| 200 | One page of supervisor chats |
| 400 | Invalid query parameter |
| 403 | Missing 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
| Parameter | In | Pflicht | Typ | Beschreibung |
|---|---|---|---|---|
userId | path | ✔ | string |
| Status | Beschreibung |
|---|---|
| 200 | The user's supervisor chat |
| 403 | Missing 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
| Parameter | In | Pflicht | Typ | Beschreibung |
|---|---|---|---|---|
page | query | – | integer | 1-based page number |
pageSize | query | – | integer | Number of items per page |
userId | query | – | string | Only include entries of this user |
threadId | query | – | string | Only include entries of this thread |
since | query | – | string | Only include entries created at or after this time (ISO 8601) |
until | query | – | string | Only include entries created at or before this time (ISO 8601) |
solved | query | – | boolean | Only include solved (true) or unsolved (false) help requests |
| Status | Beschreibung |
|---|---|
| 200 | One page of help requests |
| 400 | Invalid query parameter |
| 403 | Missing/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
| Status | Beschreibung |
|---|---|
| 200 | Array of users |
| 403 | Missing 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
| Status | Beschreibung |
|---|---|
| 200 | Stats reset |
| 403 | Reset failed |
POST /api/external/useraccess/user
Create a user
Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId
Request-Body (application/json): object
| Status | Beschreibung |
|---|---|
| 200 | Created user |
| 403 | Creation 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
| Status | Beschreibung |
|---|---|
| 200 | Updated user |
| 403 | Update 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
| Parameter | In | Pflicht | Typ | Beschreibung |
|---|---|---|---|---|
guestId | path | ✔ | string |
| Status | Beschreibung |
|---|---|
| 200 | User object |
GET /api/external/useraccess/user/byId/{userId}
Get user by ID
Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId
| Parameter | In | Pflicht | Typ | Beschreibung |
|---|---|---|---|---|
userId | path | ✔ | string |
| Status | Beschreibung |
|---|---|
| 200 | User object |
GET /api/external/useraccess/user/usersinorg
Get all users in the token's organisation
Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId
| Status | Beschreibung |
|---|---|
| 200 | Array 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
| Status | Beschreibung |
|---|---|
| 200 | Array of users |
DELETE /api/external/useraccess/users
Delete a user
Auth: APIKeyHeader, LogtoBearer, EngineProjectId, EngineBotId, LogtoBearer, EngineBotId
Request-Body (application/json): userId: string
| Status | Beschreibung |
|---|---|
| 200 | User deleted |