[spa] introduced api client service