API for authentication, verification and certification with face detection and recognition