[api] add api to get avatar