api calls to view word docs