Add core api definition, ref #155