Poll an async scoring job.
curl --request GET \
--url https://api.keplerinsights.us/v1/jobs/{job_id} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.keplerinsights.us/v1/jobs/{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://api.keplerinsights.us/v1/jobs/{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://api.keplerinsights.us/v1/jobs/{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://api.keplerinsights.us/v1/jobs/{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://api.keplerinsights.us/v1/jobs/{job_id}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.keplerinsights.us/v1/jobs/{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{
"mode": "<string>",
"job_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "pending",
"domain": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"result_ref": {
"domain": "<string>",
"scored_at": "2023-11-07T05:31:56Z"
},
"score_url": "/v1/score/stripe.com",
"failure_reason": "sfn_failed"
}{
"error": "unauthorized",
"message": "<string>",
"reason": "<string>"
}{
"error": "unauthorized",
"message": "<string>",
"reason": "<string>"
}{
"error": "unauthorized",
"message": "<string>",
"reason": "<string>"
}Endpoints
GET /v1/jobs/{job_id}
Poll an async scoring job.
GET
/
v1
/
jobs
/
{job_id}
Poll an async scoring job.
curl --request GET \
--url https://api.keplerinsights.us/v1/jobs/{job_id} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.keplerinsights.us/v1/jobs/{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://api.keplerinsights.us/v1/jobs/{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://api.keplerinsights.us/v1/jobs/{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://api.keplerinsights.us/v1/jobs/{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://api.keplerinsights.us/v1/jobs/{job_id}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.keplerinsights.us/v1/jobs/{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{
"mode": "<string>",
"job_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "pending",
"domain": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"result_ref": {
"domain": "<string>",
"scored_at": "2023-11-07T05:31:56Z"
},
"score_url": "/v1/score/stripe.com",
"failure_reason": "sfn_failed"
}{
"error": "unauthorized",
"message": "<string>",
"reason": "<string>"
}{
"error": "unauthorized",
"message": "<string>",
"reason": "<string>"
}{
"error": "unauthorized",
"message": "<string>",
"reason": "<string>"
}Returns the current state of a cold-scoring job. Jobs are created automatically by
Status is settled lazily — the first poll that observes a terminal underlying execution flips the row. A job that’s never polled stays
Once you have the
If you’re proxying multiple downstream users through one Kepler key, you’ll need to map their session IDs to your
POST /v1/score when no fresh cached record exists.
Status transitions
status | Meaning |
|---|---|
pending | The underlying cold pipeline is still running. Poll again in ~5s. |
complete | The pipeline succeeded. result_ref and score_url are populated. |
failed | The pipeline ended in a non-success terminal state. failure_reason explains. |
pending in storage until its 30-day TTL.
Reading a complete job
{
"job_id": "9f0c2d83-...",
"status": "complete",
"domain": "stripe.com",
"created_at": "2026-05-12T18:30:00Z",
"completed_at": "2026-05-12T18:30:43Z",
"result_ref": { "domain": "stripe.com", "scored_at": "2026-05-12T18:30:43Z" },
"score_url": "/v1/score/stripe.com"
}
score_url, do GET https://api.keplerinsights.us/v1/score/stripe.com to read the actual score. The two-step is intentional: the job row stays small and cheap; the full score response stays the same shape regardless of how it was triggered.
Failure reasons
failure_reason | Meaning |
|---|---|
sfn_failed | The pipeline ended in FAILED (engine raised an exception). |
sfn_timed_out | The pipeline hit its task timeout. Usually transient — retry. |
sfn_aborted | An operator manually aborted the run. Should never happen in production. |
scoring_completed_no_record | The pipeline succeeded but no score-history row appeared. Possible cause: insufficient data stub. Check /v1/company/{domain}/confidence. |
Cross-user access
Job IDs are server-side bound to the API key that created them. Polling someone else’s job ID returns:HTTP/1.1 403 Forbidden
{ "error": "forbidden" }
job_ids yourself.
Expiration
Jobs are kept 30 days then auto-expire. Polling an expired job returns404. Don’t rely on job rows for long-term history; use GET /v1/score/{domain}/history for that.Authorizations
Live keys are prefixed ki_live_, test keys ki_test_. Issue + revoke
keys at https://console.keplerinsights.us. Never embed a key in client-side
code — every endpoint is backend-to-API only.
Path Parameters
Response
Job state.
Available options:
pending, complete, failed Present on complete. Use score_url to fetch the actual record.
Show child attributes
Show child attributes
Example:
"/v1/score/stripe.com"
Available options:
sfn_failed, sfn_timed_out, sfn_aborted, scoring_completed_no_record 
