Connecting to remote Flowable instance

All
My application does not run in the same container/ tomcat instance as the flowable server. In this scenario, how do I connect remotely, either using the Java API or REST API, to the Flowable server?
All examples that I have seen thus far assume that the app and flowable are co-deployed.

Since flowable has a REST API, it should be possible to connect remotely?

Answering my own question
I followed REST API ยท Flowable Open Source Documentation
and Flowable Process Swagger Documentation