added getThreadDetails endpoint in APIWrapper