add new api, action is a class