List CSV import batches
curl --request GET \
--url https://api.eka.care/admin/datasets/v1/batches/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.eka.care/admin/datasets/v1/batches/"
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/batches/', 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/batches/",
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/batches/"
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/batches/")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eka.care/admin/datasets/v1/batches/")
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": [
{
"batch_id": 412,
"entity_type": "medication",
"status": "committed",
"original_filename": "catalog.csv",
"total_rows": 1000,
"valid_rows": 1000,
"error_rows": 0,
"inserted_rows": 12,
"updated_rows": 988,
"reactivated_rows": 0,
"created_at": "2026-09-28T02:00:04+00:00",
"committed_at": "2026-09-28T02:00:09+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 CSV import batches
Your recent CSV uploads for this type, newest first, with their row counts. Use it to confirm that a sync landed.
Returns the page object directly, without the success / message envelope.
GET
/
admin
/
datasets
/
v1
/
batches
/
List CSV import batches
curl --request GET \
--url https://api.eka.care/admin/datasets/v1/batches/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.eka.care/admin/datasets/v1/batches/"
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/batches/', 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/batches/",
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/batches/"
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/batches/")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eka.care/admin/datasets/v1/batches/")
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": [
{
"batch_id": 412,
"entity_type": "medication",
"status": "committed",
"original_filename": "catalog.csv",
"total_rows": 1000,
"valid_rows": 1000,
"error_rows": 0,
"inserted_rows": 12,
"updated_rows": 988,
"reactivated_rows": 0,
"created_at": "2026-09-28T02:00:04+00:00",
"committed_at": "2026-09-28T02:00:09+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 Page size.
Required range:
1 <= x <= 1000Number of items to skip.
Required range:
x >= 0Was this page helpful?

