Add api in Plan model