Skip to content

Ai

17 endpoints in this module.

Method Path Auth Permissions Roles Description
GET /api/ai/recognition-jobs jwt AI_USE List all AI recognition jobs for tenant
GET /api/ai/recognition-jobs/:id jwt AI_USE Get AI recognition job by ID
POST /api/ai/recognition-jobs jwt AI_USE Create a new AI recognition job
PATCH /api/ai/recognition-jobs/:id jwt AI_USE Update AI recognition job (transparency log, rationale)
POST /api/ai/recognition-jobs/:id/cancel jwt AI_USE Cancel a pending or processing AI recognition job
POST /api/ai/recognition-jobs/:id/confirm-result jwt AI_USE Confirm AI result and create tools (Human-in-the-Loop)
DELETE /api/ai/recognition-jobs/:id jwt AI_MANAGE Delete AI recognition job
POST /api/ai/photos/upload jwt AI_USE Upload photos for AI recognition (base64 JSON)
GET /api/ai/web-research jwt AI_USE List AI web research entries for tenant
POST /api/ai/web-research jwt AI_USE Create a new AI web research entry
DELETE /api/ai/web-research/:id jwt AI_MANAGE Delete AI web research entry
POST /api/ai/web-research/:id/confirm jwt AI_USE Confirm web research result and create tool in inventory
GET /api/ai/usage jwt AI_USE List AI token usage logs for tenant (C-08)
GET /api/ai/usage/summary jwt AI_USE Aggregated AI token usage summary for tenant (C-08)
GET /api/ai/status jwt AI_USE Check if AI module is enabled (Mistral API key configured)
POST /api/ai/evening-check jwt AI_USE Create a Feierabend-Check (evening inventory check) job
GET /api/ai/evening-check/:id jwt AI_USE Get Feierabend-Check result (missing tools highlighted)

Source: apps/api/src/modules/ai/ai.controller.ts