List dataset records
curl --request GET \
--url https://api.eka.care/admin/datasets/v1/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.eka.care/admin/datasets/v1/"
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/admin/datasets/v1/', 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/admin/datasets/v1/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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/admin/datasets/v1/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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/admin/datasets/v1/")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eka.care/admin/datasets/v1/")
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{
"items": [
{
"medication_id": "DRUG1001",
"name": "Dolo 650",
"aliases": [
"Dolo",
"Paracetamol 650"
],
"display_name": "Dolo 650",
"strength": "650mg",
"generic_name": "Paracetamol",
"generic_list": [
"Paracetamol"
],
"form_name": "Tablet",
"manufacturer": "Micro Labs Ltd",
"otc": true,
"is_active": true,
"updated_at": "2026-09-28T10:15:00+00:00"
}
],
"count": 1,
"total": 1,
"limit": 100,
"offset": 0,
"has_more": false
}{
"success": false,
"message": "type must be one of 'medication', 'lab_test', 'symptom', 'diagnosis'"
}Records
List dataset records
Returns one page of the catalog for the given type, newest first. Inactive (soft-deleted or deactivated) records are left out unless show_inactive=1.
Unlike the other endpoints, this one returns the page object directly, without the success / message envelope.
GET
/
admin
/
datasets
/
v1
/
List dataset records
curl --request GET \
--url https://api.eka.care/admin/datasets/v1/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.eka.care/admin/datasets/v1/"
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/admin/datasets/v1/', 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/admin/datasets/v1/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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/admin/datasets/v1/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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/admin/datasets/v1/")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eka.care/admin/datasets/v1/")
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{
"items": [
{
"medication_id": "DRUG1001",
"name": "Dolo 650",
"aliases": [
"Dolo",
"Paracetamol 650"
],
"display_name": "Dolo 650",
"strength": "650mg",
"generic_name": "Paracetamol",
"generic_list": [
"Paracetamol"
],
"form_name": "Tablet",
"manufacturer": "Micro Labs Ltd",
"otc": true,
"is_active": true,
"updated_at": "2026-09-28T10:15:00+00:00"
}
],
"count": 1,
"total": 1,
"limit": 100,
"offset": 0,
"has_more": false
}{
"success": false,
"message": "type must be one of 'medication', 'lab_test', 'symptom', 'diagnosis'"
}Authorizations
Access token for your workspace.
Query Parameters
Which catalog to act on.
Available options:
medication, lab_test, symptom, diagnosis Text search over name, display name and aliases.
Pass 1 to include inactive records.
Available options:
1 Page size.
Required range:
1 <= x <= 1000Number of items to skip.
Required range:
x >= 0Response
A page of records.
A record of the requested type, as returned by the API.
- Medication
- LabTest
- Symptom
- Diagnosis
Show child attributes
Show child attributes
Items on this page.
Items matching the query across all pages.
Was this page helpful?

