Implemented primary docs API