openapi: 3.1.0 info: description: REST API for AgentOS — orchestration of AI agents via plugins title: AgentOS API version: 0.0.1 servers: - description: Generated server url url: http://localhost:18124 tags: - description: "Server-Sent Events endpoints — use EventSource API, not HTTP client" name: sse paths: /api/agent-configs: post: operationId: createAgentConfig requestBody: content: application/json: schema: $ref: "#/components/schemas/AgentConfig" required: true responses: "201": content: application/json: schema: $ref: "#/components/schemas/AgentConfig" description: Created tags: - agent-config-controller /api/agent-configs/by-ids: post: operationId: getByIdsAgentConfig requestBody: content: application/json: schema: $ref: "#/components/schemas/GetByIdsRequest" required: true responses: "200": content: application/json: schema: type: array items: $ref: "#/components/schemas/AgentConfig" description: OK tags: - agent-config-controller /api/agent-configs/by-parentId/{parentId}: get: operationId: listByParentAgentConfig parameters: - in: path name: parentId required: true schema: type: string format: uuid - in: query name: withDisabled required: false schema: type: boolean default: true responses: "200": content: application/json: schema: type: array items: $ref: "#/components/schemas/AgentConfig" description: OK tags: - agent-config-controller /api/agent-configs/defaults: get: operationId: getAgentConfigDefaults responses: "200": content: application/json: schema: $ref: "#/components/schemas/AgentConfigDefaultsDto" description: OK tags: - agent-config-defaults-controller /api/agent-configs/platform: get: operationId: listPlatformAgentsAgentConfig parameters: - in: query name: withDisabled required: false schema: type: boolean default: false responses: "200": content: application/json: schema: type: array items: $ref: "#/components/schemas/AgentConfig" description: OK tags: - agent-config-controller /api/agent-configs/search: post: operationId: searchAgentConfig requestBody: content: application/json: schema: $ref: "#/components/schemas/AgentConfigSearchRequest" required: true responses: "200": content: application/json: schema: type: array items: $ref: "#/components/schemas/AgentConfig" description: OK tags: - agent-config-controller /api/agent-configs/{id}: delete: operationId: deleteAgentConfig parameters: - in: path name: id required: true schema: type: string format: uuid responses: "204": description: No Content tags: - agent-config-controller get: operationId: getByIdAgentConfig parameters: - in: path name: id required: true schema: type: string format: uuid responses: "200": content: application/json: schema: $ref: "#/components/schemas/AgentConfig" description: OK tags: - agent-config-controller put: operationId: updateAgentConfig parameters: - in: path name: id required: true schema: type: string format: uuid requestBody: content: application/json: schema: $ref: "#/components/schemas/AgentConfig" required: true responses: "200": content: application/json: schema: $ref: "#/components/schemas/AgentConfig" description: OK tags: - agent-config-controller /api/agent-configs/{id}/definition: get: operationId: getDefinitionAgentConfig parameters: - in: path name: id required: true schema: type: string format: uuid - in: query name: withUserOverlay required: false schema: type: boolean default: false - in: query name: namespaceId required: false schema: type: string format: uuid responses: "200": content: application/json: schema: $ref: "#/components/schemas/AgentDefinition" description: OK tags: - agent-config-controller /api/agent-configs/{id}/disable: post: operationId: disableAgentConfig parameters: - in: path name: id required: true schema: type: string format: uuid responses: "200": content: application/json: schema: $ref: "#/components/schemas/AgentConfig" description: OK tags: - agent-config-controller /api/agent-configs/{id}/enable: post: operationId: enableAgentConfig parameters: - in: path name: id required: true schema: type: string format: uuid responses: "200": content: application/json: schema: $ref: "#/components/schemas/AgentConfig" description: OK tags: - agent-config-controller /api/agent-configs/{id}/export: get: description: "Returns the agent config as a downloadable YAML file, ready to\ \ be placed in the namespace `agents/` directory under `configPath`. Only\ \ the fields meaningful in a filesystem config are included. Scope metadata\ \ (`id`, `namespaceId`, `enabled`, `advancedExecution`, `externalMetadata`)\ \ is intentionally omitted." operationId: exportAgentConfig parameters: - in: path name: id required: true schema: type: string format: uuid responses: "200": content: application/json: schema: type: string application/yaml: schema: type: string description: OK summary: Export an AgentConfig as a YAML file tags: - agent-config-controller /api/agent-configs/{id}/loop-config/generate: post: description: "Uses the agent's configured LLM to translate a plain-English description\ \ into the `search` block (`tool` and `params`) of a loop configuration. The\ \ `act` block is not generated: the result is a proposal to complete, not\ \ a complete loop configuration." operationId: generateLoopConfigAgentConfig parameters: - in: path name: id required: true schema: type: string format: uuid - in: query name: namespaceId required: false schema: type: string format: uuid requestBody: content: application/json: schema: $ref: "#/components/schemas/LoopConfigGenerationRequest" required: true responses: "200": content: application/json: schema: $ref: "#/components/schemas/LoopConfigGenerationResult" description: OK summary: Generate the loop-config search block from a natural-language description tags: - agent-config-controller /api/ai-models: post: operationId: createAiModel requestBody: content: application/json: schema: $ref: "#/components/schemas/AiModel" required: true responses: "201": content: application/json: schema: $ref: "#/components/schemas/AiModel" description: Created tags: - ai-model-controller /api/ai-models/by-ids: post: operationId: getByIdsAiModel requestBody: content: application/json: schema: $ref: "#/components/schemas/GetByIdsRequest" required: true responses: "200": content: application/json: schema: type: array items: $ref: "#/components/schemas/AiModel" description: OK tags: - ai-model-controller /api/ai-models/by-namespaceId/{namespaceId}: get: operationId: listByNamespaceIdAiModel parameters: - in: path name: namespaceId required: true schema: type: string format: uuid responses: "200": content: application/json: schema: type: array items: $ref: "#/components/schemas/AiModel" description: OK tags: - ai-model-controller /api/ai-models/by-parentId/{parentId}: get: operationId: listByParentAiModel parameters: - in: path name: parentId required: true schema: type: string format: uuid responses: "200": content: application/json: schema: type: array items: $ref: "#/components/schemas/AiModel" description: OK tags: - ai-model-controller /api/ai-models/platform: get: operationId: listPlatformLevelAiModel responses: "200": content: application/json: schema: type: array items: $ref: "#/components/schemas/AiModel" description: OK tags: - ai-model-controller /api/ai-models/{id}: delete: operationId: deleteAiModel parameters: - in: path name: id required: true schema: type: string format: uuid responses: "200": description: OK tags: - ai-model-controller get: operationId: getByIdAiModel parameters: - in: path name: id required: true schema: type: string format: uuid responses: "200": content: application/json: schema: $ref: "#/components/schemas/AiModel" description: OK tags: - ai-model-controller put: operationId: updateAiModel parameters: - in: path name: id required: true schema: type: string format: uuid requestBody: content: application/json: schema: $ref: "#/components/schemas/AiModel" required: true responses: "200": content: application/json: schema: $ref: "#/components/schemas/AiModel" description: OK tags: - ai-model-controller /api/ai-providers: get: description: |- Scope is inferred from the query params: | query | mode | required permission | |----------------------------------|------------------|------------------------------------------------| | (no params) | platform | authenticated | | `?namespaceId=` | NS-shared | READ on the namespace (empty list if missing) | | `?namespaceId=&userId=me` | user × namespace | authenticated | | `?namespaceId=none&userId=me` | user-global | authenticated | | `?userId=me` (no namespace) | all caller's | authenticated | `userId` accepts ONLY the literal sentinel `me` — a UUID returns 400. `namespaceId=none` is the sentinel for `namespaceId IS NULL` (listing is not exposed, mass-assignment guard, AC4). operationId: listAiProvider parameters: - in: query name: namespaceId required: false schema: type: string - in: query name: userId required: false schema: type: string responses: "200": content: application/json: schema: type: array items: $ref: "#/components/schemas/AiProvider" description: OK summary: List AiProviders by scope tags: - ai-provider-controller post: description: |- Scope is inferred implicitly from the body's `(namespaceId, userId)` pair : | body.namespaceId | body.userId | scope | required permission | |------------------|--------------------|---------------|--------------------------------------| | null | null | platform | super-admin only | | present | null | NS-shared | WRITE on the namespace | | null | | user-global | authenticated only | | present | | user×namespace| READ on the namespace | `body.userId` (when supplied) MUST equal the authenticated user's id — sending a different user-id is rejected with 400 (mass-assignment guard, Decision 15 / AC2-AC3). A `namespaceId` that does not exist returns 404 (Decision 15 / AC7). operationId: createAiProvider requestBody: content: application/json: schema: $ref: "#/components/schemas/AiProvider" required: true responses: "201": content: application/json: schema: $ref: "#/components/schemas/AiProvider" description: Created summary: Create an AiProvider tags: - ai-provider-controller /api/ai-providers/by-ids: post: operationId: getByIdsAiProvider requestBody: content: application/json: schema: $ref: "#/components/schemas/GetByIdsRequest" required: true responses: "200": content: application/json: schema: type: array items: $ref: "#/components/schemas/AiProvider" description: OK tags: - ai-provider-controller /api/ai-providers/{id}: delete: operationId: deleteAiProvider parameters: - in: path name: id required: true schema: type: string format: uuid responses: "204": description: No Content tags: - ai-provider-controller get: operationId: getByIdAiProvider parameters: - in: path name: id required: true schema: type: string format: uuid responses: "200": content: application/json: schema: $ref: "#/components/schemas/AiProvider" description: OK tags: - ai-provider-controller put: operationId: updateAiProvider parameters: - in: path name: id required: true schema: type: string format: uuid requestBody: content: application/json: schema: $ref: "#/components/schemas/AiProvider" required: true responses: "200": content: application/json: schema: $ref: "#/components/schemas/AiProvider" description: OK tags: - ai-provider-controller /api/auth-settings: get: description: |- Scope is inferred from the query params: | query | mode | required permission | |----------------------------------|------------------|------------------------------------------------| | (no params) | all caller's | authenticated | | `?namespaceId=none` (no userId) | platform | authenticated | | `?namespaceId=` | NS-shared | READ on the namespace (empty list if missing) | | `?namespaceId=&userId=me` | user × namespace | authenticated | | `?namespaceId=none&userId=me` | user-global | authenticated | | `?userId=me` (no namespace) | all caller's | authenticated | `userId` accepts ONLY the literal sentinel `me` — a UUID returns 400. `namespaceId=none` is the sentinel for `namespaceId IS NULL`. operationId: listAuthSetting parameters: - in: query name: namespaceId required: false schema: type: string - in: query name: userId required: false schema: type: string responses: "200": content: application/json: schema: type: array items: oneOf: - $ref: "#/components/schemas/ApiKeyAuthSetting" - $ref: "#/components/schemas/BasicAuthAuthSetting" - $ref: "#/components/schemas/BearerTokenAuthSetting" - $ref: "#/components/schemas/OAuthCustomAuthSetting" - $ref: "#/components/schemas/OAuthDiscoverableAuthSetting" - $ref: "#/components/schemas/OAuthMcpDiscoverableAuthSetting" - $ref: "#/components/schemas/OAuthRegisteredAuthSetting" description: OK summary: List AuthSettings by scope tags: - auth-setting-controller post: description: |- Scope is inferred implicitly from the body's `(namespaceId, userId)` pair: | body.namespaceId | body.userId | scope | required permission | |------------------|--------------------|---------------|--------------------------------------| | null | null | platform | super-admin only | | present | null | NS-shared | WRITE on the namespace | | null | | user-global | authenticated only | | present | | user×namespace| READ on the namespace | `body.userId` (when supplied) MUST equal the authenticated user's id — sending a different user-id is rejected with 400 (mass-assignment guard). A `namespaceId` that does not exist returns 404. operationId: createAuthSetting requestBody: content: application/json: schema: oneOf: - $ref: "#/components/schemas/ApiKeyAuthSetting" - $ref: "#/components/schemas/BasicAuthAuthSetting" - $ref: "#/components/schemas/BearerTokenAuthSetting" - $ref: "#/components/schemas/OAuthCustomAuthSetting" - $ref: "#/components/schemas/OAuthDiscoverableAuthSetting" - $ref: "#/components/schemas/OAuthMcpDiscoverableAuthSetting" - $ref: "#/components/schemas/OAuthRegisteredAuthSetting" required: true responses: "201": content: application/json: schema: oneOf: - $ref: "#/components/schemas/ApiKeyAuthSetting" - $ref: "#/components/schemas/BasicAuthAuthSetting" - $ref: "#/components/schemas/BearerTokenAuthSetting" - $ref: "#/components/schemas/OAuthCustomAuthSetting" - $ref: "#/components/schemas/OAuthDiscoverableAuthSetting" - $ref: "#/components/schemas/OAuthMcpDiscoverableAuthSetting" - $ref: "#/components/schemas/OAuthRegisteredAuthSetting" description: Created summary: Create an AuthSetting tags: - auth-setting-controller /api/auth-settings/by-ids: post: operationId: getByIdsAuthSetting requestBody: content: application/json: schema: $ref: "#/components/schemas/GetByIdsRequest" required: true responses: "200": content: application/json: schema: type: array items: oneOf: - $ref: "#/components/schemas/ApiKeyAuthSetting" - $ref: "#/components/schemas/BasicAuthAuthSetting" - $ref: "#/components/schemas/BearerTokenAuthSetting" - $ref: "#/components/schemas/OAuthCustomAuthSetting" - $ref: "#/components/schemas/OAuthDiscoverableAuthSetting" - $ref: "#/components/schemas/OAuthMcpDiscoverableAuthSetting" - $ref: "#/components/schemas/OAuthRegisteredAuthSetting" description: OK tags: - auth-setting-controller /api/auth-settings/{id}: delete: operationId: deleteAuthSetting parameters: - in: path name: id required: true schema: type: string format: uuid responses: "204": description: No Content tags: - auth-setting-controller get: operationId: getByIdAuthSetting parameters: - in: path name: id required: true schema: type: string format: uuid responses: "200": content: application/json: schema: oneOf: - $ref: "#/components/schemas/ApiKeyAuthSetting" - $ref: "#/components/schemas/BasicAuthAuthSetting" - $ref: "#/components/schemas/BearerTokenAuthSetting" - $ref: "#/components/schemas/OAuthCustomAuthSetting" - $ref: "#/components/schemas/OAuthDiscoverableAuthSetting" - $ref: "#/components/schemas/OAuthMcpDiscoverableAuthSetting" - $ref: "#/components/schemas/OAuthRegisteredAuthSetting" description: OK tags: - auth-setting-controller put: operationId: updateAuthSetting parameters: - in: path name: id required: true schema: type: string format: uuid requestBody: content: application/json: schema: oneOf: - $ref: "#/components/schemas/ApiKeyAuthSetting" - $ref: "#/components/schemas/BasicAuthAuthSetting" - $ref: "#/components/schemas/BearerTokenAuthSetting" - $ref: "#/components/schemas/OAuthCustomAuthSetting" - $ref: "#/components/schemas/OAuthDiscoverableAuthSetting" - $ref: "#/components/schemas/OAuthMcpDiscoverableAuthSetting" - $ref: "#/components/schemas/OAuthRegisteredAuthSetting" required: true responses: "200": content: application/json: schema: oneOf: - $ref: "#/components/schemas/ApiKeyAuthSetting" - $ref: "#/components/schemas/BasicAuthAuthSetting" - $ref: "#/components/schemas/BearerTokenAuthSetting" - $ref: "#/components/schemas/OAuthCustomAuthSetting" - $ref: "#/components/schemas/OAuthDiscoverableAuthSetting" - $ref: "#/components/schemas/OAuthMcpDiscoverableAuthSetting" - $ref: "#/components/schemas/OAuthRegisteredAuthSetting" description: OK tags: - auth-setting-controller /api/case-events/by-ids: post: operationId: getByIdsCaseEventRest requestBody: content: application/json: schema: type: array items: type: string format: uuid required: true responses: "200": content: application/json: schema: type: array items: oneOf: - $ref: "#/components/schemas/AgentFinishedEvent" - $ref: "#/components/schemas/AgentRunningEvent" - $ref: "#/components/schemas/AgentSelectedEvent" - $ref: "#/components/schemas/AnswerEvent" - $ref: "#/components/schemas/CaseStatusEvent" - $ref: "#/components/schemas/CaseUpdatedEvent" - $ref: "#/components/schemas/ConfirmationResolvedEvent" - $ref: "#/components/schemas/ErrorEvent" - $ref: "#/components/schemas/IntentionGeneratedEvent" - $ref: "#/components/schemas/MessageEvent" - $ref: "#/components/schemas/PendingConfirmationEvent" - $ref: "#/components/schemas/QuestionEvent" - $ref: "#/components/schemas/SubCaseFinishedEvent" - $ref: "#/components/schemas/SubCaseStartedEvent" - $ref: "#/components/schemas/TextChunkEvent" - $ref: "#/components/schemas/ThinkingEvent" - $ref: "#/components/schemas/ToolRequestEvent" - $ref: "#/components/schemas/ToolResponseEvent" - $ref: "#/components/schemas/ToolSelectedEvent" - $ref: "#/components/schemas/WarnEvent" description: OK tags: - case-event-rest-controller /api/case-events/by-parentId/{caseId}: get: operationId: listByCaseCaseEventRest parameters: - in: path name: caseId required: true schema: type: string format: uuid responses: "200": content: application/json: schema: type: array items: oneOf: - $ref: "#/components/schemas/AgentFinishedEvent" - $ref: "#/components/schemas/AgentRunningEvent" - $ref: "#/components/schemas/AgentSelectedEvent" - $ref: "#/components/schemas/AnswerEvent" - $ref: "#/components/schemas/CaseStatusEvent" - $ref: "#/components/schemas/CaseUpdatedEvent" - $ref: "#/components/schemas/ConfirmationResolvedEvent" - $ref: "#/components/schemas/ErrorEvent" - $ref: "#/components/schemas/IntentionGeneratedEvent" - $ref: "#/components/schemas/MessageEvent" - $ref: "#/components/schemas/PendingConfirmationEvent" - $ref: "#/components/schemas/QuestionEvent" - $ref: "#/components/schemas/SubCaseFinishedEvent" - $ref: "#/components/schemas/SubCaseStartedEvent" - $ref: "#/components/schemas/TextChunkEvent" - $ref: "#/components/schemas/ThinkingEvent" - $ref: "#/components/schemas/ToolRequestEvent" - $ref: "#/components/schemas/ToolResponseEvent" - $ref: "#/components/schemas/ToolSelectedEvent" - $ref: "#/components/schemas/WarnEvent" description: OK tags: - case-event-rest-controller /api/case-events/{id}: get: operationId: getByIdCaseEventRest parameters: - in: path name: id required: true schema: type: string format: uuid responses: "200": content: application/json: schema: oneOf: - $ref: "#/components/schemas/AgentFinishedEvent" - $ref: "#/components/schemas/AgentRunningEvent" - $ref: "#/components/schemas/AgentSelectedEvent" - $ref: "#/components/schemas/AnswerEvent" - $ref: "#/components/schemas/CaseStatusEvent" - $ref: "#/components/schemas/CaseUpdatedEvent" - $ref: "#/components/schemas/ConfirmationResolvedEvent" - $ref: "#/components/schemas/ErrorEvent" - $ref: "#/components/schemas/IntentionGeneratedEvent" - $ref: "#/components/schemas/MessageEvent" - $ref: "#/components/schemas/PendingConfirmationEvent" - $ref: "#/components/schemas/QuestionEvent" - $ref: "#/components/schemas/SubCaseFinishedEvent" - $ref: "#/components/schemas/SubCaseStartedEvent" - $ref: "#/components/schemas/TextChunkEvent" - $ref: "#/components/schemas/ThinkingEvent" - $ref: "#/components/schemas/ToolRequestEvent" - $ref: "#/components/schemas/ToolResponseEvent" - $ref: "#/components/schemas/ToolSelectedEvent" - $ref: "#/components/schemas/WarnEvent" description: OK tags: - case-event-rest-controller /api/cases: post: operationId: createCase requestBody: content: application/json: schema: $ref: "#/components/schemas/Case" required: true responses: "201": content: application/json: schema: $ref: "#/components/schemas/Case" description: Created tags: - case-controller /api/cases/by-ids: post: operationId: getByIdsCase requestBody: content: application/json: schema: $ref: "#/components/schemas/GetByIdsRequest" required: true responses: "200": content: application/json: schema: type: array items: $ref: "#/components/schemas/Case" description: OK tags: - case-controller /api/cases/by-parentId/{parentId}: get: description: "GET /api/cases/by-parentId/{parentId} — list all cases belonging\ \ to a namespace." operationId: listByParentCase parameters: - in: path name: parentId required: true schema: type: string format: uuid responses: "200": content: application/json: schema: type: array items: $ref: "#/components/schemas/Case" description: OK summary: List cases by namespace tags: - case-controller /api/cases/by-parentId/{parentId}/mine: get: description: "GET /api/cases/by-parentId/{parentId}/mine — list only the cases\ \ in the namespace the current user has a direct relation with. Unlike listByParent,\ \ admin transitivity is excluded: every returned case is one the caller can\ \ star." operationId: listMineByParentCase parameters: - in: path name: parentId required: true schema: type: string format: uuid responses: "200": content: application/json: schema: type: array items: $ref: "#/components/schemas/Case" description: OK summary: List my cases by namespace tags: - case-controller /api/cases/by-user/external/{externalId}: get: description: "GET /api/cases/by-user/external/{externalId} — list cases for\ \ a user identified by their IdP key." operationId: listByUserExternalIdCase parameters: - in: path name: externalId required: true schema: type: string responses: "200": content: application/json: schema: type: array items: $ref: "#/components/schemas/Case" description: OK summary: List cases by user external ID tags: - case-controller /api/cases/by-user/in-namespace: post: description: "POST /api/cases/by-user/in-namespace — list cases for a user scoped\ \ to a namespace, both identified by their external IDs." operationId: listByUserInNamespaceCase requestBody: content: application/json: schema: $ref: "#/components/schemas/ListByUserInNamespaceRequest" required: true responses: "200": content: application/json: schema: type: array items: $ref: "#/components/schemas/Case" description: OK summary: List cases by user and namespace (external IDs) tags: - case-controller /api/cases/by-user/{userId}: get: description: "GET /api/cases/by-user/{userId} — list all cases concerning a\ \ specific user." operationId: listByUserCase parameters: - in: path name: userId required: true schema: type: string format: uuid responses: "200": content: application/json: schema: type: array items: $ref: "#/components/schemas/Case" description: OK summary: List cases by user tags: - case-controller /api/cases/unread-count: get: description: GET /api/cases/unread-count?namespaceId= — number of unread cases in the namespace for the current user. A case is unread when no readAt relation exists or the most recent event timestamp is after the user's readAt. operationId: countUnreadCase parameters: - in: query name: namespaceId required: true schema: type: string format: uuid responses: "200": content: application/json: schema: $ref: "#/components/schemas/UnreadCountResponse" description: OK summary: Count unread cases tags: - case-controller /api/cases/{caseId}/events: get: description: Every SSE frame uses the stable event name 'case-event'. Its JSON CaseEvent payload carries the subtype in its 'type' discriminant. includePreviousEvents defaults to true. operationId: streamEventsCaseEventSse parameters: - in: path name: caseId required: true schema: type: string format: uuid - in: query name: includePreviousEvents required: false schema: type: boolean default: true responses: "200": content: text/event-stream: {} description: SSE stream — every event is named 'case-event' and carries a JSON-serialized CaseEvent subtype with a 'type' discriminant. summary: Stream case events via SSE tags: - sse /api/cases/{caseId}/files: delete: description: "DELETE /api/cases/{caseId}/files — delete a file from the case-private\ \ exchange scope." operationId: deleteCaseFileExchange parameters: - in: path name: caseId required: true schema: type: string format: uuid - in: query name: path required: true schema: type: string responses: "200": content: application/json: schema: $ref: "#/components/schemas/ExchangeDeleteResponse" description: OK summary: Delete case exchange file tags: - exchange-controller post: operationId: uploadCaseFileExchange parameters: - in: path name: caseId required: true schema: type: string format: uuid requestBody: content: multipart/form-data: schema: type: object properties: file: type: string format: binary required: - file responses: "200": content: application/json: schema: $ref: "#/components/schemas/ExchangeFileEntry" description: OK tags: - exchange-controller /api/cases/{caseId}/files/content: get: description: "GET /api/cases/{caseId}/files/content — read the UTF-8 text content\ \ of a case exchange file." operationId: getCaseFileContentExchange parameters: - in: path name: caseId required: true schema: type: string format: uuid - in: query name: path required: true schema: type: string responses: "200": content: application/json: schema: $ref: "#/components/schemas/ExchangeFileContent" description: OK summary: Read case exchange file content tags: - exchange-controller /api/cases/{caseId}/files/directory: get: operationId: browseCaseFilesExchange parameters: - in: path name: caseId required: true schema: type: string format: uuid - in: query name: path required: false schema: type: string default: "" - in: query name: page required: false schema: type: integer format: int32 default: 0 - in: query name: size required: false schema: type: integer format: int32 default: 200 responses: "200": content: application/json: schema: $ref: "#/components/schemas/ExchangeDirectoryListing" description: OK tags: - exchange-controller /api/cases/{caseId}/files/download: get: operationId: downloadCaseFileExchange parameters: - in: path name: caseId required: true schema: type: string format: uuid - in: query name: path required: true schema: type: string responses: "200": content: application/octet-stream: schema: type: string format: byte description: OK tags: - exchange-controller /api/cases/{caseId}/files/manifest: get: description: "GET /api/cases/{caseId}/files/manifest — list all files in the\ \ case-private exchange scope." operationId: getCaseFilesManifestExchange parameters: - in: path name: caseId required: true schema: type: string format: uuid responses: "200": content: application/json: schema: $ref: "#/components/schemas/ExchangeManifest" description: OK summary: List case exchange files tags: - exchange-controller /api/cases/{caseId}/interrupt: post: description: "POST /api/cases/{caseId}/interrupt — interrupt the current agent\ \ turn gracefully." operationId: interruptCase parameters: - in: path name: caseId required: true schema: type: string format: uuid responses: "200": description: OK summary: Interrupt a case tags: - case-controller /api/cases/{caseId}/kill: post: description: "POST /api/cases/{caseId}/kill — permanently terminate a case." operationId: killCase parameters: - in: path name: caseId required: true schema: type: string format: uuid responses: "200": description: OK summary: Kill a case tags: - case-controller /api/cases/{caseId}/messages: post: description: "POST /api/cases/{caseId}/messages — add a user message to a running\ \ case." operationId: addMessageCase parameters: - in: path name: caseId required: true schema: type: string format: uuid requestBody: content: application/json: schema: $ref: "#/components/schemas/AddMessageRequest" required: true responses: "200": description: OK summary: Add a message tags: - case-controller /api/cases/{caseId}/read: post: description: "POST /api/cases/{caseId}/read — record that the current user has\ \ read this case. Sets readAt on the User↔Case relation. Idempotent. Returns\ \ 200 with the updated Case DTO." operationId: markCaseRead parameters: - in: path name: caseId required: true schema: type: string format: uuid responses: "200": content: application/json: schema: $ref: "#/components/schemas/Case" description: OK summary: Mark case as read tags: - case-controller /api/cases/{caseId}/reopen: post: description: "POST /api/cases/{caseId}/reopen — reopen a terminated case by\ \ transitioning it back to IDLE. Only cases in a terminal status (KILLED or\ \ ERROR) can be reopened. Returns the updated Case DTO." operationId: reopenCase parameters: - in: path name: caseId required: true schema: type: string format: uuid responses: "200": content: application/json: schema: $ref: "#/components/schemas/Case" description: OK summary: Reopen a case tags: - case-controller /api/cases/{caseId}/run-cost: get: operationId: getRunCost parameters: - in: path name: caseId required: true schema: type: string format: uuid responses: "200": content: application/json: schema: $ref: "#/components/schemas/RunCostDto" description: OK tags: - run-cost-controller /api/cases/{caseId}/run-cost/continue: post: operationId: continueCostRunRunCost parameters: - in: path name: caseId required: true schema: type: string format: uuid requestBody: content: application/json: schema: $ref: "#/components/schemas/ContinueCostRequest" required: true responses: "200": content: application/json: schema: $ref: "#/components/schemas/RunCostDto" description: OK tags: - run-cost-controller /api/cases/{caseId}/run-cost/stop: post: operationId: stopCostRunRunCost parameters: - in: path name: caseId required: true schema: type: string format: uuid responses: "204": description: No Content tags: - run-cost-controller /api/cases/{caseId}/workspace: get: operationId: getCaseWorkspace parameters: - in: path name: caseId required: true schema: type: string format: uuid responses: "200": content: application/json: schema: $ref: "#/components/schemas/CaseWorkspaceView" description: OK tags: - case-workspace-controller /api/cases/{caseId}/workspace/changes: get: operationId: changesCaseWorkspace parameters: - in: path name: caseId required: true schema: type: string format: uuid responses: "200": content: application/json: schema: $ref: "#/components/schemas/ExchangeEnvironment" description: OK tags: - case-workspace-controller /api/cases/{caseId}/workspace/diff: get: operationId: diffCaseWorkspace parameters: - in: path name: caseId required: true schema: type: string format: uuid - in: query name: path required: true schema: type: string responses: "200": content: application/json: schema: $ref: "#/components/schemas/ExchangeFileDiff" description: OK tags: - case-workspace-controller /api/cases/{caseId}/workspace/refresh: post: operationId: refreshCaseWorkspace parameters: - in: path name: caseId required: true schema: type: string format: uuid responses: "200": content: application/json: schema: $ref: "#/components/schemas/CaseWorkspaceView" description: OK tags: - case-workspace-controller /api/cases/{caseId}/workspace/retry: post: operationId: retryCaseWorkspace parameters: - in: path name: caseId required: true schema: type: string format: uuid requestBody: content: application/json: schema: $ref: "#/components/schemas/WorkspaceRetryRequest" responses: "200": content: application/json: schema: $ref: "#/components/schemas/CaseWorkspaceView" description: OK tags: - case-workspace-controller /api/cases/{entityId}/members: get: description: Returns all users holding a direct ADMIN or MEMBER relation on the entity. operationId: getMembersCaseMembership parameters: - in: path name: entityId required: true schema: type: string format: uuid responses: "200": content: application/json: schema: type: array items: $ref: "#/components/schemas/MemberItem" description: OK summary: List members tags: - case-membership-controller patch: description: "Delta update: add, change role, or revoke users. Users absent\ \ from the list are untouched." operationId: updateMembersCaseMembership parameters: - in: path name: entityId required: true schema: type: string format: uuid requestBody: content: application/json: schema: type: array items: $ref: "#/components/schemas/UserMembershipRole" required: true responses: "200": content: application/json: schema: type: array items: $ref: "#/components/schemas/MemberItem" description: OK summary: Update members tags: - case-membership-controller /api/cases/{id}: delete: operationId: deleteCase parameters: - in: path name: id required: true schema: type: string format: uuid responses: "204": description: No Content tags: - case-controller get: operationId: getByIdCase parameters: - in: path name: id required: true schema: type: string format: uuid responses: "200": content: application/json: schema: $ref: "#/components/schemas/Case" description: OK tags: - case-controller put: operationId: updateCase parameters: - in: path name: id required: true schema: type: string format: uuid requestBody: content: application/json: schema: $ref: "#/components/schemas/Case" required: true responses: "200": content: application/json: schema: $ref: "#/components/schemas/Case" description: OK tags: - case-controller /api/cases/{id}/star: delete: description: "DELETE /api/cases/{id}/star — remove the case from the current\ \ user's favorites. Requires a direct user↔case relation, otherwise the call\ \ is rejected." operationId: unstarCase parameters: - in: path name: id required: true schema: type: string format: uuid responses: "204": description: No Content summary: Unstar a case tags: - case-controller put: description: "PUT /api/cases/{id}/star — mark the case as favorite for the current\ \ user. Requires a direct user↔case relation, otherwise the call is rejected." operationId: starCase parameters: - in: path name: id required: true schema: type: string format: uuid responses: "200": description: OK summary: Star a case tags: - case-controller /api/feedbacks: post: operationId: createFeedback requestBody: content: application/json: schema: $ref: "#/components/schemas/FeedbackInput" required: true responses: "201": content: application/json: schema: $ref: "#/components/schemas/Feedback" description: Created tags: - feedback-controller /api/feedbacks/by-case-event/{caseEventId}: get: operationId: listByCaseEventFeedback parameters: - in: path name: caseEventId required: true schema: type: string format: uuid responses: "200": content: application/json: schema: type: array items: $ref: "#/components/schemas/Feedback" description: OK tags: - feedback-controller /api/feedbacks/by-parentId/{caseId}: get: operationId: listByCaseFeedback parameters: - in: path name: caseId required: true schema: type: string format: uuid responses: "200": content: application/json: schema: type: array items: $ref: "#/components/schemas/Feedback" description: OK tags: - feedback-controller /api/git-workspaces-configuration: get: operationId: getGitWorkspacesConfiguration responses: "200": content: application/json: schema: $ref: "#/components/schemas/GitWorkspacesConfiguration" description: OK tags: - git-workspaces-configuration-controller /api/integration-configs: get: description: |- Scope is inferred from the query params : | query | mode | required permission | |----------------------------------|------------------|------------------------------------------------| | (no params) | all caller's | authenticated | | `?namespaceId=none` (no userId) | platform | authenticated | | `?namespaceId=` | NS-shared | READ on the namespace (empty list if missing) | | `?namespaceId=&userId=me` | user × namespace | authenticated | | `?namespaceId=none&userId=me` | user-global | authenticated | | `?userId=me` (no namespace) | all caller's | authenticated | `userId` accepts ONLY the literal sentinel `me` — a UUID returns 400. `namespaceId=none` is the sentinel for `namespaceId IS NULL`. operationId: listIntegrationConfig parameters: - in: query name: namespaceId required: false schema: type: string - in: query name: userId required: false schema: type: string responses: "200": content: application/json: schema: type: array items: $ref: "#/components/schemas/IntegrationConfig" description: OK summary: List IntegrationConfigs by scope tags: - integration-config-controller post: description: |- Scope is inferred implicitly from the body's `(namespaceId, userId)` pair : | body.namespaceId | body.userId | scope | required permission | |------------------|--------------------|---------------|--------------------------------------| | null | null | platform | Super Admin only | | present | null | NS-shared | WRITE on the namespace | | null | | user-global | authenticated only | | present | | user×namespace| READ on the namespace | `body.userId` (when supplied) MUST equal the authenticated user's id. A `namespaceId` that does not exist returns 404. Integration types listed in `agentos.integrations.user-scope-denied-types` (default `HTTP_API`, `MCP_STDIO`, `MCP_HTTP`, `GIT`) cannot be created in either user scope (403). operationId: createIntegrationConfig requestBody: content: application/json: schema: $ref: "#/components/schemas/IntegrationConfig" required: true responses: "201": content: application/json: schema: $ref: "#/components/schemas/IntegrationConfig" description: Created summary: Create an IntegrationConfig tags: - integration-config-controller /api/integration-configs/by-ids: post: operationId: getByIdsIntegrationConfig requestBody: content: application/json: schema: $ref: "#/components/schemas/GetByIdsRequest" required: true responses: "200": content: application/json: schema: type: array items: $ref: "#/components/schemas/IntegrationConfig" description: OK tags: - integration-config-controller /api/integration-configs/{id}: delete: operationId: deleteIntegrationConfig parameters: - in: path name: id required: true schema: type: string format: uuid responses: "204": description: No Content tags: - integration-config-controller get: operationId: getByIdIntegrationConfig parameters: - in: path name: id required: true schema: type: string format: uuid responses: "200": content: application/json: schema: $ref: "#/components/schemas/IntegrationConfig" description: OK tags: - integration-config-controller put: operationId: updateIntegrationConfig parameters: - in: path name: id required: true schema: type: string format: uuid requestBody: content: application/json: schema: $ref: "#/components/schemas/IntegrationConfig" required: true responses: "200": content: application/json: schema: $ref: "#/components/schemas/IntegrationConfig" description: OK tags: - integration-config-controller /api/integration-configs/{id}/export: get: description: "Returns the integration config as a downloadable YAML file, ready\ \ to be placed in the namespace `integrations/` directory under `configPath`.\ \ Only the fields meaningful in a filesystem config are included: `name`,\ \ `integrationType`, `description`, `parameters`. Scope metadata (`id`, `namespaceId`,\ \ `userId`) is intentionally omitted. **parameters are exported in clear text**\ \ — requires WRITE permission on the entity." operationId: exportIntegrationConfig parameters: - in: path name: id required: true schema: type: string format: uuid responses: "200": content: application/json: schema: type: string application/yaml: schema: type: string description: OK summary: Export an IntegrationConfig as a YAML file tags: - integration-config-controller /api/integration-types: get: operationId: listTypesIntegrationType responses: "200": content: application/json: schema: type: array items: $ref: "#/components/schemas/IntegrationTypeDescriptor" description: OK tags: - integration-type-controller /api/integration-types/{type}: get: operationId: getTypeIntegrationType parameters: - in: path name: type required: true schema: type: string responses: "200": content: application/json: schema: $ref: "#/components/schemas/IntegrationTypeDescriptor" description: OK tags: - integration-type-controller /api/namespaces: get: operationId: listAllNamespace responses: "200": content: application/json: schema: type: array items: $ref: "#/components/schemas/NamespaceListItem" description: OK tags: - namespace-controller post: operationId: createNamespace requestBody: content: application/json: schema: $ref: "#/components/schemas/Namespace" required: true responses: "201": content: application/json: schema: $ref: "#/components/schemas/Namespace" description: Created tags: - namespace-controller /api/namespaces/by-external-ids: post: operationId: listByExternalIdsNamespace requestBody: content: application/json: schema: type: array items: type: string required: true responses: "200": content: application/json: schema: type: array items: $ref: "#/components/schemas/Namespace" description: OK tags: - namespace-controller /api/namespaces/by-ids: post: operationId: getByIdsNamespace requestBody: content: application/json: schema: $ref: "#/components/schemas/GetByIdsRequest" required: true responses: "200": content: application/json: schema: type: array items: $ref: "#/components/schemas/Namespace" description: OK tags: - namespace-controller /api/namespaces/update-roles-by-external-id: post: operationId: updateRolesByExternalId requestBody: content: application/json: schema: $ref: "#/components/schemas/SyncUserRolesRequest" required: true responses: "200": content: application/json: schema: $ref: "#/components/schemas/SyncUserRolesRequest" description: OK tags: - namespace-permission-endpoints /api/namespaces/{entityId}/members: get: description: Returns all users holding a direct ADMIN or MEMBER relation on the entity. operationId: getMembersNamespaceMembership parameters: - in: path name: entityId required: true schema: type: string format: uuid responses: "200": content: application/json: schema: type: array items: $ref: "#/components/schemas/MemberItem" description: OK summary: List members tags: - namespace-membership-controller patch: description: "Delta update: add, change role, or revoke users. Users absent\ \ from the list are untouched." operationId: updateMembersNamespaceMembership parameters: - in: path name: entityId required: true schema: type: string format: uuid requestBody: content: application/json: schema: type: array items: $ref: "#/components/schemas/UserMembershipRole" required: true responses: "200": content: application/json: schema: type: array items: $ref: "#/components/schemas/MemberItem" description: OK summary: Update members tags: - namespace-membership-controller /api/namespaces/{id}: delete: operationId: deleteNamespace parameters: - in: path name: id required: true schema: type: string format: uuid responses: "204": description: No Content tags: - namespace-controller get: operationId: getByIdNamespace parameters: - in: path name: id required: true schema: type: string format: uuid responses: "200": content: application/json: schema: $ref: "#/components/schemas/Namespace" description: OK tags: - namespace-controller put: operationId: updateNamespace parameters: - in: path name: id required: true schema: type: string format: uuid requestBody: content: application/json: schema: $ref: "#/components/schemas/Namespace" required: true responses: "200": content: application/json: schema: $ref: "#/components/schemas/Namespace" description: OK tags: - namespace-controller /api/namespaces/{namespaceId}/admins/{targetUserId}: delete: operationId: revokeAdmin parameters: - in: path name: namespaceId required: true schema: type: string format: uuid - in: path name: targetUserId required: true schema: type: string format: uuid responses: "204": description: No Content tags: - namespace-permission-endpoints put: operationId: grantAdmin parameters: - in: path name: namespaceId required: true schema: type: string format: uuid - in: path name: targetUserId required: true schema: type: string format: uuid responses: "200": description: OK tags: - namespace-permission-endpoints /api/namespaces/{namespaceId}/deploy-agents: post: operationId: deployAgentsNamespace parameters: - in: path name: namespaceId required: true schema: type: string format: uuid requestBody: content: application/json: schema: $ref: "#/components/schemas/NamespaceAgentDeployRequest" required: true responses: "204": description: No Content tags: - namespace-controller /api/namespaces/{namespaceId}/files: delete: description: "DELETE /api/namespaces/{namespaceId}/files — delete a file from\ \ the namespace-shared exchange scope." operationId: deleteNamespaceFileExchange parameters: - in: path name: namespaceId required: true schema: type: string format: uuid - in: query name: path required: true schema: type: string responses: "200": content: application/json: schema: $ref: "#/components/schemas/ExchangeDeleteResponse" description: OK summary: Delete namespace exchange file tags: - exchange-controller post: operationId: uploadNamespaceFileExchange parameters: - in: path name: namespaceId required: true schema: type: string format: uuid requestBody: content: multipart/form-data: schema: type: object properties: file: type: string format: binary required: - file responses: "200": content: application/json: schema: $ref: "#/components/schemas/ExchangeFileEntry" description: OK tags: - exchange-controller /api/namespaces/{namespaceId}/files/content: get: description: "GET /api/namespaces/{namespaceId}/files/content — read the UTF-8\ \ text content of a namespace exchange file." operationId: getNamespaceFileContentExchange parameters: - in: path name: namespaceId required: true schema: type: string format: uuid - in: query name: path required: true schema: type: string responses: "200": content: application/json: schema: $ref: "#/components/schemas/ExchangeFileContent" description: OK summary: Read namespace exchange file content tags: - exchange-controller /api/namespaces/{namespaceId}/files/directory: get: operationId: browseNamespaceFilesExchange parameters: - in: path name: namespaceId required: true schema: type: string format: uuid - in: query name: path required: false schema: type: string default: "" - in: query name: page required: false schema: type: integer format: int32 default: 0 - in: query name: size required: false schema: type: integer format: int32 default: 200 responses: "200": content: application/json: schema: $ref: "#/components/schemas/ExchangeDirectoryListing" description: OK tags: - exchange-controller /api/namespaces/{namespaceId}/files/download: get: operationId: downloadNamespaceFileExchange parameters: - in: path name: namespaceId required: true schema: type: string format: uuid - in: query name: path required: true schema: type: string responses: "200": content: application/octet-stream: schema: type: string format: byte description: OK tags: - exchange-controller /api/namespaces/{namespaceId}/files/manifest: get: description: "GET /api/namespaces/{namespaceId}/files/manifest — list all files\ \ in the namespace-shared exchange scope." operationId: getNamespaceFilesManifestExchange parameters: - in: path name: namespaceId required: true schema: type: string format: uuid responses: "200": content: application/json: schema: $ref: "#/components/schemas/ExchangeManifest" description: OK summary: List namespace exchange files tags: - exchange-controller /api/namespaces/{namespaceId}/git: delete: operationId: removeAssociationNamespaceGit parameters: - in: path name: namespaceId required: true schema: type: string format: uuid responses: "200": content: application/json: schema: $ref: "#/components/schemas/NamespaceGit" description: OK tags: - namespace-git-controller get: operationId: getAssociationNamespaceGit parameters: - in: path name: namespaceId required: true schema: type: string format: uuid responses: "200": content: application/json: schema: $ref: "#/components/schemas/NamespaceGit" description: OK tags: - namespace-git-controller put: operationId: setAssociationNamespaceGit parameters: - in: path name: namespaceId required: true schema: type: string format: uuid requestBody: content: application/json: schema: $ref: "#/components/schemas/NamespaceGitRequest" required: true responses: "200": content: application/json: schema: $ref: "#/components/schemas/NamespaceGit" description: OK tags: - namespace-git-controller /api/namespaces/{namespaceId}/members/{targetUserId}: delete: operationId: revokeMember parameters: - in: path name: namespaceId required: true schema: type: string format: uuid - in: path name: targetUserId required: true schema: type: string format: uuid responses: "204": description: No Content tags: - namespace-permission-endpoints put: operationId: grantMember parameters: - in: path name: namespaceId required: true schema: type: string format: uuid - in: path name: targetUserId required: true schema: type: string format: uuid responses: "200": description: OK tags: - namespace-permission-endpoints /api/namespaces/{namespaceId}/undeploy-agents: post: operationId: undeployAgentsNamespace parameters: - in: path name: namespaceId required: true schema: type: string format: uuid requestBody: content: application/json: schema: $ref: "#/components/schemas/NamespaceAgentDeployRequest" required: true responses: "204": description: No Content tags: - namespace-controller /api/namespaces/{namespaceId}/workspaces: get: operationId: listCaseWorkspace parameters: - in: path name: namespaceId required: true schema: type: string format: uuid responses: "200": content: application/json: schema: type: array items: $ref: "#/components/schemas/CaseWorkspaceView" description: OK tags: - case-workspace-controller /api/oauth/callback: post: description: "Called by the frontend popup after the OAuth provider redirects\ \ back with the authorization code. Resolves the pending server-side flow\ \ identified by `state`. Returns 200 when resolved, 400 when the state is\ \ unknown or belongs to a different user." operationId: handleCallbackOAuthCallback requestBody: content: application/json: schema: $ref: "#/components/schemas/OAuthCallbackRequest" required: true responses: "200": description: Flow resolved successfully "400": description: "Unknown, already-consumed, or mismatched state" summary: Receive OAuth authorization code callback tags: - o-auth-callback-controller /api/plugins: get: operationId: getAllPlugins responses: "200": content: '*/*': schema: type: array items: $ref: "#/components/schemas/PluginInfo" description: OK tags: - plugin-controller /api/plugins/debug: get: operationId: debugAllPlugins responses: "200": content: '*/*': schema: $ref: "#/components/schemas/PluginActionResponse" description: OK tags: - plugin-controller /api/plugins/reload-agents: post: operationId: reloadAllAgentsPlugin responses: "200": content: '*/*': schema: $ref: "#/components/schemas/PluginActionResponse" description: OK tags: - plugin-controller /api/plugins/upload: post: operationId: uploadPlugin requestBody: content: multipart/form-data: schema: type: object required: - file responses: "200": content: '*/*': schema: $ref: "#/components/schemas/PluginUploadResponse" description: OK tags: - plugin-controller /api/plugins/{pluginId}: delete: operationId: unloadPlugin parameters: - in: path name: pluginId required: true schema: type: string responses: "200": content: '*/*': schema: $ref: "#/components/schemas/PluginActionResponse" description: OK tags: - plugin-controller get: operationId: getPlugin parameters: - in: path name: pluginId required: true schema: type: string responses: "200": content: '*/*': schema: $ref: "#/components/schemas/PluginInfo" description: OK tags: - plugin-controller /api/plugins/{pluginId}/debug: get: operationId: debugPlugin parameters: - in: path name: pluginId required: true schema: type: string responses: "200": content: '*/*': schema: $ref: "#/components/schemas/PluginActionResponse" description: OK tags: - plugin-controller /api/plugins/{pluginId}/reload: post: operationId: reloadPlugin parameters: - in: path name: pluginId required: true schema: type: string responses: "200": content: '*/*': schema: $ref: "#/components/schemas/PluginActionResponse" description: OK tags: - plugin-controller /api/plugins/{pluginId}/start: post: operationId: startPlugin parameters: - in: path name: pluginId required: true schema: type: string responses: "200": content: '*/*': schema: $ref: "#/components/schemas/PluginActionResponse" description: OK tags: - plugin-controller /api/plugins/{pluginId}/stop: post: operationId: stopPlugin parameters: - in: path name: pluginId required: true schema: type: string responses: "200": content: '*/*': schema: $ref: "#/components/schemas/PluginActionResponse" description: OK tags: - plugin-controller /api/prompts: post: description: |- Scope is inferred from `(body.namespaceId, body.userId)`: | body.namespaceId | body.userId | scope | required permission | |------------------|------------------|-----------------|----------------------------| | null | null | platform | Super Admin only | | present | null | namespace | WRITE on the namespace | | null | | user-global | authenticated only | | present | | user×namespace | READ on the namespace | `body.userId` must equal the authenticated user's id when supplied. A `namespaceId` that does not exist returns 404. operationId: createPrompt requestBody: content: application/json: schema: $ref: "#/components/schemas/Prompt" required: true responses: "201": content: application/json: schema: $ref: "#/components/schemas/Prompt" description: Created summary: Create a Prompt tags: - prompt-controller /api/prompts/by-ids: post: operationId: getByIdsPrompt requestBody: content: application/json: schema: $ref: "#/components/schemas/GetByIdsRequest" required: true responses: "200": content: application/json: schema: type: array items: $ref: "#/components/schemas/Prompt" description: OK tags: - prompt-controller /api/prompts/effective: post: description: "Returns the resolved set of prompts accessible in the given namespace\ \ context, scoped to the authenticated caller. Merges platform, namespace-shared,\ \ user-global and user×namespace layers by name, highest-priority layer wins.\ \ Optional `agentConfigId` filter applied post-resolution. Requires READ on\ \ the namespace." operationId: resolveEffectivePrompt requestBody: content: application/json: schema: $ref: "#/components/schemas/PromptEffectiveRequest" required: true responses: "200": content: application/json: schema: type: array items: $ref: "#/components/schemas/Prompt" description: OK summary: Effective prompts for the authenticated user in a namespace tags: - prompt-controller /api/prompts/search: post: description: |- Returns prompts declared at a single exact scope level — no merge, no inheritance. The `(namespaceId?, userId?)` combination in the body determines the level: | namespaceId | userId | level | required permission | |-------------|----------|------------------|----------------------------| | null | null | platform | authenticated | | non-null | null | namespace-shared | READ on namespace | | null | non-null | user-global | authenticated | | non-null | non-null | user×namespace | READ on namespace | Optional `agentConfigIds` filter restricts results to prompts linked to those agents. operationId: searchPrompt requestBody: content: application/json: schema: $ref: "#/components/schemas/PromptSearchRequest" required: true responses: "200": content: application/json: schema: type: array items: $ref: "#/components/schemas/Prompt" description: OK summary: List Prompts at an exact scope level tags: - prompt-controller /api/prompts/translations/{languageCode}: post: description: "Translates each prompt in `ids` into `languageCode` using the\ \ same caching and LLM-fallback semantics as `POST /{id}/translations/{languageCode}`.\ \ The response list preserves the order of the input `ids`. Prompts for which\ \ the caller lacks READ permission are silently omitted from the result. For\ \ namespace-scoped prompts the namespace is inferred from each prompt itself.\ \ For platform-scoped prompts (namespaceId IS NULL on the prompt), at least\ \ one of `namespaceId` / `namespaceExternalId` is required in the request\ \ body." operationId: translateBatchPrompt parameters: - in: path name: languageCode required: true schema: type: string requestBody: content: application/json: schema: $ref: "#/components/schemas/PromptBatchTranslateRequest" required: true responses: "200": content: application/json: schema: type: array items: $ref: "#/components/schemas/PromptBatchTranslation" description: OK summary: Batch-translate a list of prompts into a target language tags: - prompt-controller /api/prompts/{id}: delete: operationId: deletePrompt parameters: - in: path name: id required: true schema: type: string format: uuid responses: "204": description: No Content tags: - prompt-controller get: operationId: getByIdPrompt parameters: - in: path name: id required: true schema: type: string format: uuid responses: "200": content: application/json: schema: $ref: "#/components/schemas/Prompt" description: OK tags: - prompt-controller put: operationId: updatePrompt parameters: - in: path name: id required: true schema: type: string format: uuid requestBody: content: application/json: schema: $ref: "#/components/schemas/Prompt" required: true responses: "200": content: application/json: schema: $ref: "#/components/schemas/Prompt" description: OK tags: - prompt-controller /api/prompts/{id}/export: get: description: "Returns the prompt as a downloadable YAML file, ready to be placed\ \ in the namespace `prompts/` directory under `configPath`. Only the fields\ \ meaningful in a filesystem prompt are included: `name`, `description`, `content`,\ \ `parameters`. Scope metadata (`id`, `namespaceId`, `userId`, `externalMetadata`)\ \ and audit fields are intentionally omitted. **`agentConfigId` is also omitted\ \ and, if set, this is a real loss of information**: `FilesystemPromptRepository`\ \ deliberately does not support linking a file-backed prompt to an AgentConfig\ \ (YAGNI — a file can only carry a name, and the need is already covered by\ \ an `@agentName` prefix in the prompt's own `content`). If the exported prompt\ \ targets an agent, add `@agentName` at the start of the content to preserve\ \ that targeting in the file." operationId: exportPrompt parameters: - in: path name: id required: true schema: type: string format: uuid responses: "200": content: application/json: schema: type: string application/yaml: schema: type: string description: OK summary: Export a Prompt as a YAML file tags: - prompt-controller /api/prompts/{id}/translations/{languageCode}: post: description: "Returns the translated content list (same indices as `content`).\ \ If the requested language matches `sourceLanguage`, returns `content` as-is.\ \ If a cached translation exists it is returned without an LLM call. Otherwise\ \ the content is translated via the namespace's AI model, persisted, and returned.\ \ For namespace-scoped prompts the namespace is inferred from the prompt itself.\ \ For platform-scoped prompts (namespaceId IS NULL on the prompt), at least\ \ one of `namespaceId` / `namespaceExternalId` is required in the request\ \ body." operationId: translatePrompt parameters: - in: path name: id required: true schema: type: string format: uuid - in: path name: languageCode required: true schema: type: string requestBody: content: application/json: schema: $ref: "#/components/schemas/PromptTranslateRequest" required: true responses: "200": content: application/json: schema: $ref: "#/components/schemas/PromptTranslation" description: OK summary: Translate prompt content into a target language tags: - prompt-controller /api/scheduled-prompts: post: operationId: createScheduledPrompt requestBody: content: application/json: schema: $ref: "#/components/schemas/ScheduledPrompt" required: true responses: "201": content: application/json: schema: $ref: "#/components/schemas/ScheduledPrompt" description: Created tags: - scheduled-prompt-controller /api/scheduled-prompts/by-ids: post: operationId: getByIdsScheduledPrompt requestBody: content: application/json: schema: $ref: "#/components/schemas/GetByIdsRequest" required: true responses: "200": content: application/json: schema: type: array items: $ref: "#/components/schemas/ScheduledPrompt" description: OK tags: - scheduled-prompt-controller /api/scheduled-prompts/effective: post: operationId: resolveEffectiveScheduledPrompt requestBody: content: application/json: schema: $ref: "#/components/schemas/ScheduledPromptEffectiveRequest" required: true responses: "200": content: application/json: schema: type: array items: $ref: "#/components/schemas/ScheduledPrompt" description: OK summary: Effective scheduled prompts for the authenticated user in a namespace tags: - scheduled-prompt-controller /api/scheduled-prompts/generate: post: description: "Returns a proposal, nothing is persisted. Every field but the\ \ description is optional: missing ones (loop agent, target agent, prompt,\ \ recurrence, planning, search tool) are decided by an LLM. The proposed scheduledPrompt\ \ is disabled and can be POSTed as is to /api/scheduled-prompts once reviewed.\ \ When no baseFlowConfiguration is given, flowConfigurationPresets (named\ \ base flow configurations) can be provided: the LLM chooses one from the\ \ description, which is then used as the base, and its name is returned as\ \ chosenPreset. Requires WRITE on the namespace." operationId: generateScheduledPrompt requestBody: content: application/json: schema: $ref: "#/components/schemas/ScheduledPromptGenerationRequest" required: true responses: "200": content: application/json: schema: $ref: "#/components/schemas/ScheduledPromptGenerationResult" description: OK summary: Propose a scheduled prompt driving a LOOP agent from a natural-language description tags: - scheduled-prompt-controller /api/scheduled-prompts/search: post: operationId: searchScheduledPrompt requestBody: content: application/json: schema: $ref: "#/components/schemas/ScheduledPromptSearchRequest" required: true responses: "200": content: application/json: schema: type: array items: $ref: "#/components/schemas/ScheduledPrompt" description: OK summary: List ScheduledPrompts at an exact scope level tags: - scheduled-prompt-controller /api/scheduled-prompts/{id}: delete: operationId: deleteScheduledPrompt parameters: - in: path name: id required: true schema: type: string format: uuid responses: "204": description: No Content tags: - scheduled-prompt-controller get: operationId: getByIdScheduledPrompt parameters: - in: path name: id required: true schema: type: string format: uuid responses: "200": content: application/json: schema: $ref: "#/components/schemas/ScheduledPrompt" description: OK tags: - scheduled-prompt-controller put: operationId: updateScheduledPrompt parameters: - in: path name: id required: true schema: type: string format: uuid requestBody: content: application/json: schema: $ref: "#/components/schemas/ScheduledPrompt" required: true responses: "200": content: application/json: schema: $ref: "#/components/schemas/ScheduledPrompt" description: OK tags: - scheduled-prompt-controller /api/scheduled-prompts/{id}/disable: patch: operationId: disableScheduledPrompt parameters: - in: path name: id required: true schema: type: string format: uuid responses: "200": content: application/json: schema: $ref: "#/components/schemas/ScheduledPrompt" description: OK summary: Disable a scheduled prompt (idempotent) tags: - scheduled-prompt-controller /api/scheduled-prompts/{id}/enable: patch: operationId: enableScheduledPrompt parameters: - in: path name: id required: true schema: type: string format: uuid responses: "200": content: application/json: schema: $ref: "#/components/schemas/ScheduledPrompt" description: OK summary: Enable a scheduled prompt (idempotent) tags: - scheduled-prompt-controller /api/skills: post: operationId: createSkill requestBody: content: application/json: schema: $ref: "#/components/schemas/Skill" required: true responses: "201": content: application/json: schema: $ref: "#/components/schemas/Skill" description: Created summary: Create a Skill tags: - skill-controller /api/skills/by-ids: post: operationId: getByIdsSkill requestBody: content: application/json: schema: $ref: "#/components/schemas/GetByIdsRequest" required: true responses: "200": content: application/json: schema: type: array items: $ref: "#/components/schemas/Skill" description: OK tags: - skill-controller /api/skills/by-parentId/{parentId}: get: operationId: listByParentSkill parameters: - in: path name: parentId required: true schema: type: string format: uuid responses: "200": content: application/json: schema: type: array items: $ref: "#/components/schemas/Skill" description: OK tags: - skill-controller /api/skills/platform: get: operationId: listPlatformSkill responses: "200": content: application/json: schema: type: array items: $ref: "#/components/schemas/Skill" description: OK tags: - skill-controller /api/skills/{id}: delete: operationId: deleteSkill parameters: - in: path name: id required: true schema: type: string format: uuid responses: "204": description: No Content summary: Delete a Skill tags: - skill-controller get: operationId: getByIdSkill parameters: - in: path name: id required: true schema: type: string format: uuid responses: "200": content: application/json: schema: $ref: "#/components/schemas/Skill" description: OK tags: - skill-controller put: operationId: updateSkill parameters: - in: path name: id required: true schema: type: string format: uuid requestBody: content: application/json: schema: $ref: "#/components/schemas/Skill" required: true responses: "200": content: application/json: schema: $ref: "#/components/schemas/Skill" description: OK summary: Update a Skill tags: - skill-controller /api/tools: get: operationId: listToolInvoke parameters: - in: query name: namespaceId required: true schema: type: string format: uuid - in: query name: userId required: false schema: type: string format: uuid responses: "200": content: application/json: schema: type: array items: $ref: "#/components/schemas/ToolSummary" description: OK tags: - tool-invoke-controller /api/tools/invoke: post: operationId: invokeToolInvoke requestBody: content: application/json: schema: $ref: "#/components/schemas/ToolInvokeRequest" required: true responses: "200": content: application/json: schema: $ref: "#/components/schemas/ToolInvokeResponse" description: OK tags: - tool-invoke-controller /api/usage-configuration: get: operationId: getUsageConfiguration responses: "200": content: application/json: schema: $ref: "#/components/schemas/UsageConfiguration" description: OK tags: - usage-configuration-controller /api/usage-records/aggregate/by-agent: get: operationId: aggregateByAgentUsageRecord parameters: - in: query name: namespaceId required: true schema: type: string format: uuid - in: query name: from required: true schema: type: string format: date-time - in: query name: to required: true schema: type: string format: date-time responses: "200": content: application/json: schema: type: array items: $ref: "#/components/schemas/UsageAggregateByKey" description: OK tags: - usage-record-controller /api/usage-records/aggregate/by-case-tree/{rootCaseId}: get: operationId: aggregateByCaseTreeUsageRecord parameters: - in: path name: rootCaseId required: true schema: type: string format: uuid responses: "200": content: application/json: schema: $ref: "#/components/schemas/UsageAggregate" description: OK tags: - usage-record-controller /api/usage-records/aggregate/by-case/{caseId}: get: operationId: aggregateByCaseIdUsageRecord parameters: - in: path name: caseId required: true schema: type: string format: uuid responses: "200": content: application/json: schema: $ref: "#/components/schemas/UsageAggregate" description: OK tags: - usage-record-controller /api/usage-records/aggregate/by-model: get: operationId: aggregateByModelUsageRecord parameters: - in: query name: namespaceId required: true schema: type: string format: uuid - in: query name: from required: true schema: type: string format: date-time - in: query name: to required: true schema: type: string format: date-time responses: "200": content: application/json: schema: type: array items: $ref: "#/components/schemas/UsageAggregateByKey" description: OK tags: - usage-record-controller /api/usage-records/aggregate/by-user: get: operationId: aggregateByUserUsageRecord parameters: - in: query name: userId required: true schema: type: string format: uuid - in: query name: namespaceId required: true schema: type: string format: uuid - in: query name: from required: true schema: type: string format: date-time - in: query name: to required: true schema: type: string format: date-time responses: "200": content: application/json: schema: $ref: "#/components/schemas/UsageAggregate" description: OK tags: - usage-record-controller /api/usage-records/by-case/{caseId}: get: operationId: listByCaseIdUsageRecord parameters: - in: path name: caseId required: true schema: type: string format: uuid responses: "200": content: application/json: schema: type: array items: $ref: "#/components/schemas/UsageRecord" description: OK tags: - usage-record-controller /api/user-groups: get: operationId: findByNamespaceIdUserGroup parameters: - in: query name: namespaceId required: true schema: type: string format: uuid responses: "200": content: application/json: schema: type: array items: $ref: "#/components/schemas/UserGroupSearchResult" description: OK tags: - user-group-controller post: operationId: createUserGroup requestBody: content: application/json: schema: $ref: "#/components/schemas/UserGroupCreateRequest" required: true responses: "201": content: application/json: schema: $ref: "#/components/schemas/UserGroupSearchResult" description: Created tags: - user-group-controller /api/user-groups/{userGroupId}: delete: operationId: deleteUserGroup parameters: - in: path name: userGroupId required: true schema: type: string format: uuid responses: "204": description: No Content tags: - user-group-controller get: operationId: getByIdUserGroup parameters: - in: path name: userGroupId required: true schema: type: string format: uuid responses: "200": content: application/json: schema: $ref: "#/components/schemas/UserGroupSearchResult" description: OK tags: - user-group-controller post: operationId: updateUserGroup parameters: - in: path name: userGroupId required: true schema: type: string format: uuid requestBody: content: application/json: schema: $ref: "#/components/schemas/UserGroupUpdateRequest" required: true responses: "200": content: application/json: schema: $ref: "#/components/schemas/UserGroupSearchResult" description: OK tags: - user-group-controller /api/user-groups/{userGroupId}/members: get: operationId: getMembersUserGroup parameters: - in: path name: userGroupId required: true schema: type: string format: uuid responses: "200": content: application/json: schema: type: array items: $ref: "#/components/schemas/UserGroupMember" description: OK tags: - user-group-controller /api/users: get: operationId: listAllUser responses: "200": content: application/json: schema: type: array items: $ref: "#/components/schemas/User" description: OK tags: - user-controller post: operationId: createUser requestBody: content: application/json: schema: $ref: "#/components/schemas/User" required: true responses: "201": content: application/json: schema: $ref: "#/components/schemas/User" description: Created tags: - user-controller /api/users/by-external-id/{externalId}/access: delete: operationId: revokeNamespaceAccessByExternalIdUser parameters: - in: path name: externalId required: true schema: type: string - in: query name: namespaceId required: true schema: type: string format: uuid responses: "204": description: No Content summary: "Revoke a user's UserGroup and Namespace access by external id, scoped\ \ to one namespace" tags: - user-controller /api/users/by-external-ids: post: operationId: listByExternalIdsUser requestBody: content: application/json: schema: type: array items: type: string required: true responses: "200": content: application/json: schema: type: array items: $ref: "#/components/schemas/User" description: OK tags: - user-controller /api/users/by-ids: post: operationId: getByIdsUser requestBody: content: application/json: schema: $ref: "#/components/schemas/GetByIdsRequest" required: true responses: "200": content: application/json: schema: type: array items: $ref: "#/components/schemas/User" description: OK tags: - user-controller /api/users/groups-by-external-ids: post: operationId: getGroupsByExternalIdsUser requestBody: content: application/json: schema: $ref: "#/components/schemas/GroupsByExternalIdsRequest" required: true responses: "200": content: application/json: schema: type: object additionalProperties: type: array items: $ref: "#/components/schemas/UserGroupSummary" description: OK tags: - user-controller /api/users/me: get: operationId: getMeUser responses: "200": content: application/json: schema: $ref: "#/components/schemas/User" description: OK summary: Get the current user's profile tags: - user-controller /api/users/{id}: delete: operationId: deleteUser parameters: - in: path name: id required: true schema: type: string format: uuid responses: "204": description: No Content tags: - user-controller get: operationId: getByIdUser parameters: - in: path name: id required: true schema: type: string format: uuid responses: "200": content: application/json: schema: $ref: "#/components/schemas/User" description: OK tags: - user-controller put: operationId: updateUser parameters: - in: path name: id required: true schema: type: string format: uuid requestBody: content: application/json: schema: $ref: "#/components/schemas/User" required: true responses: "200": content: application/json: schema: $ref: "#/components/schemas/User" description: OK tags: - user-controller /api/users/{id}/access: delete: operationId: revokeNamespaceAccessUser parameters: - in: path name: id required: true schema: type: string format: uuid - in: query name: namespaceId required: true schema: type: string format: uuid responses: "204": description: No Content summary: "Revoke a user's UserGroup and Namespace access, scoped to one namespace" tags: - user-controller components: schemas: Actor: type: object properties: displayName: type: string id: type: string role: type: string enum: - USER - AGENT required: - displayName - id - role AddMessageRequest: type: object properties: answerToEventId: type: string format: uuid content: type: string sessionContext: type: object additionalProperties: {} required: - content AgentConfig: type: object properties: advancedExecution: type: boolean deprecated: true description: Use executionMode instead createdBy: type: string createdOn: type: string format: date-time delegationTimeoutSeconds: type: integer format: int32 description: "Seconds allowed for each outgoing delegation, including nested\ \ work. Null or omitted inherits the server default; on PUT this clears\ \ an existing override." minimum: 1 description: type: string enabled: type: boolean executionMode: type: string description: "Execution mode: SIMPLE, ADVANCED or LOOP (LOOP is experimental\ \ and may change or be removed without notice). Takes precedence over\ \ advancedExecution on input; always resolved on output." enum: - SIMPLE - ADVANCED - LOOP externalMetadata: type: object additionalProperties: {} id: type: string format: uuid instructions: type: string integrations: type: object additionalProperties: type: array items: type: string loopConfig: $ref: "#/components/schemas/JsonNode" description: "Default loop payload for LOOP-mode agents, used when the start\ \ message carries no flowConfiguration." modelName: type: string name: type: string minLength: 1 namespaceId: type: string format: uuid skillSelectors: type: array items: type: string description: "Selectors controlling which skills are advertised to this\ \ agent. Skills live in a flat layout: skills/{name}/SKILL.md. Null\ \ or empty means no skills. Use ['*'] for all skills, or list exact\ \ skill names (matched against the SKILL.md frontmatter 'name', case-insensitive).\ \ Folder/glob patterns (e.g. 'core/**') are NOT supported and will simply\ \ never match." minLength: 1 subAgents: type: array items: type: string description: "Glob patterns controlling which agents this agent may delegate\ \ to. When null or empty, no delegation capability is provided. '*'\ \ matches any sequence of characters (anchored, case-insensitive). Examples:\ \ ['*'] allows all agents, ['*Fixer'] matches BugFixer/StoryFixer, ['Fixer*']\ \ matches FixerHelper/FixerV2." minLength: 1 updatedBy: type: string updatedOn: type: string format: date-time required: - name AgentConfigDefaultsDto: type: object properties: delegationTimeoutSeconds: type: integer format: int32 required: - delegationTimeoutSeconds AgentConfigSearchRequest: type: object properties: namespaceId: type: string format: uuid userExternalId: type: string minLength: 1 userId: type: string required: - namespaceId - userExternalId AgentDefinition: type: object properties: advancedExecution: type: boolean deprecated: true description: "Whether the agent uses the advanced multi-step execution engine.\ \ Deprecated: use executionMode instead." agentConfigId: type: string format: uuid description: The ID of the AgentConfig this definition was resolved from. executionMode: type: string description: "The resolved execution mode for this agent (SIMPLE, ADVANCED,\ \ or LOOP). LOOP is experimental and may change or be removed without\ \ notice." enum: - SIMPLE - ADVANCED - LOOP instructions: type: string description: "Final system instructions sent to the LLM, including injected\ \ namespace / integration / user context blocks." name: type: string description: The agent's display name. namespaceId: type: string format: uuid description: The namespace this agent belongs to. resolvedModelApiName: type: string description: The actual API model name sent to the provider. resolvedProviderName: type: string description: The name of the resolved AI provider. systemPrompt: type: string description: "Privileged namespace context block sent as a separate system\ \ message, before instructions. Null when no namespace context is available." tools: type: array description: Summary of tools that would be made available to this agent. items: $ref: "#/components/schemas/AgentDefinitionToolSummary" userId: type: string format: uuid description: "The user whose overlay was applied, or null for namespace-only\ \ resolution." required: - advancedExecution - agentConfigId - executionMode - name - namespaceId - resolvedModelApiName - resolvedProviderName - tools AgentDefinitionToolSummary: type: object properties: description: type: string inputSchema: type: string name: type: string required: - description - inputSchema - name AgentFinishedEvent: allOf: - $ref: "#/components/schemas/CaseEvent" - type: object properties: agentId: type: string format: uuid agentName: type: string llmModel: type: string llmProvider: type: string llmUsage: $ref: "#/components/schemas/LlmUsage" required: - agentId - agentName - caseId - id - metadata - namespaceId - timestamp - type AgentRunningEvent: allOf: - $ref: "#/components/schemas/CaseEvent" - type: object properties: agentId: type: string format: uuid agentName: type: string llmModel: type: string llmProvider: type: string required: - agentId - agentName - caseId - id - metadata - namespaceId - timestamp - type AgentSelectedEvent: allOf: - $ref: "#/components/schemas/CaseEvent" - type: object properties: agentId: type: string format: uuid agentName: type: string questionId: type: string format: uuid required: - agentId - agentName - caseId - id - metadata - namespaceId - timestamp - type AiModel: type: object properties: aiProviderId: type: string format: uuid alias: type: string apiModelName: type: string minLength: 1 contextWindow: type: integer format: int64 description: type: string id: type: string format: uuid maxCompletionTokens: type: integer format: int32 namespaceId: type: string format: uuid pricing: $ref: "#/components/schemas/ModelPricing" priority: type: integer format: int32 temperature: type: number format: double userId: type: string format: uuid required: - aiProviderId - apiModelName - priority AiProvider: type: object properties: apiKey: type: string apiType: type: string enum: - OpenAI - Anthropic - Gemini - vLLM - Ollama baseUrl: type: string description: type: string headers: type: object additionalProperties: type: string id: type: string format: uuid name: type: string minLength: 1 namespaceId: type: - string - "null" format: uuid userId: type: - string - "null" format: uuid required: - apiType - name AnswerEvent: allOf: - $ref: "#/components/schemas/CaseEvent" - type: object properties: actor: $ref: "#/components/schemas/Actor" answer: type: string questionId: type: string format: uuid required: - actor - answer - caseId - id - metadata - namespaceId - questionId - timestamp - type ApiKeyAuthSetting: allOf: - $ref: "#/components/schemas/AuthSettingDto" - type: object properties: apiKey: type: string name: type: string minLength: 1 namespaceId: type: - string - "null" format: uuid userId: type: - string - "null" format: uuid required: - authType - name AuthSettingDto: type: object discriminator: propertyName: authType properties: authType: type: string enum: - OAUTH_DISCOVERABLE - OAUTH_REGISTERED - OAUTH_CUSTOM - API_KEY - BEARER_TOKEN - BASIC_AUTH - OAUTH_MCP_DISCOVERABLE description: type: string id: type: string format: uuid name: type: string namespaceId: type: string format: uuid userId: type: string format: uuid required: - authType - name BasicAuthAuthSetting: allOf: - $ref: "#/components/schemas/AuthSettingDto" - type: object properties: name: type: string minLength: 1 namespaceId: type: - string - "null" format: uuid password: type: string userId: type: - string - "null" format: uuid username: type: string required: - authType - name BearerTokenAuthSetting: allOf: - $ref: "#/components/schemas/AuthSettingDto" - type: object properties: name: type: string minLength: 1 namespaceId: type: - string - "null" format: uuid token: type: string userId: type: - string - "null" format: uuid required: - authType - name Case: type: object properties: created: type: string format: date-time favorite: type: boolean id: type: string format: uuid lastMessageAt: type: string format: date-time modified: type: string format: date-time namespaceId: type: string format: uuid parentCaseId: type: string format: uuid readAt: type: string format: date-time description: Timestamp of the caller's last read. Null = never read (unread). removed: type: boolean role: type: string description: The caller's direct relation on this case enum: - ADMIN - MEMBER runCostThreshold: type: number format: double description: "Per-case override of the run cost threshold, in the platform\ \ currency unit. Null means inherit from the namespace or platform default\ \ (never \"no limit\" or \"zero\"). Set upfront for costly runs, or written\ \ by the enforcement mechanism on continuation." minimum: 0 scheduledPromptId: type: string format: uuid status: type: string enum: - CREATED - PENDING - RUNNING - IDLE - KILLED - ERROR title: type: string required: - favorite - namespaceId - removed - status CaseEvent: type: object discriminator: propertyName: type properties: caseId: type: string format: uuid id: type: string format: uuid metadata: $ref: "#/components/schemas/EntityMetadata" namespaceId: type: string format: uuid timestamp: type: string format: date-time type: type: string enum: - CaseStatusEvent - AgentSelectedEvent - MessageEvent - ToolRequestEvent - ToolResponseEvent - ThinkingEvent - AgentFinishedEvent - AgentRunningEvent - WarnEvent - ErrorEvent - QuestionEvent - AnswerEvent - IntentionGeneratedEvent - ToolSelectedEvent - TextChunkEvent - PendingConfirmationEvent - ConfirmationResolvedEvent - CaseUpdatedEvent - SubCaseStartedEvent - SubCaseFinishedEvent required: - caseId - id - metadata - namespaceId - timestamp - type CaseStatusEvent: allOf: - $ref: "#/components/schemas/CaseEvent" - type: object properties: status: type: string enum: - CREATED - PENDING - RUNNING - IDLE - KILLED - ERROR required: - caseId - id - metadata - namespaceId - status - timestamp - type CaseUpdatedEvent: allOf: - $ref: "#/components/schemas/CaseEvent" - type: object properties: title: type: string required: - caseId - id - metadata - namespaceId - timestamp - type CaseWorkspaceView: type: object properties: branchName: type: string description: Last observed branch of the worktree. Null for a detached HEAD or a family that is not equipped cleanupReason: type: string description: Why the workspace of a deleted family is still kept. Never a secret equipped: type: boolean description: Whether the case's family owns a Git workspace failureReason: type: string description: Why the last preparation failed. Never a secret git: $ref: "#/components/schemas/GitWorkspaceSummary" description: Last observed Git and pull request state of the worktree. Null until first observed rootCaseId: type: string format: uuid description: Root case that owns the family's workspace. Null when the family is not equipped status: type: string description: Lifecycle of the workspace. Null when the family is not equipped enum: - REQUESTED - PREPARING - READY - FAILED - DELETING - REMOVED required: - equipped ConfirmationResolvedEvent: allOf: - $ref: "#/components/schemas/CaseEvent" - type: object properties: confirmed: type: boolean pendingEventId: type: string format: uuid resultText: type: string required: - caseId - confirmed - id - metadata - namespaceId - pendingEventId - resultText - timestamp - type ContinueCostRequest: type: object properties: expectedThreshold: type: number format: double required: - expectedThreshold EnrichmentPhaseTrace: type: object properties: enrichmentContent: type: string llmOutput: type: string phaseIndex: type: integer format: int32 prompt: type: string success: type: boolean required: - llmOutput - phaseIndex - prompt - success EntityMetadata: type: object properties: created: type: string format: date-time createdBy: type: string id: type: string format: uuid modified: type: string format: date-time modifiedBy: type: string removed: type: boolean required: - created - id - modified - removed ErrorEvent: allOf: - $ref: "#/components/schemas/CaseEvent" - type: object properties: message: type: string required: - caseId - id - message - metadata - namespaceId - timestamp - type ExchangeDeleteResponse: type: object description: Result of an exchange file deletion. properties: message: type: string description: Human-readable outcome message. success: type: boolean description: Whether the deletion succeeded. required: - message - success ExchangeDiffFile: type: object properties: additions: type: integer format: int32 deletions: type: integer format: int32 path: type: string status: type: string enum: - ADDED - MODIFIED - DELETED - TYPE_CHANGED - CONFLICTED - UNTRACKED untracked: type: boolean required: - path - status - untracked ExchangeDirectoryEntry: type: object description: A file or sub-directory at one level of an exchange scope. properties: directory: type: boolean description: "True for a sub-directory, false for a file." lastModified: type: string format: date-time description: Last modification timestamp. mimeType: type: string description: "Detected MIME type for a file, null otherwise." name: type: string description: Entry name (last path segment). path: type: string description: "Path relative to the exchange root, using forward slashes." size: type: integer format: int64 description: "File size in bytes; null for a directory, whose size is not\ \ computed." required: - directory - name - path ExchangeDirectoryListing: type: object description: "A page of one directory level, plus the caller's capability." properties: capability: type: string description: Capability the caller has over this scope. enum: - NONE - READ - READ_WRITE entries: type: array description: "Entries in this page: sub-directories first, then files, each\ \ alphabetically." items: $ref: "#/components/schemas/ExchangeDirectoryEntry" hasMore: type: boolean description: Whether further pages exist for this directory. page: type: integer format: int32 description: Zero-based index of the page returned. pageSize: type: integer format: int32 description: Maximum number of entries per page. path: type: string description: "Directory being listed, relative to the exchange root. Empty\ \ string for the root itself." totalEntries: type: integer format: int32 description: "Total number of entries in this directory, across all pages." required: - capability - entries - hasMore - page - pageSize - path - totalEntries ExchangeEnvironment: type: object properties: branch: type: string changes: $ref: "#/components/schemas/ExchangeGitChanges" equipped: type: boolean error: type: string git: $ref: "#/components/schemas/GitWorkspaceSummary" path: type: string status: type: string required: - equipped ExchangeFileContent: type: object description: Text content and metadata of a single exchange file. properties: content: type: string description: UTF-8 text content of the file. etag: type: string description: Opaque entity tag derived from size and last-modified time. mimeType: type: string description: "Detected MIME type, or null if it could not be determined." size: type: integer format: int64 description: File size in bytes. required: - content - size ExchangeFileDiff: type: object properties: message: type: string patch: type: string required: - patch ExchangeFileEntry: type: object description: Metadata for a single file in an exchange scope. properties: etag: type: string description: Opaque entity tag derived from size and last-modified time. filename: type: string description: File name (last path segment). lastModified: type: string format: date-time description: Last modification timestamp. mimeType: type: string description: "Detected MIME type, or null if it could not be determined." path: type: string description: "Path of the file relative to its exchange root, using forward\ \ slashes." scope: type: string description: Scope the file belongs to. enum: - CASE - NAMESPACE size: type: integer format: int64 description: File size in bytes. required: - filename - lastModified - path - scope - size ExchangeGitChanges: type: object properties: additions: type: integer format: int32 base: type: string deletions: type: integer format: int32 files: type: array items: $ref: "#/components/schemas/ExchangeDiffFile" required: - additions - base - deletions - files ExchangeManifest: type: object description: Files in an exchange scope plus the caller's capability. properties: capability: type: string description: Capability the caller has over this scope. enum: - NONE - READ - READ_WRITE files: type: array description: Files available in the scope. items: $ref: "#/components/schemas/ExchangeFileEntry" required: - capability - files Feedback: type: object properties: caseEventId: type: string format: uuid caseId: type: string format: uuid comment: type: string createdBy: type: string createdOn: type: string format: date-time id: type: string format: uuid namespaceId: type: string format: uuid positive: type: boolean type: type: string updatedBy: type: string updatedOn: type: string format: date-time required: - caseEventId - caseId - createdOn - id - namespaceId - positive - updatedOn FeedbackInput: type: object properties: caseEventId: type: string format: uuid comment: type: string description: Optional free-text note. Ignored (cleared) when positive=true. positive: type: boolean type: type: string description: Optional category label. Ignored (cleared) when positive=true. required: - caseEventId - positive FlowConfigurationPreset: type: object properties: baseFlowConfiguration: $ref: "#/components/schemas/JsonNode" description: "Flow configuration to start from, `{ search: { tool, params\ \ }, act: { agentName, prompt } }`, every part optional, with the same\ \ meaning as the request's `baseFlowConfiguration`." name: type: string maxLength: 200 minLength: 0 required: - baseFlowConfiguration - name GeneratedFieldDecision: type: object properties: field: type: string enum: - LOOP_AGENT - TARGET_AGENT - PROMPT - NAME - RECURRENCE - PLANNING - SEARCH - PRESET rationale: type: - string - "null" source: type: string enum: - PROVIDED - INFERRED value: type: - string - "null" required: - field - source GetByIdsRequest: type: object properties: ids: type: array items: type: string format: uuid withRemoved: type: boolean required: - ids - withRemoved GitWorkspaceSummary: type: object properties: branchState: type: string description: Where the workspace branch stands against the remote enum: - DETACHED - LOCAL_ONLY - PUSHED - UNPUSHED_COMMITS - UNKNOWN dirty: type: boolean description: "Whether the worktree has local changes, untracked files included.\ \ Null when it could not be read" error: type: string description: Why the observation failed. Null when it succeeded. Never a secret headSha: type: string description: Commit checked out in the workspace. Null when it could not be read observedAt: type: string format: date-time description: When this observation started prHeadSha: type: string description: Head commit of the pull request. Null without one prNumber: type: integer format: int32 description: Number of the pull request. Null without one prState: type: string description: The pull request of the workspace branch. UNKNOWN never means that there is none enum: - DRAFT - OPEN - MERGED - CLOSED_UNMERGED - NONE - UNKNOWN prUrl: type: string description: Web address of the pull request. Null without one remoteSha: type: string description: Commit of the remote branch. Null when the branch is not on the remote unpushedCommits: type: integer format: int32 description: Commits of the workspace branch missing from the remote. Null unless the branch is on the remote required: - branchState - prState GitWorkspacesConfiguration: type: object properties: enabled: type: boolean required: - enabled GroupsByExternalIdsRequest: type: object properties: externalIds: type: array items: type: string namespaceId: type: string format: uuid required: - externalIds Image: type: object allOf: - $ref: "#/components/schemas/MessageContent" - type: object properties: content: type: string height: type: integer format: int32 mimeType: type: string width: type: integer format: int32 required: - content - mimeType IntegrationConfig: type: object properties: authSettingName: type: string autoGrant: type: boolean description: type: string id: type: string format: uuid integrationType: type: string minLength: 1 name: type: string minLength: 1 namespaceId: type: - string - "null" format: uuid parameters: $ref: "#/components/schemas/JsonNode" userId: type: - string - "null" format: uuid required: - autoGrant - integrationType - name IntegrationTypeDescriptor: type: object properties: autoGrantable: type: boolean description: "Whether a configuration of this type may set autoGrant, handing\ \ itself to every agent within its scope without the agent naming it.\ \ Clients should show the toggle only when this is true; the server rejects\ \ the flag on any other type with HTTP 422." builtIn: type: boolean configSchema: $ref: "#/components/schemas/JsonNode" description: type: string displayName: type: string enabledByDefault: type: boolean description: "What this instance grants an agent whose integrations map\ \ does not mention this type at all. An agent's own choice always wins,\ \ in both directions; this only fills the gap, so a client can label the\ \ \"platform default\" state of a toggle. Always false for non-built-in\ \ types." type: type: string required: - autoGrantable - builtIn - description - displayName - enabledByDefault - type IntentionGeneratedEvent: allOf: - $ref: "#/components/schemas/CaseEvent" - type: object properties: agentId: type: string format: uuid intention: type: string isFailedIntention: type: boolean toolName: type: string required: - agentId - caseId - id - intention - isFailedIntention - metadata - namespaceId - timestamp - toolName - type JsonNode: {} ListByUserInNamespaceRequest: type: object properties: namespaceExternalId: type: string userExternalId: type: string required: - namespaceExternalId - userExternalId LlmUsage: type: object properties: cacheReadTokens: type: integer format: int64 cacheWriteTokens: type: integer format: int64 estimatedCostUsd: type: number format: double inputTokens: type: integer format: int64 outputTokens: type: integer format: int64 totalTokens: type: integer format: int64 required: - cacheReadTokens - cacheWriteTokens - inputTokens - outputTokens - totalTokens LoopConfigGenerationRequest: type: object properties: description: type: string maxLength: 2000 minLength: 0 searchToolName: type: string description: "Name of the search tool to use, bare or prefixed by its integration\ \ config. When omitted, the LLM picks the best tool from the search tools\ \ available to this agent." maxLength: 200 minLength: 0 required: - description LoopConfigGenerationResult: type: object properties: loopConfig: $ref: "#/components/schemas/JsonNode" description: "Generated search block: `{ \"search\": { \"tool\", \"params\"\ \ } }`. It is not a complete loop configuration: the `act` block is missing\ \ and must be added by the caller. `search.tool` is the real name of the\ \ tool, possibly prefixed by its integration config (e.g. `USER_GROUP__searchAgentUsers`\ \ for a requested `searchAgentUsers`). Null when generation failed (see\ \ `warning`)." rawResponse: type: string description: "Raw LLM response text, present only when it could not be used.\ \ Never an error message." warning: type: string description: "Human-readable explanation: why nothing was generated, or\ \ a caveat on the result (e.g. empty object generated, or fallback parse\ \ used)." MemberItem: type: object properties: email: type: string externalId: type: string firstname: type: string id: type: string format: uuid lastname: type: string role: type: string description: The user's direct role on this entity. enum: - ADMIN - MEMBER required: - email - externalId - id - role MessageContent: discriminator: propertyName: type properties: type: type: string required: - type MessageEvent: allOf: - $ref: "#/components/schemas/CaseEvent" - type: object properties: actor: $ref: "#/components/schemas/Actor" content: type: array items: oneOf: - $ref: "#/components/schemas/Image" - $ref: "#/components/schemas/Text" llmModel: type: string llmProvider: type: string sessionContext: type: object additionalProperties: {} required: - actor - caseId - content - id - metadata - namespaceId - timestamp - type ModelPricing: type: object properties: cacheRead: type: number format: double cacheWrite: type: number format: double inputMTokens: type: number format: double isEmpty: type: boolean outputMTokens: type: number format: double required: - isEmpty Namespace: type: object properties: configPath: type: string description: "Optional filesystem path to a directory containing base configuration\ \ for this namespace (agents, tools, etc.)." defaultAgentName: type: string description: "Logical name of the default agent for this namespace. Resolved\ \ at runtime against AgentConfig entries (case-insensitive). When null,\ \ messages without an @mention will produce an explicit error." description: type: string externalId: type: string description: "Optional external identifier for this namespace, e.g. a federation\ \ id from an external system" id: type: string format: uuid name: type: string minLength: 1 runCostThreshold: type: number format: double description: "Namespace-level default for the run cost threshold, in the\ \ platform currency unit. Null means inherit from the platform default.\ \ Applies to all cases in this namespace that do not declare their own\ \ threshold." minimum: 0 required: - name NamespaceAgentDeployRequest: type: object properties: agentIds: type: array items: type: string format: uuid required: - agentIds NamespaceGit: type: object properties: associated: type: boolean autoWorktreeForRootCases: type: boolean checkoutFailureReason: type: string checkoutStatus: type: string description: Preparation state of the namespace repository. Null while no clone has been attempted enum: - PREPARING - READY - FAILED lastFetchedAt: type: string format: date-time mainBranch: type: string repositoryUrl: type: string serviceAuthSettingId: type: string format: uuid setupCommand: type: string required: - associated - autoWorktreeForRootCases NamespaceGitRequest: type: object properties: autoWorktreeForRootCases: type: boolean mainBranch: type: string repositoryUrl: type: string minLength: 1 serviceAuthSettingId: type: string format: uuid setupCommand: type: string required: - autoWorktreeForRootCases - repositoryUrl - serviceAuthSettingId NamespaceListItem: type: object properties: configPath: type: string defaultAgentName: type: string description: type: string externalId: type: string id: type: string format: uuid name: type: string role: type: string description: The caller's effective role on this namespace. enum: - SUPER-ADMIN - ADMIN - MEMBER required: - id - name - role NamespaceRoleEntry: type: object properties: namespaceExternalId: type: string minLength: 1 role: type: string pattern: ADMIN|MEMBER required: - namespaceExternalId - role OAuthCallbackRequest: type: object properties: code: type: string state: type: string required: - code - state OAuthCustomAuthSetting: allOf: - $ref: "#/components/schemas/AuthSettingDto" - type: object properties: authorizationUrl: type: string clientId: type: string clientSecret: type: string name: type: string minLength: 1 namespaceId: type: - string - "null" format: uuid scopes: type: string tokenUrl: type: string userId: type: - string - "null" format: uuid required: - authType - name OAuthDiscoverableAuthSetting: allOf: - $ref: "#/components/schemas/AuthSettingDto" - type: object properties: clientId: type: string clientSecret: type: string discoveryUrl: type: string name: type: string minLength: 1 namespaceId: type: - string - "null" format: uuid scopes: type: string userId: type: - string - "null" format: uuid required: - authType - name OAuthMcpDiscoverableAuthSetting: allOf: - $ref: "#/components/schemas/AuthSettingDto" - type: object properties: clientId: type: string clientSecret: type: string name: type: string minLength: 1 namespaceId: type: - string - "null" format: uuid resourceUrl: type: string scopes: type: string userId: type: - string - "null" format: uuid required: - authType - name OAuthRegisteredAuthSetting: allOf: - $ref: "#/components/schemas/AuthSettingDto" - type: object properties: authorizationUrl: type: string clientId: type: string clientSecret: type: string name: type: string minLength: 1 namespaceId: type: - string - "null" format: uuid scopes: type: string tokenUrl: type: string userId: type: - string - "null" format: uuid required: - authType - name PausedCostDto: type: object properties: ancestor: type: boolean canContinue: type: boolean caseId: type: string format: uuid cost: type: number format: double threshold: type: number format: double required: - ancestor - canContinue - caseId - cost - threshold PendingConfirmationEvent: allOf: - $ref: "#/components/schemas/CaseEvent" - type: object properties: inputJson: type: string toolConfirmationInstructions: type: string toolName: type: string toolRequestId: type: string required: - caseId - id - inputJson - metadata - namespaceId - timestamp - toolConfirmationInstructions - toolName - toolRequestId - type Planning: type: object properties: endDate: type: string format: date endType: type: string enum: - NEVER - ON_DATE - OCCURRENCES maxOccurrenceCount: type: integer format: int32 startDate: type: string format: date required: - endType - startDate PluginActionResponse: type: object properties: message: type: string success: type: boolean required: - message - success PluginInfo: type: object properties: description: type: string id: type: string pluginPath: type: string provider: type: string state: type: string enum: - CREATED - DISABLED - RESOLVED - STARTED - STOPPED - FAILED - UNLOADED version: type: string required: - description - id - pluginPath - provider - state - version PluginUploadResponse: type: object properties: message: type: string pluginId: type: string success: type: boolean required: - message - success Prompt: type: object properties: agentConfigId: type: - string - "null" format: uuid content: type: array items: type: string minLength: 1 minItems: 1 createdBy: type: string createdOn: type: string format: date-time description: type: string externalMetadata: type: object additionalProperties: {} id: type: string format: uuid name: type: string minLength: 1 namespaceId: type: - string - "null" format: uuid parameters: type: array items: $ref: "#/components/schemas/PromptParameter" sourceLanguage: type: string description: BCP-47 language code of the authored content and title. Defaults to 'en'. example: en title: type: string description: "Optional user-facing display label (e.g. starter button text).\ \ Distinct from content, which is the message sent to the LLM. Null when\ \ no explicit title has been set." updatedBy: type: string updatedOn: type: string format: date-time userId: type: - string - "null" format: uuid required: - content - name - parameters - sourceLanguage PromptBatchTranslateRequest: type: object properties: ids: type: array description: IDs of the prompts to translate. Order is preserved in the response. items: type: string format: uuid minItems: 1 minLength: 1 namespaceExternalId: type: string description: Namespace external ID for AI model resolution (resolved server-side). Required only when the batch contains platform-scoped prompts. Mutually exclusive with namespaceId. namespaceId: type: string format: uuid description: Namespace UUID for AI model resolution. Required only when the batch contains platform-scoped prompts. Mutually exclusive with namespaceExternalId. required: - ids PromptBatchTranslation: type: object properties: content: type: array description: Translated content list. Same indices as the source content. items: type: string id: type: string format: uuid description: ID of the prompt. title: type: string description: Translated display label. Null when the prompt has no title. required: - content - id PromptEffectiveRequest: type: object properties: agentConfigId: type: - string - "null" format: uuid namespaceExternalId: type: - string - "null" namespaceId: type: - string - "null" format: uuid PromptParameter: type: object properties: defaultValue: type: string minLength: 1 description: type: string name: type: string minLength: 1 required: - defaultValue - name PromptSearchRequest: type: object properties: agentConfigIds: type: array items: type: string format: uuid namespaceExternalId: type: - string - "null" namespaceId: type: - string - "null" format: uuid userExternalId: type: - string - "null" userId: type: - string - "null" format: uuid PromptTranslateRequest: type: object properties: namespaceExternalId: type: string description: Namespace external ID for AI model resolution (resolved server-side). Required only for platform-scoped prompts. Mutually exclusive with namespaceId. namespaceId: type: string format: uuid description: Namespace UUID for AI model resolution. Required only for platform-scoped prompts. Mutually exclusive with namespaceExternalId. PromptTranslation: type: object properties: content: type: array description: Translated content list. Same indices as the source content. items: type: string title: type: string description: Translated display label. Null when the prompt has no title. required: - content QuestionEvent: allOf: - $ref: "#/components/schemas/CaseEvent" - type: object properties: agentId: type: string format: uuid agentName: type: string options: type: array items: type: string question: type: string questionType: type: string enum: - FREE_TEXT - SINGLE_CHOICE - OPEN_CHOICE - OAUTH_AUTHORIZE userId: type: string format: uuid required: - agentId - agentName - caseId - id - metadata - namespaceId - question - questionType - timestamp - type Recurrence: type: object properties: days: type: array items: type: string enum: - MONDAY - TUESDAY - WEDNESDAY - THURSDAY - FRIDAY - SATURDAY - SUNDAY timeUtc: type: string unit: type: string enum: - WEEK - MONTH required: - days - timeUtc - unit RunCostDto: type: object properties: active: type: boolean caseId: type: string format: uuid cost: type: number format: double liveTokens: type: integer format: int64 paused: type: boolean pausedCases: type: array items: $ref: "#/components/schemas/PausedCostDto" runCostThreshold: type: number format: double since: type: string format: date-time unknownCostCount: type: integer format: int64 required: - active - caseId - cost - liveTokens - paused - pausedCases - since - unknownCostCount ScheduledPrompt: type: object properties: agentConfigId: type: string format: uuid createdBy: type: string createdOn: type: string format: date-time description: type: string enabled: type: boolean externalMetadata: type: object additionalProperties: {} flowConfiguration: $ref: "#/components/schemas/JsonNode" description: "Loop payload run by a LOOP agent for this scheduled prompt,\ \ overriding the agent's loopConfig." id: type: string format: uuid lastRunAt: type: string format: date-time name: type: string minLength: 1 namespaceId: type: - string - "null" format: uuid nextRunAt: type: string format: date-time planning: $ref: "#/components/schemas/Planning" promptContent: type: string minLength: 1 recurrence: $ref: "#/components/schemas/Recurrence" removed: type: boolean updatedBy: type: string updatedOn: type: string format: date-time userId: type: - string - "null" format: uuid required: - agentConfigId - enabled - name - planning - promptContent - recurrence - removed ScheduledPromptEffectiveRequest: type: object properties: agentConfigId: type: - string - "null" format: uuid namespaceExternalId: type: - string - "null" namespaceId: type: - string - "null" format: uuid ScheduledPromptGenerationRequest: type: object properties: baseFlowConfiguration: $ref: "#/components/schemas/JsonNode" description: "Flow configuration to start from, `{ search: { tool, params\ \ }, act: { agentName, prompt } }`, every part optional. The generation\ \ only enriches it: `search.tool` is used as the search tool, `search.params`\ \ are kept as they are and only completed, `act.agentName` is the target\ \ agent and `act.prompt` the prompt. An explicit request field wins over\ \ its counterpart here." description: type: string maxLength: 2000 minLength: 1 flowConfigurationPresets: type: - array - "null" description: "Named base flow configurations, used only when `baseFlowConfiguration`\ \ is absent. The LLM chooses one from the description (a single preset\ \ is chosen as is), and its `baseFlowConfiguration` then acts exactly\ \ like the request's `baseFlowConfiguration`: an explicit request field\ \ still wins over it. The chosen name is returned as `chosenPreset`." items: $ref: "#/components/schemas/FlowConfigurationPreset" maxItems: 20 minItems: 0 loopAgentName: type: - string - "null" description: LOOP agent running the automation. Inferred when absent. maxLength: 200 minLength: 0 namespaceExternalId: type: - string - "null" namespaceId: type: - string - "null" format: uuid planning: $ref: "#/components/schemas/Planning" prompt: type: - string - "null" description: Opening message of each started case. Inferred when absent. maxLength: 4000 minLength: 0 recurrence: $ref: "#/components/schemas/Recurrence" searchToolName: type: - string - "null" description: Search tool of the loop agent. Chosen by the LLM when absent. maxLength: 200 minLength: 0 targetAgentName: type: - string - "null" description: Agent started for each search result. Inferred when absent. maxLength: 200 minLength: 0 required: - description ScheduledPromptGenerationResult: type: object properties: chosenPreset: type: - string - "null" description: "Name of the flow configuration preset the generation started\ \ from. Null when `baseFlowConfiguration` was given, no presets were given,\ \ or no preset could be chosen (see `warnings`). Returned whether or not\ \ there is a proposal." decisions: type: array items: $ref: "#/components/schemas/GeneratedFieldDecision" rawResponse: type: - string - "null" scheduledPrompt: $ref: "#/components/schemas/ScheduledPrompt" description: "The proposal, absent (null) when a part of it could not be\ \ determined: see `warnings`." summary: type: - string - "null" description: "Markdown summary of the proposal for a non-technical end user,\ \ in their preferred language: a bold schedule and the agent's name on\ \ the opening line, then `- ` bullets for what is selected each time and\ \ what is done for each item. Render it as Markdown. Null when there is\ \ no proposal or when it could not be written." warnings: type: array items: type: string required: - decisions - warnings ScheduledPromptSearchRequest: type: object properties: agentConfigIds: type: array items: type: string format: uuid modifiedSince: type: string format: date-time namespaceExternalId: type: - string - "null" namespaceId: type: - string - "null" format: uuid userExternalId: type: - string - "null" userId: type: - string - "null" format: uuid withRemoved: type: boolean default: false Skill: type: object properties: body: type: string minLength: 1 createdBy: type: string createdOn: type: string format: date-time description: type: string minLength: 1 id: type: string format: uuid name: type: string minLength: 1 namespaceId: type: - string - "null" format: uuid resources: type: object additionalProperties: type: string updatedBy: type: string updatedOn: type: string format: date-time required: - body - description - name SubCaseFinishedEvent: allOf: - $ref: "#/components/schemas/CaseEvent" - type: object properties: agentName: type: string delegationId: type: string format: uuid errorType: type: string outcome: type: string enum: - SUCCESS - WAITING_USER - ERROR - TIMEOUT - KILLED subCaseId: type: string format: uuid toolRequestId: type: string required: - agentName - caseId - delegationId - id - metadata - namespaceId - outcome - subCaseId - timestamp - toolRequestId - type SubCaseStartedEvent: allOf: - $ref: "#/components/schemas/CaseEvent" - type: object properties: agentName: type: string delegationId: type: string format: uuid resumed: type: boolean subCaseId: type: string format: uuid task: type: string toolRequestId: type: string required: - agentName - caseId - delegationId - id - metadata - namespaceId - resumed - subCaseId - task - timestamp - toolRequestId - type SyncUserRolesRequest: type: object properties: namespaceRoles: type: array items: $ref: "#/components/schemas/NamespaceRoleEntry" userExternalId: type: string minLength: 1 required: - namespaceRoles - userExternalId Text: allOf: - $ref: "#/components/schemas/MessageContent" - type: object properties: content: type: string required: - content TextChunkEvent: allOf: - $ref: "#/components/schemas/CaseEvent" - type: object properties: chunk: type: string required: - caseId - chunk - id - metadata - namespaceId - timestamp - type ThinkingEvent: allOf: - $ref: "#/components/schemas/CaseEvent" required: - caseId - id - metadata - namespaceId - timestamp - type ToolInvokeRequest: type: object properties: namespaceId: type: string format: uuid payload: type: string toolName: type: string userId: type: string format: uuid required: - namespaceId - toolName ToolInvokeResponse: type: object properties: errorMessage: type: string errorType: type: string metadata: type: object additionalProperties: {} output: type: string structuredOutput: $ref: "#/components/schemas/JsonNode" success: type: boolean toolName: type: string required: - metadata - output - success - toolName ToolRequestEvent: allOf: - $ref: "#/components/schemas/CaseEvent" - type: object properties: args: type: string enrichmentPhases: type: array items: $ref: "#/components/schemas/EnrichmentPhaseTrace" toolName: type: string toolRequestId: type: string required: - caseId - id - metadata - namespaceId - timestamp - toolName - toolRequestId - type ToolResponseEvent: allOf: - $ref: "#/components/schemas/CaseEvent" - type: object properties: durationMs: type: integer format: int64 images: type: array items: $ref: "#/components/schemas/Image" output: oneOf: - $ref: "#/components/schemas/Image" - $ref: "#/components/schemas/Text" structuredOutput: $ref: "#/components/schemas/JsonNode" success: type: boolean toolMetadata: type: object additionalProperties: {} toolName: type: string toolRequestId: type: string required: - caseId - id - images - metadata - namespaceId - output - success - timestamp - toolMetadata - toolName - toolRequestId - type ToolSelectedEvent: allOf: - $ref: "#/components/schemas/CaseEvent" - type: object properties: agentId: type: string format: uuid toolName: type: string required: - agentId - caseId - id - metadata - namespaceId - timestamp - toolName - type ToolSummary: type: object properties: description: type: string inputSchema: type: string name: type: string required: - description - inputSchema - name UnreadCountResponse: type: object properties: unreadCount: type: integer format: int64 required: - unreadCount UsageAggregate: type: object properties: cacheReadTokens: type: integer format: int64 cacheWriteTokens: type: integer format: int64 cost: type: number format: double inputTokens: type: integer format: int64 outputTokens: type: integer format: int64 recordCount: type: integer format: int64 totalTokens: type: integer format: int64 unknownCostCount: type: integer format: int64 required: - cacheReadTokens - cacheWriteTokens - cost - inputTokens - outputTokens - recordCount - totalTokens - unknownCostCount UsageAggregateByKey: type: object properties: aggregate: $ref: "#/components/schemas/UsageAggregate" key: type: string required: - aggregate - key UsageConfiguration: type: object properties: enabled: type: boolean required: - enabled UsageRecord: type: object properties: agentConfigId: type: string format: uuid agentName: type: string apiModelName: type: string cacheReadTokens: type: integer format: int64 cacheWriteTokens: type: integer format: int64 caseId: type: string format: uuid cost: type: - number - "null" format: double createdOn: type: string format: date-time id: type: string format: uuid inputTokens: type: integer format: int64 namespaceId: type: string format: uuid outcome: type: string outputTokens: type: integer format: int64 providerName: type: string source: type: string timestamp: type: string format: date-time totalTokens: type: integer format: int64 userId: type: string format: uuid required: - agentName - cacheReadTokens - cacheWriteTokens - caseId - createdOn - id - inputTokens - namespaceId - outcome - outputTokens - source - timestamp - totalTokens User: type: object properties: bio: type: string email: type: string externalId: type: string firstname: type: string id: type: string format: uuid isAdmin: type: boolean lastname: type: string preferredLanguage: type: string pattern: "^[a-zA-Z]{2,3}(-[a-zA-Z0-9]{2,8})*$" required: - isAdmin UserGroupCreateRequest: type: object properties: adminExternalIds: type: array description: Subset of userExternalIdsToAdd who should receive the ADMIN role; each must also be a member. items: type: string maxItems: 200 minItems: 0 uniqueItems: true agentIds: type: array items: type: string format: uuid maxItems: 200 minItems: 0 uniqueItems: true name: type: string maxLength: 250 minLength: 0 namespaceId: type: string format: uuid userExternalIdsToAdd: type: array items: type: string maxItems: 200 minItems: 0 uniqueItems: true required: - adminExternalIds - agentIds - name - namespaceId - userExternalIdsToAdd UserGroupMember: type: object properties: email: type: string externalId: type: string description: Identity-provider key used to add or remove this member firstname: type: string lastname: type: string role: type: string description: The user's relation to the group enum: - ADMIN - MEMBER userId: type: string format: uuid required: - externalId - role - userId UserGroupSearchResult: type: object properties: agentIds: type: array items: type: string format: uuid name: type: string namespaceExternalId: type: string namespaceId: type: string format: uuid userCount: type: integer format: int32 userGroupId: type: string format: uuid required: - agentIds - name - namespaceExternalId - namespaceId - userCount - userGroupId UserGroupSummary: type: object properties: id: type: string format: uuid name: type: string required: - id - name UserGroupUpdateRequest: type: object properties: adminExternalIds: type: array description: "Complete desired set of member external IDs holding the ADMIN\ \ role (replace semantics): members not listed are demoted to MEMBER,\ \ and an omitted or empty set demotes every current admin. Every listed\ \ id must be a member after the update." items: type: string maxItems: 200 minItems: 0 uniqueItems: true agentIds: type: array items: type: string format: uuid maxItems: 200 minItems: 0 uniqueItems: true name: type: string maxLength: 250 minLength: 0 userExternalIdsToAdd: type: array items: type: string maxItems: 200 minItems: 0 uniqueItems: true userExternalIdsToRemove: type: array items: type: string maxItems: 200 minItems: 0 uniqueItems: true required: - adminExternalIds - agentIds - name - userExternalIdsToAdd - userExternalIdsToRemove UserMembershipRole: type: object properties: role: type: string description: Target role for this user on the entity. Null means revoke all relations. enum: - ADMIN - MEMBER pattern: ADMIN|MEMBER userId: type: string format: uuid description: Internal user id. required: - userId WarnEvent: allOf: - $ref: "#/components/schemas/CaseEvent" - type: object properties: message: type: string required: - caseId - id - message - metadata - namespaceId - timestamp - type WorkspaceRetryRequest: type: object properties: acknowledgeSetupReplay: type: boolean required: - acknowledgeSetupReplay