AI Coach

[Diagnostic] Admin-only. Run chat respond() for any user ID and return the AI response. Timing logs appear in PM2 under [CHAT PERF].

post/api/ai/diagnose-chat

Request

  • Base URL
    https://api.rewritelifestyle.ai (the document declares no server; this is the origin it was published from)
  • URL
    https://api.rewritelifestyle.ai/api/ai/diagnose-chat
  • Auth
    HTTP bearer

Response

unknown required

Example response

{
  "success": true,
  "response": "Coach reply text...",
  "diagnosticNote": "Check PM2 logs for [CHAT PERF] user=123 breakdown"
}

Changes

No recorded changes to this operation across all 34 revisions of this API.