consents

Get all pending consents

Get all pending consents to show when operators are assigned.

get/api/consents/pending

Response

Successful Response

totalinteger required

Total number of pending consents

Example response

{
  "items": [
    {
      "action_required": "verify_otp",
      "consent_id": "123e4567-e89b-12d3-a456-426614174001",
      "consent_type": "psychological",
      "operator_id": "123e4567-e89b-12d3-a456-426614174000",
      "popup": {
        "actionLabel": "Verifica OTP",
        "message": "Verifica il consenso informato per il trattamento psychological inserendo il codice OTP inviato via email.",
        "title": "Verifica consenso informato"
      },
      "status": "pending_otp"
    }
  ]
}

Changes