Connect
- Webhooks
HealthAI
- Assessment
- EkaScribe
General Tools
- Medical Document Parsing
Doctor Tool
- Actors
- Instructions
- Patient Registration API
- Doctor and clinic API
- Appointment API
- Payments API
- Prescription API
- Notify
- Webhooks
ABDM Connect
- Create and Login
- User Session
- Patient Requests
- Consents
- Overview
- HIU
- PHR
- Auto Approval
- Care Contexts
- Providers
- Profile
- Scan & Share
- Errors
Medical Knowledge-bases
- Overview
- Protocols
- Medications
Medical Records
- Create
- Read
- Update
- Delete
- Webhooks
User App
- Notifications
- Vital
- Webhooks
- Privacy
Release Notes
- ABDM Connect
HIU
Consent create
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
The API requires a Bearer token (JWT) for authentication.
Body
application/json
Response
200
application/json
OK
The response is of type object
.
Was this page helpful?
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>"
}
Assistant
Responses are generated using AI and may contain mistakes.