add api in def