82trust / 100

Verify

by TruthPal in Security & trust

x402 APIPassing, checked 3 h ago

Check whether a supplied public source supports or contradicts a factual claim. Validate citations in AI-generated answers against the supplied URL. TruthPal returns source-grounded evidence and a supported, contradicted, or uncertain verdict; when the source is insufficient, the result is uncertain. It assesses only the supplied source and does not independently corroborate the claim.

POST https://api.thetruthpal.com/v1/verify

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
165 ms typical, 165 ms slowest 5%
Last check
3 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://api.thetruthpal.com/v1/verify" \
  -H "content-type: application/json" \
  -d '{"claim":"The Moon formed several billion years ago","source_url":"https://science.nasa.gov/moon/facts/"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.03:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.thetruthpal.com%2Fv1%2Fverify
const res = await pay("https://api.thetruthpal.com/v1/verify", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"claim":"The Moon formed several billion years ago","source_url":"https://science.nasa.gov/moon/facts/"}),
});
console.log(await res.json());

Example input

{
  "claim": "The Moon formed several billion years ago",
  "source_url": "https://science.nasa.gov/moon/facts/"
}

Example output

{
  "confidence": 0.94,
  "contradicting_evidence": [],
  "evidence": [
    "The source states that the Moon formed about 4.5 billion years ago."
  ],
  "reasoning": "The source directly supports the claim that the Moon formed several billion years ago.",
  "source_freshness": "current",
  "supporting_evidence": [
    "The source states that the Moon formed about 4.5 billion years ago."
  ],
  "verdict": "supported"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402165 ms$0.02