> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kiriku.app/llms.txt
> Use this file to discover all available pages before exploring further.

# KYC Score

> Calculate a complete KYC score using extraction, liveness, and face match.



## OpenAPI

````yaml POST /v1/kyc/score
openapi: 3.1.0
info:
  title: Kiriku API
  description: >-
    Intelligent Document Processing API for West Africa. Extract structured data
    from ID cards, passports, and more.
  version: 1.0.0
  contact:
    email: contact@kiriku.sn
servers:
  - url: https://api.kiriku.app
    description: Production API
security:
  - bearerAuth: []
paths:
  /v1/kyc/score:
    post:
      summary: KYC Score
      description: >-
        Calculate a complete KYC score using extraction, liveness, and face
        match.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                extractionId:
                  type: string
                  description: The ID of a completed extraction.
                selfieBase64:
                  type: string
                  description: Base64 encoded selfie image.
                enableAml:
                  type: boolean
                  description: Whether to perform an AML check.
              required:
                - extractionId
                - selfieBase64
      responses:
        '200':
          description: KYC score calculated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KycScoreResponse'
components:
  schemas:
    KycScoreResponse:
      type: object
      properties:
        kycScore:
          type: number
        riskLevel:
          type: string
          enum:
            - low
            - medium
            - high
            - critical
        recommendation:
          type: string
          enum:
            - APPROVE
            - REVIEW
            - REJECT
        breakdown:
          type: object
          properties:
            ocrConfidence:
              type: number
            livenessScore:
              type: number
              nullable: true
            faceMatchScore:
              type: number
              nullable: true
            amlClear:
              type: boolean
              nullable: true
        verifiedAt:
          type: string
          format: date-time
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT/API Key

````