List Requests
curl --request GET \
--url https://api.eka.care/abdm/v1/requests \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.eka.care/abdm/v1/requests"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.eka.care/abdm/v1/requests', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.get("https://api.eka.care/abdm/v1/requests")
.header("Authorization", "Bearer <token>")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/abdm/v1/requests");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://api.eka.care/abdm/v1/requests")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"authorizations": [
{
"created_at": "2023-11-07T05:31:56Z",
"duration": {
"from": "2023-11-07T05:31:56Z",
"to": "2023-11-07T05:31:56Z"
},
"hiu": {
"id": "INXXXXX",
"name": "Apollo Hospital"
},
"id": "<string>",
"purpose": {
"code": "<string>",
"text": "<string>"
},
"requester": {
"name": "Dr John"
}
}
],
"consents": [
{
"created_at": "2023-11-07T05:31:56Z",
"duration": {
"from": "2023-11-07T05:31:56Z",
"to": "2023-11-07T05:31:56Z"
},
"hiu": {
"id": "INXXXXX",
"name": "Apollo Hospital"
},
"id": "<string>",
"purpose": {
"code": "<string>",
"text": "<string>"
},
"requester": {
"name": "Dr John"
}
}
],
"subscriptions": [
{
"created_at": "2023-11-07T05:31:56Z",
"duration": {
"from": "2023-11-07T05:31:56Z",
"to": "2023-11-07T05:31:56Z"
},
"hiu": {
"id": "INXXXXX",
"name": "Apollo Hospital"
},
"id": "<string>",
"purpose": {
"code": "<string>",
"text": "<string>"
},
"requester": {
"name": "Dr John"
}
}
]
}{
"code": 123,
"error": "<string>",
"source_error": {
"code": "<string>",
"message": "<string>"
}
}{
"code": 123,
"error": "<string>",
"source_error": {
"code": "<string>",
"message": "<string>"
}
}Consent manager
List Requests
API to list all the Subscriptions and Consent requests
GET
/
abdm
/
v1
/
requests
List Requests
curl --request GET \
--url https://api.eka.care/abdm/v1/requests \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.eka.care/abdm/v1/requests"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.eka.care/abdm/v1/requests', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.get("https://api.eka.care/abdm/v1/requests")
.header("Authorization", "Bearer <token>")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/abdm/v1/requests");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://api.eka.care/abdm/v1/requests")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"authorizations": [
{
"created_at": "2023-11-07T05:31:56Z",
"duration": {
"from": "2023-11-07T05:31:56Z",
"to": "2023-11-07T05:31:56Z"
},
"hiu": {
"id": "INXXXXX",
"name": "Apollo Hospital"
},
"id": "<string>",
"purpose": {
"code": "<string>",
"text": "<string>"
},
"requester": {
"name": "Dr John"
}
}
],
"consents": [
{
"created_at": "2023-11-07T05:31:56Z",
"duration": {
"from": "2023-11-07T05:31:56Z",
"to": "2023-11-07T05:31:56Z"
},
"hiu": {
"id": "INXXXXX",
"name": "Apollo Hospital"
},
"id": "<string>",
"purpose": {
"code": "<string>",
"text": "<string>"
},
"requester": {
"name": "Dr John"
}
}
],
"subscriptions": [
{
"created_at": "2023-11-07T05:31:56Z",
"duration": {
"from": "2023-11-07T05:31:56Z",
"to": "2023-11-07T05:31:56Z"
},
"hiu": {
"id": "INXXXXX",
"name": "Apollo Hospital"
},
"id": "<string>",
"purpose": {
"code": "<string>",
"text": "<string>"
},
"requester": {
"name": "Dr John"
}
}
]
}{
"code": 123,
"error": "<string>",
"source_error": {
"code": "<string>",
"message": "<string>"
}
}{
"code": 123,
"error": "<string>",
"source_error": {
"code": "<string>",
"message": "<string>"
}
}Used in
Authorizations
The API requires a Bearer token (JWT) for authentication.
Headers
Eka User ID (OID)
Partner User ID
Partner HIP ID
Query Parameters
status of the request
Available options:
requested, granted, expired, denied, revoked Example:
"granted"
Specifies the type of request being queried.
Available options:
consent, subscription, authorization, all Example:
"consent"
OID is used to Identify the user.
Was this page helpful?

