Connect
- Webhooks
General Tools
- Self Assessments
- Medical Document Parsing
- Medical Speech Understanding
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
- POSTConsent approve
- POSTConsent deny
- POSTConsent revoke
- Consent Pin Management
- Auto Approval
- Care Contexts
- Providers
- Profile
- Scan & Share
- Errors
Medical Records
- Create
- Read
- Update
- Delete
- Webhooks
User App
- Notifications
- Vital
- Webhooks
- Privacy
Release Notes
- ABDM Connect
Consents
Consent approve
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
The API requires a Bearer token (JWT) for authentication.
Body
application/json
List of consent artefacts.
Available options:
view
Unique identifier of a consent, also called the consent ID.
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.