Custom post type new API.