Get prediction status
curl --request GET \
--url https://api.halfpagetechnologies.com/backend/api/v1/predict/{prediction_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.halfpagetechnologies.com/backend/api/v1/predict/{prediction_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.halfpagetechnologies.com/backend/api/v1/predict/{prediction_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.halfpagetechnologies.com/backend/api/v1/predict/{prediction_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.halfpagetechnologies.com/backend/api/v1/predict/{prediction_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.halfpagetechnologies.com/backend/api/v1/predict/{prediction_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.halfpagetechnologies.com/backend/api/v1/predict/{prediction_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{
"summary": "Still running (poll again)",
"value": {
"created_at": "2026-07-01T12:00:00Z",
"image_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"model_id": "c0ffee00-1234-5678-9abc-def012345678",
"prediction_id": "b1e5c7d2-9a4f-4c3b-8e2d-1f6a7b8c9d0e",
"status": "STARTED"
}
}{
"detail": "Requires authentication"
}{
"detail": "Image with id 3fa85f64-5717-4562-b3fc-2c963f66afa6 not found"
}{
"detail": "Input should be a valid UUID"
}predict
Get prediction status
Poll a prediction until it finishes.
Keep polling until status is COMPLETED (or FAILED). A completed run
carries the segmentation_id of the segmentation it produced, plus the
cell_count detected — feed the segmentation_id into the /export/*
endpoints. A non-UUID prediction_id is rejected with 422 before it
reaches the database.
GET
/
api
/
v1
/
predict
/
{prediction_id}
Get prediction status
curl --request GET \
--url https://api.halfpagetechnologies.com/backend/api/v1/predict/{prediction_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.halfpagetechnologies.com/backend/api/v1/predict/{prediction_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.halfpagetechnologies.com/backend/api/v1/predict/{prediction_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.halfpagetechnologies.com/backend/api/v1/predict/{prediction_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.halfpagetechnologies.com/backend/api/v1/predict/{prediction_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.halfpagetechnologies.com/backend/api/v1/predict/{prediction_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.halfpagetechnologies.com/backend/api/v1/predict/{prediction_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{
"summary": "Still running (poll again)",
"value": {
"created_at": "2026-07-01T12:00:00Z",
"image_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"model_id": "c0ffee00-1234-5678-9abc-def012345678",
"prediction_id": "b1e5c7d2-9a4f-4c3b-8e2d-1f6a7b8c9d0e",
"status": "STARTED"
}
}{
"detail": "Requires authentication"
}{
"detail": "Image with id 3fa85f64-5717-4562-b3fc-2c963f66afa6 not found"
}{
"detail": "Input should be a valid UUID"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Response
Successful Response
A prediction's polling snapshot. segmentation_id and cell_count are
populated only once status is COMPLETED.
Available options:
SUBMITTED, STARTED, COMPLETED, FAILED The result handle — pass it to the /export/* endpoints.
Number of ROIs detected, once the run completed.