Is that API has network access to another ESXi (or entire of all hosts via accessing the vCenter server)? If yes, FT will work correctly, because the protected/secondary VM is just actually a locked version of primary VM and their executions are identical. So after the host interruption, the second VM will be replaced exactly the same as the primary VM. Then at last your API can call the replica VM too after disaster.