Scan
Classify the project and return the scanner result.
Always runs the scanner so the response carries truthful
has_python_files / has_idun_config / detected values
even when an agent row already exists — useful for direct-curl
callers inspecting state. When the row exists, current_agent
is populated so the UI can short-circuit to chat without a
follow-up GET /agent call.
Documentation Index
Fetch the complete documentation index at: https://docs.idun-group.com/llms.txt
Use this file to discover all available pages before exploring further.
Response
Successful Response
Response for POST /admin/api/v1/onboarding/scan.
The five-state classification is computed server-side from the
scan result plus the agent row's existence. current_agent is
only populated when state == "ALREADY_CONFIGURED".