Skip to main content

API Overview

QWED provides a RESTful API for verification.

Base URL

https://api.qwedai.com/v1
Or for local development:
http://localhost:8000

Authentication

All requests require an API key:
curl -H "X-API-Key: qwed_your_key" https://api.qwedai.com/v1/health

Core Endpoints

MethodEndpointDescription
GET/healthHealth check
POST/verifyAuto-detect verification
POST/verify/mathMath verification
POST/verify/logicLogic verification
POST/verify/codeCode security
POST/verify/sqlSQL validation
POST/verify/factFact checking
POST/verify/batchBatch verification

Request Format

{
  "query": "2+2=4",
  "type": "math",
  "options": {
    "include_attestation": true,
    "timeout_ms": 30000
  }
}

Response Format

{
  "status": "VERIFIED",
  "verified": true,
  "engine": "math",
  "result": {
    "is_valid": true,
    "message": "Expression is correct"
  },
  "attestation": "eyJhbGciOiJFUzI1NiIs...",
  "metadata": {
    "request_id": "req_abc123",
    "latency_ms": 45
  }
}

Status Codes

CodeMeaning
200Success
400Bad request
401Unauthorized
429Rate limited
500Server error

Rate Limits

PlanRequests/minRequests/day
Free601,000
Pro60050,000
EnterpriseUnlimitedUnlimited

Detailed Reference