curl --request GET \
--url https://api.eka.care/abdm/v1/hiu/care-context/data/{transaction_id}/entries/{content_ref} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.eka.care/abdm/v1/hiu/care-context/data/{transaction_id}/entries/{content_ref}"
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/hiu/care-context/data/{transaction_id}/entries/{content_ref}', 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/hiu/care-context/data/{transaction_id}/entries/{content_ref}")
.header("Authorization", "Bearer <token>")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/abdm/v1/hiu/care-context/data/{transaction_id}/entries/{content_ref}");
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/hiu/care-context/data/{transaction_id}/entries/{content_ref}")
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{
"care_context_id": "<string>",
"checksum": "<string>",
"content": "<string>",
"media": "application/fhir+json"
}{
"code": 123,
"error": "<string>",
"source_error": {
"code": "<string>",
"message": "<string>"
}
}{
"code": 123,
"error": "<string>",
"source_error": {
"code": "<string>",
"message": "<string>"
}
}Fetch data push entry
Returns one entry of the abha.hiu_data_push webhook, encrypted exactly as the HIP sent it.
When to use
Every entry in the webhook carries a content_ref. Large pushes cannot be delivered in one webhook, so for some entries content arrives as an empty string. Call this API for every entry whose content is empty. You can also call it for every entry and ignore the inline content.
An entry can be fetched for 15 minutes after the webhook is sent. After that it is deleted and cannot be fetched again, so fetch entries as soon as you receive the webhook.
How to use
- From the webhook, take
data.transaction_id(not the top-leveltransaction_id, which identifies the webhook delivery) and the entry’scontent_ref. - Call this API with the same credentials you use for the other ABDM Connect APIs.
- Decrypt
contentwith the webhook’skey_informationand your private key, the same way as an inline entry, and verifychecksum.
A 404 means the transaction does not belong to your workspace, the content_ref is unknown, or the entry has expired.
content in the webhook may be removed in a future version.curl --request GET \
--url https://api.eka.care/abdm/v1/hiu/care-context/data/{transaction_id}/entries/{content_ref} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.eka.care/abdm/v1/hiu/care-context/data/{transaction_id}/entries/{content_ref}"
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/hiu/care-context/data/{transaction_id}/entries/{content_ref}', 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/hiu/care-context/data/{transaction_id}/entries/{content_ref}")
.header("Authorization", "Bearer <token>")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/abdm/v1/hiu/care-context/data/{transaction_id}/entries/{content_ref}");
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/hiu/care-context/data/{transaction_id}/entries/{content_ref}")
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{
"care_context_id": "<string>",
"checksum": "<string>",
"content": "<string>",
"media": "application/fhir+json"
}{
"code": 123,
"error": "<string>",
"source_error": {
"code": "<string>",
"message": "<string>"
}
}{
"code": 123,
"error": "<string>",
"source_error": {
"code": "<string>",
"message": "<string>"
}
}Authorizations
The API requires a Bearer token (JWT) for authentication.
Path Parameters
data.transaction_id from the abha.hiu_data_push webhook, not the top-level transaction_id.
content_ref of the entry in data.entries of the abha.hiu_data_push webhook.
Was this page helpful?

