Attempt to connect api