JavaScript
const response = await api.quality.getBatchJobStatus();response = api.quality.getBatchJobStatus()curl --request GET \
--url https://surveys.getaftercare.com/api/v1/data-quality/batch/{batchJobId} \
--header 'X-Aftercare-Key: <api-key>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://surveys.getaftercare.com/api/v1/data-quality/batch/{batchJobId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Aftercare-Key: <api-key>"
],
]);
$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://surveys.getaftercare.com/api/v1/data-quality/batch/{batchJobId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Aftercare-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://surveys.getaftercare.com/api/v1/data-quality/batch/{batchJobId}")
.header("X-Aftercare-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://surveys.getaftercare.com/api/v1/data-quality/batch/{batchJobId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Aftercare-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"batchJobId": "123e4567-e89b-12d3-a456-426614174000",
"status": "completed",
"results": {
"items": [],
"nextCursor": null
}
}{
"code": "INVALID_REQUEST",
"message": "Invalid request parameters",
"details": {
"question": "Question is required"
}
}{
"code": "INVALID_API_KEY",
"message": "Invalid or missing API key"
}{
"code": "NOT_FOUND",
"message": "Requested resource not found"
}{
"code": "INTERNAL_ERROR",
"message": "An unexpected error occurred"
}AI Data Quality Evaluation
Get Data Quality Batch Job Status
Retrieves the current status and results of a batch evaluation job
GET
/
api
/
v1
/
data-quality
/
batch
/
{batchJobId}
JavaScript
const response = await api.quality.getBatchJobStatus();response = api.quality.getBatchJobStatus()curl --request GET \
--url https://surveys.getaftercare.com/api/v1/data-quality/batch/{batchJobId} \
--header 'X-Aftercare-Key: <api-key>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://surveys.getaftercare.com/api/v1/data-quality/batch/{batchJobId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Aftercare-Key: <api-key>"
],
]);
$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://surveys.getaftercare.com/api/v1/data-quality/batch/{batchJobId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Aftercare-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://surveys.getaftercare.com/api/v1/data-quality/batch/{batchJobId}")
.header("X-Aftercare-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://surveys.getaftercare.com/api/v1/data-quality/batch/{batchJobId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Aftercare-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"batchJobId": "123e4567-e89b-12d3-a456-426614174000",
"status": "completed",
"results": {
"items": [],
"nextCursor": null
}
}{
"code": "INVALID_REQUEST",
"message": "Invalid request parameters",
"details": {
"question": "Question is required"
}
}{
"code": "INVALID_API_KEY",
"message": "Invalid or missing API key"
}{
"code": "NOT_FOUND",
"message": "Requested resource not found"
}{
"code": "INTERNAL_ERROR",
"message": "An unexpected error occurred"
}Authorizations
API key for authentication
Path Parameters
ID of the batch job to check
⌘I

