trail api implentation started