Add publish API