Adding API to create docs