curl --request GET \
--url https://api.trycactus.com/v1/extractions/{extraction_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.trycactus.com/v1/extractions/{extraction_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/extractions/{extraction_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/extractions/{extraction_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/extractions/{extraction_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/extractions/{extraction_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.trycactus.com/v1/extractions/{extraction_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": "ext_01J9ZJYA",
"object": "extraction",
"status": "processing",
"documents": [
{
"document_id": "<string>",
"document_type": "offering_memorandum",
"schema_version": "rent_roll.v1",
"status": "processing",
"phase": "extracting",
"billed": {
"rate_code": "rent_roll",
"units": 1,
"amount_usd": "12.00"
},
"error": {
"code": "<string>",
"message": "<string>"
}
}
],
"sandbox": true,
"created_at": "2023-11-07T05:31:56Z",
"billed_total_usd": "12.00",
"completed_at": "2023-11-07T05:31:56Z",
"elapsed_seconds": 42,
"poll_after_seconds": 15,
"result_url": "<string>"
}Retrieve an extraction job (poll for status)
How long to expect depends on the document type. T-12s, offering
memoranda and other documents usually finish in 2-5 minutes. Rent
rolls run a second consolidation phase and take longer: most land
within 10 minutes, and a large one can run to 30. See
documents[].phase to tell the phases apart.
Those are measured over a live corpus, not targets — build against
poll_after_seconds rather than an expected duration.
Pass wait to long-poll instead of sleeping between calls. While a
job is running the response carries poll_after_seconds and a
Retry-After header — use those rather than a fixed interval.
A job cannot run longer than 60 minutes; past that the worker fails it and refunds every billed line in full.
curl --request GET \
--url https://api.trycactus.com/v1/extractions/{extraction_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.trycactus.com/v1/extractions/{extraction_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/extractions/{extraction_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/extractions/{extraction_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/extractions/{extraction_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/extractions/{extraction_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.trycactus.com/v1/extractions/{extraction_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": "ext_01J9ZJYA",
"object": "extraction",
"status": "processing",
"documents": [
{
"document_id": "<string>",
"document_type": "offering_memorandum",
"schema_version": "rent_roll.v1",
"status": "processing",
"phase": "extracting",
"billed": {
"rate_code": "rent_roll",
"units": 1,
"amount_usd": "12.00"
},
"error": {
"code": "<string>",
"message": "<string>"
}
}
],
"sandbox": true,
"created_at": "2023-11-07T05:31:56Z",
"billed_total_usd": "12.00",
"completed_at": "2023-11-07T05:31:56Z",
"elapsed_seconds": 42,
"poll_after_seconds": 15,
"result_url": "<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 job state; includes billing and, when complete, a pointer to the result.
"ext_01J9ZJYA"
"extraction"processing, completed, failed Show child attributes
Show child attributes
"12.00"
Whole seconds since created_at. Present while processing, so a caller can tell a job that just started from one approaching the 60-minute ceiling without doing date math.
42
Recommended seconds to wait before polling again. Present while processing; mirrors the Retry-After header. Prefer this over a hard-coded interval.
15
Convenience link to /v1/extractions/{id}/result; present when completed.