Data On Push
curl --request POST \
--url https://api.eka.care/abdm/v1/hiu/care-context/data/on-push \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"consent_id": "<string>",
"status_response": [
{
"care_context_id": "<string>",
"description": "<string>",
"success": true
}
],
"transaction_id": "<string>"
}
'import requests
url = "https://api.eka.care/abdm/v1/hiu/care-context/data/on-push"
payload = {
"consent_id": "<string>",
"status_response": [
{
"care_context_id": "<string>",
"description": "<string>",
"success": True
}
],
"transaction_id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
consent_id: '<string>',
status_response: [{care_context_id: '<string>', description: '<string>', success: true}],
transaction_id: '<string>'
})
};
fetch('https://api.eka.care/abdm/v1/hiu/care-context/data/on-push', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.post("https://api.eka.care/abdm/v1/hiu/care-context/data/on-push")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"consent_id\": \"<string>\",\n \"status_response\": [\n {\n \"care_context_id\": \"<string>\",\n \"description\": \"<string>\",\n \"success\": true\n }\n ],\n \"transaction_id\": \"<string>\"\n}")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/abdm/v1/hiu/care-context/data/on-push");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
request.AddJsonBody("{\n \"consent_id\": \"<string>\",\n \"status_response\": [\n {\n \"care_context_id\": \"<string>\",\n \"description\": \"<string>\",\n \"success\": true\n }\n ],\n \"transaction_id\": \"<string>\"\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://api.eka.care/abdm/v1/hiu/care-context/data/on-push")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"consent_id\": \"<string>\",\n \"status_response\": [\n {\n \"care_context_id\": \"<string>\",\n \"description\": \"<string>\",\n \"success\": true\n }\n ],\n \"transaction_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"code": 123,
"error": "<string>",
"source_error": {
"code": "<string>",
"message": "<string>"
}
}{
"code": 123,
"error": "<string>",
"source_error": {
"code": "<string>",
"message": "<string>"
}
}Consent and data flow
Push FHIR parsing status
API for HIU to push care context FHIR parsing status
POST
/
abdm
/
v1
/
hiu
/
care-context
/
data
/
on-push
Data On Push
curl --request POST \
--url https://api.eka.care/abdm/v1/hiu/care-context/data/on-push \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"consent_id": "<string>",
"status_response": [
{
"care_context_id": "<string>",
"description": "<string>",
"success": true
}
],
"transaction_id": "<string>"
}
'import requests
url = "https://api.eka.care/abdm/v1/hiu/care-context/data/on-push"
payload = {
"consent_id": "<string>",
"status_response": [
{
"care_context_id": "<string>",
"description": "<string>",
"success": True
}
],
"transaction_id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
consent_id: '<string>',
status_response: [{care_context_id: '<string>', description: '<string>', success: true}],
transaction_id: '<string>'
})
};
fetch('https://api.eka.care/abdm/v1/hiu/care-context/data/on-push', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.post("https://api.eka.care/abdm/v1/hiu/care-context/data/on-push")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"consent_id\": \"<string>\",\n \"status_response\": [\n {\n \"care_context_id\": \"<string>\",\n \"description\": \"<string>\",\n \"success\": true\n }\n ],\n \"transaction_id\": \"<string>\"\n}")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/abdm/v1/hiu/care-context/data/on-push");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
request.AddJsonBody("{\n \"consent_id\": \"<string>\",\n \"status_response\": [\n {\n \"care_context_id\": \"<string>\",\n \"description\": \"<string>\",\n \"success\": true\n }\n ],\n \"transaction_id\": \"<string>\"\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://api.eka.care/abdm/v1/hiu/care-context/data/on-push")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"consent_id\": \"<string>\",\n \"status_response\": [\n {\n \"care_context_id\": \"<string>\",\n \"description\": \"<string>\",\n \"success\": true\n }\n ],\n \"transaction_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"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
Body
application/json
Response
Accepted
Was this page helpful?

