Skip to main content

Overview

The ID Validator service analyzes ID document images to:
  • Extract document type, number, name, and expiry date
  • Validate document authenticity
  • Check image quality

API Endpoint

POST /loopos_ai_id_validator

Request

{
  "language": "PT-PT",
  "images": ["data:image/jpeg;base64,..."],
  "agent_specific": {
    "doc_type": "passport,id-card",
    "name": "John Doe",
    "number": "123456789",
    "validity": true
  }
}

Response

{
  "status": "OK",
  "message": "Document validated successfully",
  "doc_type": "passport",
  "number": "123456789",
  "name": "JOHN DOE",
  "expiry": "2025-12-31",
  "item_id": "passport_pt_123456789",
  "ocr_confidence": 0.95,
  "reasoning": "Document validated successfully..."
}