2 factor authentication via API

Is there a way to use the built-in 2-factor authenticator via API? I am using PHPmaker as the backend of my mobile App.

Unfortunately, it is not supported.