Skip to content

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
}
}

References

#/components/parameters/xAccountIdHeader

in: header
name: x-account-id
schema:
type: string
description: Account ID for the request
required: true
example: "2311"

#/components/schemas/UnderwritingStatistics

type: object
properties:
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
- pending
required:
- totalInQueue
- pendingReview
- awaitingDocuments
- averageProcessingTime
- todayProcessed
- weeklyTrend

#/components/responses/Unauthorized

description: Authentication required
content:
application/json:
schema:
type: object
properties:
error:
type: string
example: Authentication required

#/components/responses/Forbidden

description: Insufficient permissions
content:
application/json:
schema:
type: object
properties:
error:
type: string
example: readApplications permission is required

#/components/responses/InternalServerError

description: Internal server error
content:
application/json:
schema:
type: object
properties:
error:
type: string
example: Failed to get underwriting queue

Route 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