New file for apiHandler