GET /underwriting/statistics
Get underwriting statistics
Retrieve dashboard statistics for the underwriting queue and processing metrics
Required Parameters
x-account-id
header string Account ID for the request
Try it out
Loading...
Output:
Responses
Description
Successfully retrieved underwriting statistics
{ "totalInQueue": 0, "pendingReview": 0, "awaitingDocuments": 0, "averageProcessingTime": 0, "todayProcessed": 0, "weeklyTrend": { "approved": 0, "declined": 0, "pending": 0 }}Description
Authentication required
{ "error": "Authentication required"}Description
Insufficient permissions
{ "error": "readApplications permission is required"}Description
Internal server error
{ "error": "Failed to get underwriting queue"}References
#/components/parameters/xAccountIdHeader#/components/schemas/UnderwritingStatistics#/components/responses/Unauthorized#/components/responses/Forbidden#/components/responses/InternalServerError
#/components/parameters/xAccountIdHeader
in: headername: x-account-idschema: type: stringdescription: Account ID for the requestrequired: trueexample: "2311"|export type xAccountIdHeader = any; // Schema type not fully supported#/components/schemas/UnderwritingStatistics
type: objectproperties: totalInQueue: type: integer description: Total number of applications in the underwriting queue pendingReview: type: integer description: Number of applications awaiting initial review awaitingDocuments: type: integer description: Number of applications awaiting document verification averageProcessingTime: type: number format: float description: Average processing time in hours todayProcessed: type: integer description: Number of applications processed today weeklyTrend: type: object properties: approved: type: integer description: Number of applications approved this week declined: type: integer description: Number of applications declined this week pending: type: integer description: Number of applications with pending decisions this week required: - approved - declined - pendingrequired: - totalInQueue - pendingReview - awaitingDocuments - averageProcessingTime - todayProcessed - weeklyTrend|export interface UnderwritingStatistics { /** Total number of applications in the underwriting queue */ totalInQueue: number; /** Number of applications awaiting initial review */ pendingReview: number; /** Number of applications awaiting document verification */ awaitingDocuments: number; /** Average processing time in hours */ averageProcessingTime: number; /** Number of applications processed today */ todayProcessed: number; weeklyTrend: { approved: number; declined: number; pending: number };}#/components/responses/Forbidden
description: Insufficient permissionscontent: application/json: schema: type: object properties: error: type: string example: readApplications permission is required|export type Forbidden = any; // Schema type not fully supported#/components/responses/InternalServerError
description: Internal server errorcontent: application/json: schema: type: object properties: error: type: string example: Failed to get underwriting queue|export type InternalServerError = any; // Schema type not fully supportedRoute Source Code
Check out the source code for this route entrypoint here: /underwriting/statistics/route.ts
Or the swagger.yaml spec this documentation was generated from:
/underwriting/statistics/swagger.yaml