Chat

Get Dashboard Stats Endpoint

Get dashboard statistics for the current user.

Returns counts of reports/chats in different states:

  • drafts: Number of draft chats (chats that exist in messages table but NOT in reports table)
  • analysis_completed: Number of reports with analysis completed status
  • output_generated: Number of reports with output generated status
  • updated: Number of updated reports (TODO: implement when update functionality is enabled)

Authentication Required: Yes (JWT token)

get/api/v1/dashboard-stats

Request

  • Base URL
    https://backend.caspr.ai (the document declares no server; this is the origin it was published from)
  • Auth
    OAuth 2
    Password
    Token URL: token

Response

Successful Response

total_draftinteger required

Number of draft chats (chats in messages table but not in reports table)

analysis_completedinteger required

Number of reports with analysis completed

output_generatedinteger required

Number of reports with output generated

updatedinteger

Number of updated reports (TODO: implement when update functionality is enabled)

Changes