curl --request GET \
--url https://api.trycactus.com/v1/underwritings/{underwriting_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.trycactus.com/v1/underwritings/{underwriting_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.trycactus.com/v1/underwritings/{underwriting_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.trycactus.com/v1/underwritings/{underwriting_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 => [
"Authorization: Bearer <token>"
],
]);
$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.trycactus.com/v1/underwritings/{underwriting_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.trycactus.com/v1/underwritings/{underwriting_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.trycactus.com/v1/underwritings/{underwriting_id}")
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{
"id": "uw_01J9ZK3M",
"object": "underwriting",
"status": "queued",
"sandbox": true,
"created_at": "2023-11-07T05:31:56Z",
"progress": {
"phase": "<string>",
"detail": "<string>"
},
"property": {},
"end_user_ref": "<string>",
"document_ids": [
"<string>"
],
"billed_total_usd": "<string>",
"completed_at": "2023-11-07T05:31:56Z",
"elapsed_seconds": 640,
"poll_after_seconds": 30,
"report": {
"url": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
},
"summary": {},
"error": {
"code": "<string>",
"message": "<string>"
}
}Retrieve an underwriting run (poll for status)
Live runs take ~20-30 minutes; progress.phase tracks the stage.
Pass wait to long-poll instead of sleeping between calls. While a
run is active the response carries poll_after_seconds and a
Retry-After header — use those rather than a fixed interval.
A run cannot exceed 4 hours; past that the worker fails it and refunds every billed line in full.
curl --request GET \
--url https://api.trycactus.com/v1/underwritings/{underwriting_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.trycactus.com/v1/underwritings/{underwriting_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.trycactus.com/v1/underwritings/{underwriting_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.trycactus.com/v1/underwritings/{underwriting_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 => [
"Authorization: Bearer <token>"
],
]);
$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.trycactus.com/v1/underwritings/{underwriting_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.trycactus.com/v1/underwritings/{underwriting_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.trycactus.com/v1/underwritings/{underwriting_id}")
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{
"id": "uw_01J9ZK3M",
"object": "underwriting",
"status": "queued",
"sandbox": true,
"created_at": "2023-11-07T05:31:56Z",
"progress": {
"phase": "<string>",
"detail": "<string>"
},
"property": {},
"end_user_ref": "<string>",
"document_ids": [
"<string>"
],
"billed_total_usd": "<string>",
"completed_at": "2023-11-07T05:31:56Z",
"elapsed_seconds": 640,
"poll_after_seconds": 30,
"report": {
"url": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
},
"summary": {},
"error": {
"code": "<string>",
"message": "<string>"
}
}Authorizations
Partner API key issued by Cactus.
Path Parameters
Query Parameters
Seconds to hold the request open waiting for the job to reach a
terminal state (long polling). 0 (the default) returns the current
state immediately.
The response returns as soon as the job completes or fails, so a
short job costs one request instead of a sleep loop. If the budget
runs out first the request still returns 200 with the job's
current state — a still-running job is not an error. Check status
and call again.
Capped at 45 seconds, below the 60-second request timeout.
0 <= x <= 45Response
Current run state; report link and summary when complete.
"uw_01J9ZK3M"
"underwriting"queued, ingesting, underwriting, calculating, completed, failed Show child attributes
Show child attributes
Echo of the submitted property.
Echo of the submitted end-user identifier, when one was supplied.
Whole seconds since created_at. Present while the run is active, so a caller can tell a run that just started from one approaching the 4-hour ceiling without doing date math.
640
Recommended seconds to wait before polling again. Present while the run is active; mirrors the Retry-After header. Prefer this over a hard-coded interval.
30
Present when completed.
Show child attributes
Show child attributes
DRAFT — machine-readable headline results (key underwriting metrics).
Show child attributes
Show child attributes