Add /record/grep endpoint.