API as platform for message passing