API part of affnet service