Liveness Verification

Introduction

This API allows you to perform liveness verification using a selfie image. It analyzes the provided image and returns information about the detected face, including its liveness score.

Authentication

To access the API, you need to include the following headers in your request:

  • app_id: Your application's unique identifier.

  • app_key: Your application's authentication key.

Postman Collection

Try importing below postman collection or link to check our apis

Submit Verification Request

Submit a verification request by providing a selfie image.

  • URL: https://idv-eu.kairos.com/v0.2/liveness-verification

  • Method: POST

  • Headers:

    • Content-Type: multipart/form-data

    • app-id: Your API application ID.

    • app-key: Your API application key.

  • Body:

    • selfie (File) - The selfie image file for liveness verification.

    • threshold (Numeric Value) - A numeric value (between 0 and 1) representing the threshold for liveness verification. The API will consider a face as live if its liveness score is greater than or equal to this threshold.

Image Size Requirements:

  • selfie — minimum 300 px, recommended > 900 px, maximum 5000 px.

Sample Request

To make a liveness verification request, you can use the following examples:

Replace app_id, app_key, and selfie with your actual credentials and the path to your selfie image.

Response

  • Status Code: 200 (OK)

  • Response Headers:

    • Content-Type — Media type of the response. Always application/json.

    • Content-Length — Size of the response body in bytes.

    • X-Request-ID — A unique identifier assigned to each request.

    • X-Content-Type-Options: nosniff — Prevents MIME type sniffing on the response.

    • X-Frame-Options: DENY — Prevents the response from being embedded in a frame or iframe.

    • Strict-Transport-Security: max-age=86400; includeSubDomains — Enforces HTTPS-only connections.

  • Response Body:

Other Responses

  • 5xx: Server errors may occur, and the server will respond with an appropriate 5xx status code. In this case, please check your request and try again later.

  • 4xx: Authentication failures may result in a 4xx status code. Make sure you have provided valid app_id and app_key in the request headers.

  • 403: If limits are exceeded, you may receive a 403 Forbidden status code indicating that you have reached a usage limit. Check your account limits and consider upgrading your plan if needed.

Last updated