v1

latestOpenAPI 3.0.02026-07-1731030.6 KB
Verification

Verify claims against source materials

Analyzes input text and verifies each claim against provided source materials. Returns detailed verification results with verdicts, evidence, and reasoning for each claim.

post/api/verify

Request body

textstring required

The text containing claims to verify

Example request

{
  "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"
    }
  ]
}

Response

Successfully verified the text

idstring uuid

Unique identifier for this request

modelstring

Model used for verification

Example response

{
  "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": 150,
    "completion_tokens": 50,
    "total_tokens": 200
  }
}