document sweeper api