api connection for relations