add doc for api