Get All HIP Users of a Business
curl --request GET \
--url https://api.eka.care/cdr/v1/hipusers/ \
--header 'auth: <auth>'import requests
url = "https://api.eka.care/cdr/v1/hipusers/"
headers = {"auth": "<auth>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {auth: '<auth>'}};
fetch('https://api.eka.care/cdr/v1/hipusers/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eka.care/cdr/v1/hipusers/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"auth: <auth>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.eka.care/cdr/v1/hipusers/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("auth", "<auth>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.eka.care/cdr/v1/hipusers/")
.header("auth", "<auth>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eka.care/cdr/v1/hipusers/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["auth"] = '<auth>'
response = http.request(request)
puts response.read_body{
"status": "success",
"users": [
{
"id": "176338032692057",
"firstname": "Manoharan",
"lastname": "Mohan",
"mobile": "9840254450",
"email": "criticcaredr@gmail.com",
"is_admin": true,
"seat_type": "p",
"doctors": [
{
"id": "do1763380327031",
"firstname": "Manoharan",
"lastname": "Mohan"
}
],
"clinics": [
{
"id": "c-1506ace382e94bf5ba9751fb",
"name": "Manushree Hospital"
}
],
"partner_id": null
}
]
}{
"status": "error",
"message": "You do not have permission to access HIP users for this business"
}{
"status": "error",
"message": "An unexpected error occurred on the server"
}User APIs
Get All HIP Users of a Business
This API retrieves the list of all HIP users associated with a business. The response includes each user’s details along with their linked doctors and clinics.
Use this API to fetch all HIP users for a business account in one call.
GET
/
cdr
/
v1
/
hipusers
/
Get All HIP Users of a Business
curl --request GET \
--url https://api.eka.care/cdr/v1/hipusers/ \
--header 'auth: <auth>'import requests
url = "https://api.eka.care/cdr/v1/hipusers/"
headers = {"auth": "<auth>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {auth: '<auth>'}};
fetch('https://api.eka.care/cdr/v1/hipusers/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eka.care/cdr/v1/hipusers/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"auth: <auth>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.eka.care/cdr/v1/hipusers/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("auth", "<auth>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.eka.care/cdr/v1/hipusers/")
.header("auth", "<auth>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eka.care/cdr/v1/hipusers/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["auth"] = '<auth>'
response = http.request(request)
puts response.read_body{
"status": "success",
"users": [
{
"id": "176338032692057",
"firstname": "Manoharan",
"lastname": "Mohan",
"mobile": "9840254450",
"email": "criticcaredr@gmail.com",
"is_admin": true,
"seat_type": "p",
"doctors": [
{
"id": "do1763380327031",
"firstname": "Manoharan",
"lastname": "Mohan"
}
],
"clinics": [
{
"id": "c-1506ace382e94bf5ba9751fb",
"name": "Manushree Hospital"
}
],
"partner_id": null
}
]
}{
"status": "error",
"message": "You do not have permission to access HIP users for this business"
}{
"status": "error",
"message": "An unexpected error occurred on the server"
}Was this page helpful?
⌘I

