Token verification failing for consent Approval

Hi @IntegrationSupport, I am trying to approve an consent but getting .Token verification failed Please help.
I am passing the token that got from API- ​/patients​/verify-pin


this is the body-
{

“consents”: [

{

  "hiTypes": [

    "WellnessRecord"

  ],

  "hiu": {

    "id": "Kevalya-8900080114197"

  },

  "careContexts": [

    {

      "patientReference": "1341",

      "careContextReference": "dd36e175-05b0-4a51-8e01-d9af9d7b7902"

    }

  ],

  "permission": {

    "accessMode": "VIEW",

    "dateRange": {

      "from": "2023-08-01T14:02:41.712Z",

      "to": "2023-08-15T14:02:43.712Z"

    },

    "dataEraseAt": "2023-08-21T11:38:14.712Z",

    "frequency": {

      "unit": "HOUR",

      "value": 1,

      "repeats": 0

    }

  }

}

]

}

Remove Bearer from x-auth-token

1 Like