working public documents api call