Skip to content

What's Next recommendations​

GET
/api/ai/whats-next

Returns today's cached recommendations. Without refresh=true this
never generates: when nothing was generated today (UTC) data is
null. With refresh=true it runs the model and waits for the result.

Authorizations​

bearerAuth

API token created via POST /api/tokens or the db:create-token CLI command

Type
HTTP (bearer)

Parameters​

Query Parameters

refresh

Generate fresh recommendations now.

Type
boolean

Responses​

Recommendations, or null

application/json
JSON
{
"data": {
"tasks": [
{
"task_id": 0,
"reason": "string"
}
],
"summary": "string",
"generated_at": "string",
"duration_ms": 0
}
}

Samples​

Powered by VitePress OpenAPI