added get_invite_code endpoint