Liveness

Endpoint

POST https://cloud.ooto-ai.com/api/v1.0/liveness

Parameters

  • photo: (Photo) The selfie image file.

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.

Example

curl -X POST --location 'https://cloud.ooto-ai.com/api/v1.0/liveness' \
--header 'APP-ID: <put_app_id_here>' \
--header 'APP-KEY: <put_app_key_here>' \
--form 'photo=@"/path/to/photo"'

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

Response (HTTP 200)

{
    "transactionId": "6cd34e01-d641-4ace-b2c0-3d548df1beae",
    "result": {
        "liveness": {
            "score": 0.8860905766487122,
            "fine": true
        },
        "box": {
            "x": 25,
            "y": 275,
            "w": 606,
            "h": 761
        },
        "landmarks": [
            [
                230,
                574
            ],
            [
                457,
                567
            ],
            [
                369,
                740
            ],
            [
                248,
                802
            ],
            [
                444,
                796
            ]
        ]
    }
}

Last updated