Read the outcome
curl --request GET \
--url https://heretic.tech/v1/challenge/{challenge_id} \
--header 'Authorization: <authorization>'import requests
url = "https://heretic.tech/v1/challenge/{challenge_id}"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://heretic.tech/v1/challenge/{challenge_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://heretic.tech/v1/challenge/{challenge_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: <authorization>"
],
]);
$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://heretic.tech/v1/challenge/{challenge_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://heretic.tech/v1/challenge/{challenge_id}")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://heretic.tech/v1/challenge/{challenge_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_bodyRead the outcome
Read a ceremony’s status and the step it reached.
GET
/
v1
/
challenge
/
{challenge_id}
Read the outcome
curl --request GET \
--url https://heretic.tech/v1/challenge/{challenge_id} \
--header 'Authorization: <authorization>'import requests
url = "https://heretic.tech/v1/challenge/{challenge_id}"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://heretic.tech/v1/challenge/{challenge_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://heretic.tech/v1/challenge/{challenge_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: <authorization>"
],
]);
$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://heretic.tech/v1/challenge/{challenge_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://heretic.tech/v1/challenge/{challenge_id}")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://heretic.tech/v1/challenge/{challenge_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_bodystring
required
Bearer hrtc_sk_…Response
{
"api_version": "2",
"challenge_id": "chg_0123456789abcdef0123456789abcdef",
"status": "passed",
"step_reached": "completed",
"findings": [],
"mode": "phone",
"created_at": "2026-09-01T12:00:00.000Z",
"expires_at": "2026-09-01T12:10:00.000Z",
"completed_at": "2026-09-01T12:01:12.000Z"
}
status is pending, passed, contradicted, or not_completed. There is no other state and no fallback.
step_reached names where a not_completed ceremony stopped:
| Step | Meaning |
|---|---|
motion-permission | The visitor declined motion access. |
motion-idle | The device reported no motion. Usually a desktop opened a phone URL. |
tilt-timeout, rotate-timeout | The phone was not held level, or not turned, in time. |
evidence-measured | The measurement session could not be taken. |
ceremony-excluded | The device’s passkey is already registered to another account_ref. |
bytes-issued, ceremony, assertion-received | The passkey step did not finish. |
pending at expires_at becomes not_completed on the next read. findings carry stable id and tier values; an absolute or composite finding makes the outcome contradicted.
Status codes
| Code | Meaning |
|---|---|
401 | Bearer token missing or malformed. |
404 | Unknown key, or a challenge that is not yours. |
429 | More than 600 calls a minute from your address. retry-after is set. |
503 | Store failure. Never passed. |
Related topics
Mint a challengeQuickstartSiteverify endpointDashboard, sites, and keysPrivacy and retention