refactoring: api profile