The API Service exposes a method called generateOtp that creates a 6 or 8-digit OTP associated with a phone number.
Attached to this article you can find a SOAP UI Sample project with a SOAP or a JSON request.
The generateOtp method can receive a JSON or SOAP request. Double-click (or expand) the project node and open the request to view the SOAP envelope.
In order to test your installation, please adjust the endpoint.