open API for friendship