curl -X POST 'https://api.checkthat-ai.com/chat' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_API_KEY' \ -d '{ "user_query": "The COVID-19 vaccine contains microchips that track people", "model": "gpt-4" }'
Copy
{ "conversation_id": "conv_456", "response": "Based on current scientific evidence, this claim requires nuance...", "claims_identified": [ { "claim": "COVID-19 vaccine contains microchips", "confidence": 0.95, "category": "health_misinformation" } ], "fact_check_result": { "verdict": "false", "evidence_sources": ["CDC", "WHO", "peer_reviewed_studies"], "explanation": "No credible evidence supports the presence of microchips..." }}
Endpoints
Chat Interface
Endpoint to normalize a single claim from the user provided text
POST
/
chat
Copy
curl -X POST 'https://api.checkthat-ai.com/chat' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_API_KEY' \ -d '{ "user_query": "The COVID-19 vaccine contains microchips that track people", "model": "gpt-4" }'
Copy
{ "conversation_id": "conv_456", "response": "Based on current scientific evidence, this claim requires nuance...", "claims_identified": [ { "claim": "COVID-19 vaccine contains microchips", "confidence": 0.95, "category": "health_misinformation" } ], "fact_check_result": { "verdict": "false", "evidence_sources": ["CDC", "WHO", "peer_reviewed_studies"], "explanation": "No credible evidence supports the presence of microchips..." }}
The primary endpoint for normalizing claims and engaging with the CheckThat AI system. This endpoint processes user queries to extract, normalize, and fact-check claims from provided text.
This endpoint requires authentication via API key. Include your API key in the request body or Authorization header.
curl -X POST 'https://api.checkthat-ai.com/chat' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_API_KEY' \ -d '{ "user_query": "The COVID-19 vaccine contains microchips that track people", "model": "gpt-4" }'
Copy
const response = await fetch('https://api.checkthat-ai.com/chat', { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_API_KEY' }, body: JSON.stringify({ user_query: 'Climate change is caused primarily by human activities', model: 'gpt-4', conversation_id: 'conv_123' })});const result = await response.json();
Copy
import requestspayload = { "user_query": "Drinking 8 glasses of water daily is necessary for health", "model": "gpt-4", "conversation_history": [ { "role": "user", "content": "Hello, I want to fact-check some health claims" }, { "role": "assistant", "content": "I'd be happy to help you fact-check health claims." } ]}response = requests.post( 'https://api.checkthat-ai.com/chat', headers={'Authorization': 'Bearer YOUR_API_KEY'}, json=payload)