The first option for connection is the API method, could you please document further information about how to connect using this method.