documments public api