Get Batch Status
curl --request GET \
--url https://api.embedreach.com/api/batches/{batchId}import requests
url = "https://api.embedreach.com/api/batches/{batchId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.embedreach.com/api/batches/{batchId}', 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.embedreach.com/api/batches/{batchId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.embedreach.com/api/batches/{batchId}"
req, _ := http.NewRequest("GET", url, nil)
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.embedreach.com/api/batches/{batchId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.embedreach.com/api/batches/{batchId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"success": true,
"message": "<string>",
"data": {
"batchId": "<string>",
"status": "success",
"batchType": "PARTNER_RESOURCE_JSON_INGEST",
"progress": {
"totalRecords": 123,
"processedRecords": 123,
"successfulRecords": 123,
"pendingRecords": 123,
"failedRecords": 123,
"successRate": 123
},
"completedAt": "<string>",
"startedAt": "<string>",
"createdAt": "<string>",
"schemaName": "<string>",
"schemaDefinitionId": "<string>",
"errors": {
"summary": {},
"details": {},
"recordErrors": [
"<string>"
],
"message": "<string>"
},
"pendingResources": [
{
"id": "<string>",
"resourceExternalId": "<string>",
"schemaDefinitionId": "<string>",
"missingDependencies": [
{
"schemaDefinitionId": "<string>",
"externalId": "<string>",
"schemaName": "<string>"
}
],
"expiresAt": "<string>",
"createdAt": "<string>",
"schemaName": "<string>"
}
]
}
}{
"message": "<string>",
"success": false,
"errors": [
"<string>"
]
}Batch Operations
Get Batch Status
Retrieves the current status, progress, and any error details for a batch operation.
GET
/
api
/
batches
/
{batchId}
Get Batch Status
curl --request GET \
--url https://api.embedreach.com/api/batches/{batchId}import requests
url = "https://api.embedreach.com/api/batches/{batchId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.embedreach.com/api/batches/{batchId}', 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.embedreach.com/api/batches/{batchId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.embedreach.com/api/batches/{batchId}"
req, _ := http.NewRequest("GET", url, nil)
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.embedreach.com/api/batches/{batchId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.embedreach.com/api/batches/{batchId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"success": true,
"message": "<string>",
"data": {
"batchId": "<string>",
"status": "success",
"batchType": "PARTNER_RESOURCE_JSON_INGEST",
"progress": {
"totalRecords": 123,
"processedRecords": 123,
"successfulRecords": 123,
"pendingRecords": 123,
"failedRecords": 123,
"successRate": 123
},
"completedAt": "<string>",
"startedAt": "<string>",
"createdAt": "<string>",
"schemaName": "<string>",
"schemaDefinitionId": "<string>",
"errors": {
"summary": {},
"details": {},
"recordErrors": [
"<string>"
],
"message": "<string>"
},
"pendingResources": [
{
"id": "<string>",
"resourceExternalId": "<string>",
"schemaDefinitionId": "<string>",
"missingDependencies": [
{
"schemaDefinitionId": "<string>",
"externalId": "<string>",
"schemaName": "<string>"
}
],
"expiresAt": "<string>",
"createdAt": "<string>",
"schemaName": "<string>"
}
]
}
}{
"message": "<string>",
"success": false,
"errors": [
"<string>"
]
}