2D Anti-Spoofing

The Anti-Spoofing 2D, through an API, allows the client to send a photo taken by their own APP and have the image validated, preventing fraud such as image tampering.

Parameters

As an API parameter, the client must provide the client ID and the photo in base64. JSON Example:

{
    "clientId":"30af224e-9ab5-40eb-89f9-b2a7d2081a59",
    "image":"KChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wgARCAZAA4QDASIAAhEBAxEB/8QAGgAAAwEBAQEAAAAAAAAAAAAAAAECAwQFBv/EABkBAQEBAQEBAAAAAAAAAAAAAAABAgMEBf/aAAwDAQACEAMQAAAC8Vi1NHkGhLGACagQWNJiaDXp4..."
}

Prerequisites

To use the API, since this application will only verify the authenticity of the submitted image and will not compare it with a previously registered image, the Client only needs to provide their client ID.

Usage

  • The photo file must be in base64;

  • The parameters must be sent in the request as stated in Parameters;

  • The application's CallBack will be only “true” or “false”.

API Responses

Code 200

Successful Response. JSON – Schema:

{
  "isLikelyRealPerson":true,"face":"/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAYGBgYHBgcICAcKCwoLCg8ODAwODxYQERAREBYiFRkVFRkVIh4kHhweJB42KiYmKjY\u002BNDI0PkxqJiYqNj40MjQ\u002BTERETF9aX3x8p//CABEIBkAEsAMBIgACEQEDE..."
}

Code 400 - Error

"The 2D liveness process failed" – When some attempt to tamper with the image is identified, such as a photo of a photo, for example.

Last updated