Retool connects to REST APIs by configuring a resource with the base URL and authentication details.