REST API
Verify API
Fact-check text by verifying claims against provided source materials using the Verify API
AuthorizationBearer <token>
Bearer token authentication using your API key
In: header
textstring
The text containing claims to verify
sourcesarray<Source>
Array of source materials to verify claims against
Items
1 <= itemsResponse Body
curl -X POST "https://app.superagent.sh/api/verify" \ -H "Content-Type: application/json" \ -d '{ "text": "The company was founded in 2020 and has 500 employees.", "sources": [ { "name": "About Us", "content": "Founded in 2020, our company has grown rapidly...", "url": "https://example.com/about" } ] }'{
"id": "550e8400-e29b-41d4-a716-446655440000",
"model": "superagent-lm-verify-20b",
"choices": [
{
"message": {
"role": "assistant",
"content": {
"claims": [
{
"claim": "The company was founded in 2020",
"verdict": true,
"sources": [
{
"name": "About Us",
"url": "https://example.com/about"
}
],
"evidence": "Founded in 2020, our company has grown rapidly...",
"reasoning": "The founding year is explicitly stated in the About Us source."
}
]
}
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 250,
"completion_tokens": 150,
"total_tokens": 400
}
}{
"error": "text is required and must be a string"
}{
"error": "API key missing"
}{
"error": "Team not found"
}{
"error": "Failed to verify text"
}