added trait api endpoint