Categories api for core.