Approval queue analytics

GET /api/v1/ap-approval/analytics

Return queue health stats: pending counts by tier, average age, and oldest pending item.

Operation ID: get_analytics_api_v1_ap_approval_analytics_get · View as markdown · OpenAPI slice

Authentication

Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.

Responses

200 Successful Response

pending_count integer required

Total suspended approval executions.

pending_by_tier object

Suspended count per tier (ops, advisor, owner).

avg_pending_age_hours number

Average age of pending items in hours. Null when queue is empty.

oldest_pending_hours number

Age of the oldest pending item in hours. Null when queue is empty.

workflow_enabled boolean required

Whether an AP approval workflow is provisioned for this business.

401 Unauthorized - Authentication required

403 Forbidden - Insufficient permissions

422 Validation Error

detail array · ValidationError ValidationError
5 fields
loc array · string | integer required
msg string required
type string required
input object
ctx object