Member profile api

Do #324 first.