Introduce API calls for config addon, refactor