connect API