curl --request GET \
--url https://external.nectarclimate.com/v2.2/job/{job_id} \
--header 'X-API-KEY: <api-key>'import requests
url = "https://external.nectarclimate.com/v2.2/job/{job_id}"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://external.nectarclimate.com/v2.2/job/{job_id}', 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://external.nectarclimate.com/v2.2/job/{job_id}",
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-API-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://external.nectarclimate.com/v2.2/job/{job_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-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://external.nectarclimate.com/v2.2/job/{job_id}")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://external.nectarclimate.com/v2.2/job/{job_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"status": "PENDING",
"parsedDocumentIds": [
"<string>"
],
"duplicates": 123,
"duplicateDocumentIds": [
"<string>"
],
"nonUtilityDocumentIds": [
"<string>"
],
"passwordProtectedDocumentIds": [
"<string>"
],
"supplementalDocumentIds": [
"<string>"
],
"errorDocumentIds": [
"<string>"
],
"terminationReason": "<string>"
}{
"detail": "<string>",
"error": "<string>"
}{
"detail": "<string>",
"error": "<string>"
}Get Job Status Details
Gets the status and details of a document processing job given a job id. When you submit documents through our API, each submission creates a job that can be tracked. The job status will always be one of ‘PENDING’, ‘COMPLETED’, or ‘FAILED’. COMPLETED includes jobs that finished without creating new documents — for example duplicates, non-utility files, or password-protected files. In general jobs will not fail due to retry policies. However, when a job does show ‘FAILED’ as the status, please get in touch with our team at support@nectarclimate.com. When the job is completed, this endpoint returns the ids of processed documents plus any duplicates, non-utility files, password-protected files, and processing errors. You can also subscribe to the job.completed.v2 webhook instead of polling.
curl --request GET \
--url https://external.nectarclimate.com/v2.2/job/{job_id} \
--header 'X-API-KEY: <api-key>'import requests
url = "https://external.nectarclimate.com/v2.2/job/{job_id}"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://external.nectarclimate.com/v2.2/job/{job_id}', 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://external.nectarclimate.com/v2.2/job/{job_id}",
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-API-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://external.nectarclimate.com/v2.2/job/{job_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-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://external.nectarclimate.com/v2.2/job/{job_id}")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://external.nectarclimate.com/v2.2/job/{job_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"status": "PENDING",
"parsedDocumentIds": [
"<string>"
],
"duplicates": 123,
"duplicateDocumentIds": [
"<string>"
],
"nonUtilityDocumentIds": [
"<string>"
],
"passwordProtectedDocumentIds": [
"<string>"
],
"supplementalDocumentIds": [
"<string>"
],
"errorDocumentIds": [
"<string>"
],
"terminationReason": "<string>"
}{
"detail": "<string>",
"error": "<string>"
}{
"detail": "<string>",
"error": "<string>"
}Response
Status of a document upload job, including created documents and files that were duplicates, non-utility, password-protected, or failed processing.
The current status of the job, one of: PENDING, COMPLETED, FAILED. COMPLETED includes jobs that produced no new documents (duplicates, non-utility files, password-protected files, or processing errors). If the job status is FAILED, please contact our support team.
PENDING- PendingCOMPLETED- CompletedFAILED- Failed
PENDING, COMPLETED, FAILED