Start Insights generation
POST
/api/ai/insights/generate
Scores all of the user's active tasks in the background and returns at
once. Poll GET /api/ai/insights/status with the returned
session_id, then read GET /api/ai/insights/results.
Authorizations
bearerAuth
API token created via POST /api/tokens or the db:create-token CLI command
Type
HTTP (bearer)
Responses
Generation started. With no active tasks, session_id is null,
total_tasks is 0 and message says so.
application/json
JSON
{
"data": {
"session_id": "string",
"total_tasks": 0,
"single_call": true,
"started_at": "string",
"message": "No active tasks to analyze"
}
}
POST
/api/ai/insights/generate
