> ## 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.

# Check Liveness

> Check if an image contains a live person.



## OpenAPI

````yaml POST /v1/liveness/check
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/liveness/check:
    post:
      summary: Check Liveness
      description: Check if an image contains a live person.
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  type: string
                  format: binary
                  description: The selfie image file. Max 10MB.
              required:
                - file
      responses:
        '200':
          description: Liveness check completed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LivenessResponse'
components:
  schemas:
    LivenessResponse:
      type: object
      properties:
        isLive:
          type: boolean
        confidence:
          type: number
        attackType:
          type: string
          nullable: true
        processingMs:
          type: number
        scoreSmall:
          type: number
        scoreLarge:
          type: number
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT/API Key

````