Skip to main content
POST
/
v1
/
truth
/
verify
Verify Truth Claim
curl --request POST \
  --url https://api.truthlocks.com/v1/truth/verify \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "claim_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
import requests

url = "https://api.truthlocks.com/v1/truth/verify"

payload = { "claim_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({claim_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'})
};

fetch('https://api.truthlocks.com/v1/truth/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.truthlocks.com/v1/truth/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([
'claim_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);

$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.truthlocks.com/v1/truth/verify"

payload := strings.NewReader("{\n \"claim_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("X-API-Key", "<api-key>")
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.truthlocks.com/v1/truth/verify")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"claim_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.truthlocks.com/v1/truth/verify")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"claim_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}"

response = http.request(request)
puts response.read_body
{
  "valid": true,
  "verification_result": {},
  "receipt": {}
}
{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}
{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}
{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}
{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}
Initiates the verification process for a truth claim. You can choose from multiple verification methods depending on the required assurance level and speed. The claim transitions from pending to verifying and a verification job is queued. Verification results are delivered asynchronously. Poll the Get Truth Claim endpoint or subscribe to the truth_claim.verified webhook event to receive results.

Authentication

Requires X-API-Key header or Bearer JWT token. Tenant-scoped via X-Tenant-ID.

Path Parameters

id
string
required
The unique identifier of the truth claim to verify. Format: maip-tc:ULID.

Request Body

verification_method
string
required
The method to use for verification. One of: - witness — multi-agent witness consensus (fastest, fully automated) - ai — AI-powered analysis using document understanding and anomaly detection - human — routes to a human reviewer for manual assessment (highest assurance)
priority
string
default:"normal"
Processing priority for the verification job. One of: - normal — standard queue priority - high — expedited processing, prioritized in the verification queue

Response

id
string
The truth claim identifier.
status
string
Updated status. Transitions to verifying upon successful submission.
verification_id
string
Unique identifier for the verification job. Use this to correlate webhook events.
verification_method
string
The method being used for verification.
estimated_completion
string
ISO 8601 estimated completion timestamp. Accuracy varies by method: witness (minutes), ai (minutes to hours), human (hours to days).

Verification Methods

MethodAssuranceSpeedDescription
witnessMediumMinutesMulti-agent quorum votes on claim validity
aiMedium-HighMinutes-HoursAI models analyze evidence and detect anomalies
humanHighestHours-DaysHuman expert reviews claim and evidence
You can trigger multiple verification methods for the same claim to achieve layered assurance. Each method runs independently and results are aggregated.

Authorizations

X-API-Key
string
header
required

API key for machine-to-machine authentication

Body

application/json
claim_id
string<uuid>
required

Claim to verify

Response

Verification result

valid
boolean
verification_result
object
receipt
object