Back to home

API Documentation

RESTful API for verifying claims, generating proofs, and searching verified truths.

Quick Start

All endpoints return a consistent response format with success, data, and meta fields.

Base URL

https://truthgit.com

Content Type

application/json

Endpoints

POST/api/verify

Verify a claim using multi-validator AI consensus

claim- string (required) - The statement to verify
domain- string (optional) - Knowledge domain (physics, history, programming, etc.)
POST/api/prove

Generate a cryptographic proof certificate for a verified claim

claim- string (required) - The claim to prove
domain- string (optional) - Knowledge domain
format- string (optional) - "json" or "compact" (base64)
POST/api/verify-proof

Verify a proof certificate independently

certificate- object|string (required) - The certificate (JSON or base64)
GET/api/status

Get the current status of the TruthGit repository

No parameters required

Response Format

All API responses follow this structure for easy parsing by AI agents:

{
  "success": boolean,      // Was the operation successful?
  "data": object | null,   // Response payload
  "error": string | null,  // Error message (if success=false)
  "meta": {
    "timestamp": string,   // ISO 8601 timestamp
    "processingTime": number // Milliseconds
  }
}