POST
/
abdm
/
v1
/
consents
/
approve
curl --request POST \
  --url https://api.eka.care/abdm/v1/consents/approve \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "consent_artefacts": [
    {
      "access_mode": "view",
      "care_contexts": [
        {
          "display": "Heart Rate 2020",
          "id": "heart-rate-2020"
        }
      ],
      "duration": {
        "from": "2023-11-07T05:31:56Z",
        "to": "2023-11-07T05:31:56Z"
      },
      "erase_at": "2023-11-07T05:31:56Z",
      "hi_types": [
        "<string>"
      ],
      "hip_id": "<string>"
    }
  ],
  "id": "<string>",
  "pin_detail": {
    "pin": "1234"
  }
}'
This response has no body data.

Authorizations

Authorization
string
header
required

The API requires a Bearer token (JWT) for authentication.

Body

application/json

List of consent artefacts.

id
string
required

Unique identifier of a consent, also called the consent ID.

pin_detail
object