REST /api/v1/reminder-evaluation 3 endpoints
POST /api/v1/reminder-evaluation/api/v1/reminder-evaluation/evaluate

Evaluate whether an assignment is due for a reminder or escalation

Public

Request Example

{
  "assignment_id": "asgn_001",
  "last_contact_date": "2026-03-10T14:30:00Z",
  "last_reminder_sent_at": "2026-03-18T08:00:00Z",
  "org_id": "org_03"
}

Response Example

{
  "assignment_id": "asgn_001",
  "days_since_contact": 16,
  "reminder_threshold": 14,
  "escalation_threshold": 21,
  "reminder_due": true,
  "escalation_due": false,
  "recommendation": "dispatch_reminder",
  "evaluated_at": "2026-03-26T10:26:00Z"
}
POST /api/v1/reminder-evaluation/api/v1/reminder-evaluation/batch-evaluate

Evaluate multiple assignments in a single call

Public

Request Example

{
  "org_id": "org_03",
  "assignment_ids": [
    "asgn_001",
    "asgn_002",
    "asgn_007"
  ]
}

Response Example

{
  "results": [
    {
      "assignment_id": "asgn_001",
      "days_since_contact": 16,
      "reminder_due": true,
      "escalation_due": false,
      "recommendation": "dispatch_reminder"
    },
    {
      "assignment_id": "asgn_002",
      "days_since_contact": null,
      "reminder_due": false,
      "escalation_due": false,
      "recommendation": "none"
    },
    {
      "assignment_id": "asgn_007",
      "days_since_contact": 28,
      "reminder_due": true,
      "escalation_due": true,
      "recommendation": "dispatch_escalation"
    }
  ],
  "evaluated_at": "2026-03-26T10:26:05Z"
}
GET /api/v1/reminder-evaluation/api/v1/reminder-evaluation/thresholds/:org_id

Get current evaluation thresholds for an organisation

Public

Response Example

{
  "org_id": "org_03",
  "reminder_days": 14,
  "escalation_days": 21,
  "source": "org_config"
}

Additional Metadata

{
  "contract_summary": {
    "total_contracts": 410,
    "total_endpoints": 2416,
    "api_styles_used": [
      "rest"
    ]
  },
  "generated_at": "2026-03-26T06:55:53.316Z"
}