[add] api for config