Verify Trace
curl --request POST \
--url https://api.tracelm.ai/api/v1/verification/traces/{trace_id}/verify \
--header 'Content-Type: application/json' \
--data '
{
"force_reverify": true,
"verifiers": [
{}
],
"async_mode": true
}
'import requests
url = "https://api.tracelm.ai/api/v1/verification/traces/{trace_id}/verify"
payload = {
"force_reverify": True,
"verifiers": [{}],
"async_mode": True
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({force_reverify: true, verifiers: [{}], async_mode: true})
};
fetch('https://api.tracelm.ai/api/v1/verification/traces/{trace_id}/verify', 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.tracelm.ai/api/v1/verification/traces/{trace_id}/verify",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'force_reverify' => true,
'verifiers' => [
[
]
],
'async_mode' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.tracelm.ai/api/v1/verification/traces/{trace_id}/verify"
payload := strings.NewReader("{\n \"force_reverify\": true,\n \"verifiers\": [\n {}\n ],\n \"async_mode\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.tracelm.ai/api/v1/verification/traces/{trace_id}/verify")
.header("Content-Type", "application/json")
.body("{\n \"force_reverify\": true,\n \"verifiers\": [\n {}\n ],\n \"async_mode\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tracelm.ai/api/v1/verification/traces/{trace_id}/verify")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"force_reverify\": true,\n \"verifiers\": [\n {}\n ],\n \"async_mode\": true\n}"
response = http.request(request)
puts response.read_bodyVerification API
Verify Trace
Trigger verification for a trace
POST
/
api
/
v1
/
verification
/
traces
/
{trace_id}
/
verify
Verify Trace
curl --request POST \
--url https://api.tracelm.ai/api/v1/verification/traces/{trace_id}/verify \
--header 'Content-Type: application/json' \
--data '
{
"force_reverify": true,
"verifiers": [
{}
],
"async_mode": true
}
'import requests
url = "https://api.tracelm.ai/api/v1/verification/traces/{trace_id}/verify"
payload = {
"force_reverify": True,
"verifiers": [{}],
"async_mode": True
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({force_reverify: true, verifiers: [{}], async_mode: true})
};
fetch('https://api.tracelm.ai/api/v1/verification/traces/{trace_id}/verify', 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.tracelm.ai/api/v1/verification/traces/{trace_id}/verify",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'force_reverify' => true,
'verifiers' => [
[
]
],
'async_mode' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.tracelm.ai/api/v1/verification/traces/{trace_id}/verify"
payload := strings.NewReader("{\n \"force_reverify\": true,\n \"verifiers\": [\n {}\n ],\n \"async_mode\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.tracelm.ai/api/v1/verification/traces/{trace_id}/verify")
.header("Content-Type", "application/json")
.body("{\n \"force_reverify\": true,\n \"verifiers\": [\n {}\n ],\n \"async_mode\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tracelm.ai/api/v1/verification/traces/{trace_id}/verify")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"force_reverify\": true,\n \"verifiers\": [\n {}\n ],\n \"async_mode\": true\n}"
response = http.request(request)
puts response.read_bodyStarts verification for a trace and computes trust/claim-level results.
Path Parameters
string
required
Trace UUID.
Body
boolean
default:"false"
Re-run verification even if trace is already verified.
array
Optional verifier list:
kb, web, multi_model, citation.boolean
default:"true"
Run in background when true.
Response
{
"trace_id": "...",
"status": "pending",
"message": "Verification started in background. Poll GET /api/v1/verification/traces/{trace_id} for results.",
"trust_score": null
}
⌘I

