REST API Reference

Integrate TruthCheck verification directly into your applications.

POST /api/verify

Description

Submit a text claim for verification. The system will process the claim and return a verdict with supporting evidence.

Request Body

{
  "claim": "The Eiffel Tower is located in London"
}

Response

{
  "label": "False",
  "confidence": 0.98,
  "evidence": "**Analyzed 4 sources**...",
  "claim": "The Eiffel Tower is located in London"
}

Status Codes

200 Successful verification.
400 Bad request (missing claim).
500 Internal server error.