POST
/
abdm
/
v1
/
consents
/
create
curl --request POST \
  --url https://api.eka.care/abdm/v1/consents/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "appointment_id": "<string>",
  "care_contexts": [
    {
      "cc_ref": "<string>",
      "patient_ref": "<string>"
    }
  ],
  "hip_identifier": {
    "id": "<string>",
    "name": "<string>"
  },
  "hiu": {
    "clinic_id": "afsdfj786fges87f68g8",
    "d_oid": "162835406498984",
    "requester": {
      "identifier": {
        "system": "<string>",
        "type": "<string>",
        "value": "<string>"
      },
      "name": "<string>"
    }
  },
  "patient": {
    "health_id": "bobthebuilder@abdm",
    "oid": "162835406498984"
  },
  "period": {
    "expiry": "2009-11-10T23:00:00Z",
    "from": "2009-11-10T23:00:00Z",
    "to": "2009-11-10T23:00:00Z"
  },
  "purpose": "<string>",
  "record_types": [
    "<string>"
  ]
}'
{
  "consent_init_id": "<string>"
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Response

200
application/json

OK

The response is of type object.