Get Eka User by ID
curl --request GET \
--url https://api.eka.care/cdr/v1/ekauser/{user_id}/ \
--header 'auth: <auth>'import requests
url = "https://api.eka.care/cdr/v1/ekauser/{user_id}/"
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/ekauser/{user_id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.get("https://api.eka.care/cdr/v1/ekauser/{user_id}/")
.header("auth", "<auth>")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/cdr/v1/ekauser/{user_id}/");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("auth", "<auth>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://api.eka.care/cdr/v1/ekauser/{user_id}/")
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",
"user": {
"id": "176917697553584",
"firstname": "Amit",
"lastname": "Kumar",
"mobile": "+919876543210",
"email": "amit.kumar@example.com",
"is_admin": false,
"seat_type": "b",
"doctors": [
{
"id": "do1769174683513",
"firstname": "Rajesh",
"lastname": "Sharma"
}
],
"clinics": [
{
"id": "c-ab2c-34f2d-2gwd-2g2g",
"name": "Sunrise Clinic"
}
],
"partner_id": "Part_user_1"
}
}{
"status": "error",
"error": {
"code": "NOT_FOUND",
"message": "User not found. Please check the provided ID."
}
}Config management APIs
Get Eka User by ID
Overview
Retrieve a single Eka User’s profile using either the Eka ID or the partner-provided ID.
Endpoint: {{HOST}}/cdr/v1/ekauser/{user_id}/
Method: GET
Path Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| user_id | string | Eka User’s Eka ID or partner-provided ID | Yes |
GET
/
cdr
/
v1
/
ekauser
/
{user_id}
/
Get Eka User by ID
curl --request GET \
--url https://api.eka.care/cdr/v1/ekauser/{user_id}/ \
--header 'auth: <auth>'import requests
url = "https://api.eka.care/cdr/v1/ekauser/{user_id}/"
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/ekauser/{user_id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.get("https://api.eka.care/cdr/v1/ekauser/{user_id}/")
.header("auth", "<auth>")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/cdr/v1/ekauser/{user_id}/");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("auth", "<auth>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://api.eka.care/cdr/v1/ekauser/{user_id}/")
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",
"user": {
"id": "176917697553584",
"firstname": "Amit",
"lastname": "Kumar",
"mobile": "+919876543210",
"email": "amit.kumar@example.com",
"is_admin": false,
"seat_type": "b",
"doctors": [
{
"id": "do1769174683513",
"firstname": "Rajesh",
"lastname": "Sharma"
}
],
"clinics": [
{
"id": "c-ab2c-34f2d-2gwd-2g2g",
"name": "Sunrise Clinic"
}
],
"partner_id": "Part_user_1"
}
}{
"status": "error",
"error": {
"code": "NOT_FOUND",
"message": "User not found. Please check the provided ID."
}
}Headers
The auth token of the business. It is used to authenticate the client. This should be fetched from auth api.
Example:
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJiX2lkIjoiMTIzNDU2IiwiY2xpZW50X2lkIjoiNzg5MCIsImV4dHJhX2ZpZWxkIjoiZXh0cmFfZmllbGRfZGF0YSJ9.q9KzBI6f4l3OyM_EkB5Quq0l9EEMFh5JS-fx3F_PHUM"
Path Parameters
Eka User's Eka ID or partner-provided ID
Example:
"176917697553584"
Was this page helpful?

