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));HttpResponse<String> response = Unirest.get("https://api.eka.care/admin/datasets/v1/batches/")
.header("Authorization", "Bearer <token>")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/admin/datasets/v1/batches/");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
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": "<string>",
"errors": [
{
"index": 123,
"field": "<string>",
"msg": "<string>",
"value": "<unknown>"
}
]
}Datasets
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));HttpResponse<String> response = Unirest.get("https://api.eka.care/admin/datasets/v1/batches/")
.header("Authorization", "Bearer <token>")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/admin/datasets/v1/batches/");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
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": "<string>",
"errors": [
{
"index": 123,
"field": "<string>",
"msg": "<string>",
"value": "<unknown>"
}
]
}Authorizations
Access token for your workspace.
Query Parameters
Which catalog to act on.
Available options:
medication, lab_investigation, lab_result, lab_panel, symptom, diagnosis Page size.
Required range:
1 <= x <= 1000Number of items to skip.
Required range:
x >= 0Was this page helpful?

