Verify OTP via SPI?

Is it possible to verify OTP via API?

If not, Can create/customize SPI to support MFA verification via admin API?