curl --request POST \
--url https://api.eka.care/abdm/v1/consents/list \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"hiu": {
"clinic_id": "afsdfj786fges87f68g8",
"d_oid": "162835406498984"
},
"patient": {
"health_id": "bobthebuilder@abdm",
"oid": "162835406498984"
}
}'
{
"consents": [
{
"c_at": "2023-11-07T05:31:56Z",
"consent_id": "<string>",
"consent_init_id": "<string>",
"period": {
"expiry": "2009-11-10T23:00:00Z",
"from": "2009-11-10T23:00:00Z",
"to": "2009-11-10T23:00:00Z"
},
"status": "<string>",
"u_at": "2023-11-07T05:31:56Z"
}
]
}
curl --request POST \
--url https://api.eka.care/abdm/v1/consents/list \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"hiu": {
"clinic_id": "afsdfj786fges87f68g8",
"d_oid": "162835406498984"
},
"patient": {
"health_id": "bobthebuilder@abdm",
"oid": "162835406498984"
}
}'
{
"consents": [
{
"c_at": "2023-11-07T05:31:56Z",
"consent_id": "<string>",
"consent_init_id": "<string>",
"period": {
"expiry": "2009-11-10T23:00:00Z",
"from": "2009-11-10T23:00:00Z",
"to": "2009-11-10T23:00:00Z"
},
"status": "<string>",
"u_at": "2023-11-07T05:31:56Z"
}
]
}
The API requires a Bearer token (JWT) for authentication.
OK
The response is of type object
.
Was this page helpful?