create connections api