added getEndorsements api